[Pythonmac-SIG] MySQLdb Lib Help

Bob Ippolito bob at redivi.com
Mon Jan 16 19:10:20 CET 2006


That's not where it should be.  It should be in /Library/Python/2.3/ 
site-packages -- the thing is that since he's using the system Python  
and old packages, he must install TigerPython23Compat before any of  
those old packages will work.

-bob

On Jan 16, 2006, at 9:59 AM, Larry Meyn wrote:

> Chris,
>
> My previous comments assumed that you had installed the framework
> build of Python, which if I had read your message better I would have
> know was wrong.  Sorry, no morning coffee yet.  It is possible that
> the MySQLdb was installed in the wrong location.  As Craig said it
> should be in /Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/site-packages/
>
> Sorry about the misunderstanding.
>
> Larry
>
> On Jan 16, 2006, at 8:56 AM, Chris Porter wrote:
>
>> Hello, complete python newbie here.
>>
>> I've got:
>>
>> OSX 10.4.3
>> Python 2.3.5
>> MySQL 4.1.15-standard
>> (of course, all pre-installed, except for MySQL)
>>
>> I don't seem to have the right python module that will allow python
>> to interact with my MySQL
>> databases.
>>
>> I am completely not a programmer, but I can follow a cookbook-type
>> instruction set in Terminal, and
>> have already set up several MySQL databases and php on my personal
>> intranet. Now I want to run a
>> python program (by someone else, of course) that also interacts
>> with my MySQL databases. I've run
>> the test query that searches for the MySQLdb python module, and
>> found I don't have it, so I need to
>> install it.  So, I found this list. Looked for the past year for
>> information about this issue:
>>
>> Bob said in June:
>> "You can download a MySQL-python 1.2 installer from:
>> http://pythonmac.org/packages/"
>>
>> So I did. And installed it (though it's for 10.3) and ran the
>> test I found on the web in Terminal:
>>
>>>>> import MySQLdb
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in ?
>> ImportError: No module named MySQLdb
>>>>>
>>
>>
>> Would someone be kind enough to help me out, please?
>>
>> I'm sort of betting the package installed the lib into
>> the wrong place. Is that possible?
>> -- Chris Porter Illustration
>> chrisporter at wi.rr.com, chrisporter at huntingthesnark.com
>> http://chrisporter.huntingthesnark.com
>> phone/fax: 262.843.3697
>> _______________________________________________
>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig



More information about the Pythonmac-SIG mailing list