Revision 14 as of 2009-01-24 04:42:45

Clear message

Error in MacPython 2.4.3 for Panther.

When I attempted to run idle or python I received the following message

dyld: /Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python can't open library: /usr/lib/libstdc++.6.dylib (No such file or directory, errno = 2) Trace/BPT trap

Any sugggestions as to how to resolve this.

BrianMcEnery

---

MySQLdb

I have searched and searched for a way to connect to MySQL using python without luck. I downloaded MySQLdb from SourceForge.net but only got a different Traceback message:

>>> from MySQLdb import *
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from MySQLdb import *
  File "build/bdist.macosx-10.5-i386/egg/MySQLdb/__init__.py", line 19, in <module>
  File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 7, in <module>
  File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dynamic module does not define init function (init_mysql)
>>>

How do I connect to MySQL using python on Leopard?

BennySkogberg

- I had a problem similar to this one. Here are the steps that I followed: http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/

Here is a tutorial on using it: http://www.kitebird.com/articles/pydbapi.html

Unable to edit the page? See the FrontPage for instructions.