Not enough arguments for format string
See original GitHub issueI have the following problem with the library while running with apache2:
File "/python2.7/site-packages/pdfkit/pdfkit.py" in to_pdf
181. '%s ' %(' '.join(args)),e)
Exception Type: TypeError at /api/create_order/
Exception Value: not enough arguments for format string
But it works with Django in dev mode:
service apache2 stop
python manage.py runserver
Thanks !
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Python TypeError: not enough arguments for format string
The “TypeError: not enough arguments for format string” error is raised when the number of arguments specified in a string format operation is ......
Read more >Python TypeError: not enough arguments for format string
You need to put the format arguments into a tuple (add parentheses): instr = "'%s', '%s', '%d', '%s', '%s', '%s', '%s'" % (softname, ......
Read more >TypeError: not enough arguments for format string - Yawin Tutor
The TypeError: not enough arguments for format string error occurs if the number of arguments specified in the string format operation is not...
Read more >Not Enough Arguments for Format String Error in Python
Another way to overcome this error is by using the format() function. The % method is outdated for formatting strings. We can specify...
Read more >7/11 TypeError: Not enough arguments for format string
7/11 TypeError: Not enough arguments for format string. Could somebody provide an explanation and solution as to why I am getting the above...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am also facing same issue…
I agree with @TheNiteCoder . In my case, the directory existed, but I messed up the access rights.