problems with MySQLdb
Michael
mogmios at mlug.missouri.edu
Sat Mar 27 17:26:08 EST 2004
Is there a mailing list or anything like that for users of the MySQLdb
module?
Using version 0.9.2 with Python 2.3.2 and whenever I try to open a
connection I get this error:
File "/home/webserver/localhost/dvdlookup/MyMySQL.py", line 23, in
_connect
passwd = self.password, db = self.db )
File
"/home/webserver/python2.3/lib/python2.3/site-packages/MySQLdb/__init__.py",
line 63, in Connect
return apply(Connection, args, kwargs)
File
"/home/webserver/python2.3/lib/python2.3/site-packages/MySQLdb/connections.py",
line 116, in __init__
self.converter[types.StringType] = self.string_literal
TypeError: object does not support item assignment
Segmentation fault
This code has worked with older combination of Python and MySQLdb. Any
idea what's wrong?
Here is the code that accesses MySQLdb:
self.connection = MySQLdb.connect (
host = self.host, user = self.user,
passwd = self.password, db = self.db )
Thanks.
More information about the Python-list
mailing list