TypeError: not all arguments converted during string formatting

Ervin Hegedüs airween at gmail.com
Fri Dec 13 14:26:03 CET 2013


hello,

On Fri, Dec 13, 2013 at 05:18:59AM -0800, Jai wrote:
>             sql = """insert into
>             fashion(GENDER,links,category,item_content,price,seller) \
> VAlUES('%s','%s','%s','%s','%s','s')"""
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

may be you miss a "%" sign?

>     query = query % db.literal(args)
> TypeError: not all arguments converted during string formatting


cheers:


a.





More information about the Python-list mailing list