By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,376 Members | 1,566 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,376 IT Pros & Developers. It's quick & easy.

problems with MySQLdb

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
-----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.