Differences between revisions 12 and 13
Revision 12 as of 2009-01-21 21:26:09
Size: 1184
Editor: 81-233-5-111-no34
Comment:
Revision 13 as of 2009-01-21 21:38:49
Size: 1219
Editor: 81-233-5-111-no34
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
==MySQLdb==
I have searched and searched for a way to connect to MySQL using python without luck. I downloaded MySQLdb from [SourceForge.net http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775&release_id=491012] but only got a different Traceback message:
---
Line 17: Line 16:
== MySQLdb ==
I have searched and searched for a way to connect to MySQL using python without luck. I downloaded MySQLdb from [[http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775&release_id=491012|SourceForge.net]] but only got a different Traceback message:

{{{
Line 18: Line 21:
Line 26: Line 28:
>>>  >>>
}}}
Line 29: Line 32:

BennySkogberg

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

MacPython/FAQ (last edited 2019-11-09 22:49:36 by FrancesHocutt)

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