I'm still struggling trying to get MySQLdb 1.1.7 to work
on MacOSX 10.2. I am using both Python from CVS
(2.5a0) and Python 2.3.4. Both give me:
% python
Python 2.5a0 (#66, Jan 5 2005, 00:56:50)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1493)] on
darwin
Type "help", "copyright", "credits" or "license" for more
information.
import MySQLdb
MySQLdb.version
'1.1.7'
c = MySQLdb.Connection(user="...", passwd="...",
db="...", host="...")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "MySQLdb/init.py", line 64, in Connect
return Connection(args, *kwargs)
File "MySQLdb/connections.py", line 108, in init
self.converter[types.StringType] = self.string_literal
TypeError: object does not support item assignmentSegmentation fault
I inserted a print statement just before the failed
assignment. self.converter is None.
Let me know if there's more I can do to provide input
for debugging.
Skip
Logged In: YES
user_id=44345
I built a --with-pydebug version of Python. That showed
me some memory was getting stomped on. I narrowed it
down to the memory being valid before the call to mysql_init()
and trash afterwards. I couldn't find a later version of
MySQL as part of fink, so I went to the MySQL website and
found a Mac binary installer of 4.1.8. I installed that,
rebuilt MySQLdb against it and all seems fine now.
Accordingly, I'm closing this report.
Skip