AttributeError: 'tuple' object has no attribute 'encode'
erikcw
erikwickstrom at gmail.com
Thu Apr 5 11:31:35 EDT 2007
Hi,
I'm trying to build a SQL string
sql = """INSERT INTO ag ('cid', 'ag', 'test') VALUES(%i, %s, %d)""",
(cid, ag, self.data[parent][child]['results']['test'])
It raises this error: AttributeError: 'tuple' object has no attribute
'encode'
Some of the variables are unicode (test and ag) - is that what is
causing this error? What do I need to do to make it work?
Thanks!
Erik
More information about the Python-list
mailing list