import MySQLdb
db = MySQLdb.connect(host="localhost", user="joe",
passwd="secret",
db="my_db")
i get this:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/site-packages/MySQLdb/__init__.py", line 64, in Connect
return apply(Connection, args, kwargs)
File "/usr/local/lib/python2.3/site-packages/MySQLdb/connections.py", line 117, in __init__
self.converter[types.StringType] = self.string_literal
TypeError: object does not support item assignment
HELPPPPPP please...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, you're the second person to report this, but I can't replicate it on Linux (x86) with Python 2.3.4. Put in a bug report and include OS, Python, and MySQL details.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi I just installed python-mysql and after:
#!/usr/bin/python
import MySQLdb
db = MySQLdb.connect(host="localhost", user="joe",
passwd="secret",
db="my_db")
i get this:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/site-packages/MySQLdb/__init__.py", line 64, in Connect
return apply(Connection, args, kwargs)
File "/usr/local/lib/python2.3/site-packages/MySQLdb/connections.py", line 117, in __init__
self.converter[types.StringType] = self.string_literal
TypeError: object does not support item assignment
HELPPPPPP please...
OK, you're the second person to report this, but I can't replicate it on Linux (x86) with Python 2.3.4. Put in a bug report and include OS, Python, and MySQL details.