470,648 Members | 1,640 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,648 developers. It's quick & easy.

problems with MySQLdb

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.

Jul 18 '05 #1
1 1420
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 27 Mar 2004 14:26:08 -0800, Michael wrote:

self.connection = MySQLdb.connect (
host = self.host, user = self.user,
passwd = self.password, db = self.db )


Are any of the parameters perhaps lists or tuples themselves on accident?
:: Jon-Pierre Gentil
:: PGP Key ID 0xA21BC30E
:: Jabber: jg*****@jabber.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkBn1e8ACgkQOrVFmaIbww70JgCfcdx5iyPU7W SoePcnAT1bx/rS
b1MAnjqc5QBrQzLP9OXAG8Nkh60+tcHh
=sg0s
-----END PGP SIGNATURE-----

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.