[Cubicweb] 'tuple' object does not support item assignment

Adrien Di Mascio adrien.dimascio at logilab.fr
Tue Jul 21 23:02:41 CEST 2009


Hi,

[Dhaval Sharma]
> now i am getting following error upon
> changing db-driver=mysql
> cubicweb-ctl db-init sqlapp

You've hit a known bug with mysql. The easiest fix for you would be to
edit the method `process_result` in `cubicweb/server/sqlutils.py` and
replace the line:

  results = cursor.fetchall() (around line 192)

by the following line: 

  results = list(cursor.fetchall())

This fix is not integrated in cubicweb because we think this is not the
most appropriate solution but it will work.

Cheers,

-- 
Adrien Di Mascio                              LOGILAB, Paris (France).
Formations Python,Zope,Debian,Calcul    http://www.logilab.fr/formations
Développement logiciel sur mesure:      http://www.logilab.fr/services
Informatique scientifique:              http://www.logilab.fr/science
Gestion de connaissances:               http://www.cubicweb.org/
Python in Python:     http://codespeak.net/pypy/dist/pypy/doc/index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20090721/9fa02a9a/attachment-0048.sig>


More information about the Cubicweb mailing list