[Pythonmac-SIG] MySQLdb Lib Help

Larry Meyn Larry.A.Meyn at nasa.gov
Mon Jan 16 18:53:13 CET 2006


Chris,

You can create or modify the .bash_profile file in your home  
directory to modify PATH.  An example is shown below.

Larry

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
         . ~/.bashrc
fi

# User specific environment and startup programs

PATH=/usr/local/bin:$PATH;export PATH

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20060116/06bfefbe/attachment.htm 


More information about the Pythonmac-SIG mailing list