No Module Named MySQLdb Error

S

Sam

Hi Friends,
This is Sam, a learner of Python programming
language. I would like to know a feasible and flexible process of
importing MySQLdb module. If anyone know about this and have an
expertise over this can help me over this issue.

1) I installed interface MySQLdb 1.2.2 in my MAC OS X system. In that
i installed Python 2.6 version along with that i installed MySQL
database.

2) So to run an application using these i am using the above
interface. I went to read me file in that and went thro the process.

3) In that they asked to run the setup.py file and setup_posix.py
file. I am unable to get the exact solution to the error, as i am
novice in python.
I am pasting here that error, so if anyone can help me over
that u are welcome.

Sampath:MySQL-python-1.2.2 venkatarampey$ python setup.py
Traceback (most recent call last):
File "setup.py", line 12, in <module>
from setup_posix import get_config
File "/Users/venkatarampey/Downloads/MySQL-python-1.2.2/
setup_posix.py", line 89
return metadata, ext_options
SyntaxError: 'return' outside function

What is the solution for this error? Is anyone aware of using MySQL
with python can fix this issue. Hope so i will meet a person in
helping my task.

Regards,
Sampath Girish.M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top