Python import Error

David Stanek dstanek at dstanek.com
Sat Jul 18 09:41:13 EDT 2009


On Sat, Jul 18, 2009 at 3:14 AM, Kalyan
Chakravarthy<kalyanchakravarthy at hyit.com> wrote:
> Hi All,
>                    I am using Python 2.6, MySQL 4.0 , I have successfully
> Instaled MySQLdb (MySQL-python-1.2.3c1.win32-py2.6) in my system. I tested
> through command prompt with "import MySQLdb ", its not shwing any errors
> (means its instaled successfully), I set Eneceranment variable for Python
>
> I  am running simple application with import "MySQLdb" to get the connection
> to MySQL, But its throwing "No module named MySQLdb", Please any one tell me
> what couled be the reasion
>
> is there any version miss match with python and MySQL ?
>
> Since last 3days I am strugling on this
>

Off the top of my head I would say that maybe you are using one python
binary from the command-line and another in your script or possibly
your python path is foobar.

-- 
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek



More information about the Python-list mailing list