Hi guys.
I am writing a Jython script in which I have to import a MySQL.py file. When I run the files, it said "ImportError: no module named _mysql".
I checked on the internet and searched for the _mysql.py files but I never find it.
I am exhausted and need you guys help!
Ryan
importError: no module named _mysql
Started by ryanszeto, Jul 22 2007 10:37 PM
2 replies to this topic
#1
Posted 22 July 2007 - 10:37 PM
|
|
|
#2
Posted 24 July 2007 - 07:30 AM
#3
Posted 01 August 2007 - 09:08 AM
ryanszeto said:
Hi guys.
I am writing a Jython script in which I have to import a MySQL.py file. When I run the files, it said "ImportError: no module named _mysql".
I checked on the internet and searched for the _mysql.py files but I never find it.
I am exhausted and need you guys help!
Ryan
I am writing a Jython script in which I have to import a MySQL.py file. When I run the files, it said "ImportError: no module named _mysql".
I checked on the internet and searched for the _mysql.py files but I never find it.
I am exhausted and need you guys help!
Ryan
I think I know what you're trying to do. My guess is that you didn't install _mysql properly or maybe just to the wrong place. Else, if you're trying to run a file (I think that's what your trying to do), try:
import os
os.startfile('myfile.py')
Hope that helps, if not what you were asking for, sorry lol, let me know


Sign In
Create Account

Back to top









