Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#119 MySQLdb crash on MacOSX 10.2

MySQLdb-1.1
closed
Andy Dustman
MySQLdb (285)
5
2012-09-19
2005-01-07
Skip Montanaro
No

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 assignment

Segmentation 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

Discussion

  • Skip Montanaro
    Skip Montanaro
    2005-01-07

    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