question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not enough arguments for format string

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jayeshsingh9767commented, Jul 22, 2019

I am also facing same issue…

0reactions
MareSeesterncommented, Jan 4, 2022

My issue I think was the directory wasn’t created and so it failed. When I created the directory for pdf, it worked fine.

I agree with @TheNiteCoder . In my case, the directory existed, but I messed up the access rights.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found