TypeError: not all arguments converted during string formatting
__peter__ at web.de
Fri Dec 13 14:33:59 CET 2013
> my code :
> sql = """insert into
This looks very much like your previous mistake
(1) Don't put quotes around the placeholders. They are probably interpreted
as string literals.
(2) The last placeholder is missing the %
> query = query % db.literal(args)
> TypeError: not all arguments converted during string formatting
Note that we prefer to see complete tracebacks as this usually simplifies
debugging a lot.
More information about the Python-list