The problem is due to PyMySQLdb which had some API changes moving
insert_Id() from the cursor to the database object.
I have temporarily fixed the problem by changing the
retrieveLastInsertId() function in MySQLObjectStore.py to:
conn, cur =3D self.executeSQL('select last_insert_id();', conn)
return cur.fetchone()[0]
Hope that helps.
-Seth
=20
=20
>>> "Vytautas Bruzgis" <vytautasbruzgis@...> 05/08/05 7:05 am >>>=20
i am using MiddleKit's quickstart. I have come to step -=C2*=20
python Command/main.py. I dont know if i do it wrigth. But i retrieve an
error=20
when compiling main.py=20
=20
=20
Traceback (most recent call last):=20
=C2* File "Command/main.py", line 43, in ?=20
=C2*=C2*=C2* main()=20
=C2* File "Command/main.py", line 40, in main=20
=C2*=C2*=C2* store.saveChanges()=20
=C2* File "MiddleKit\Run\ObjectStore.py", line 316, in saveChan=20
=C2* File "MiddleKit\Run\SQLObjectStore.py", line 193, in commi=20
=C2* File "MiddleKit\Run\SQLObjectStore.py", line 214, in _inse=20
=C2* File "MiddleKit\Run\MySQLObjectStore.py", line 36, in retr=20
AttributeError: 'Cursor' object has no attribute 'insert_id'=20
=20
=20
=20
What is wrong?=20
i have made all the steps rigth as it is said in Quick start.
|