Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Python

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

Python Discussion forum for Python, a high-level language with simple syntax, but yet powerful.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-23-2007, 01:37 AM
ryanszeto ryanszeto is offline
Newbie
 
Join Date: Jul 2007
Posts: 9
Credits: 0
Rep Power: 0
ryanszeto is on a distinguished road
Default importError: no module named _mysql

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-24-2007, 10:30 AM
CygnetGames's Avatar   
CygnetGames CygnetGames is offline
Programmer
 
Join Date: May 2007
Location: York, England
Posts: 113
Credits: 0
Rep Power: 6
CygnetGames is on a distinguished road
Default

Is this what you want?

SourceForge.net: MySQL for Python
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-01-2007, 12:08 PM
Victor Victor is offline
Learning Programmer
 
Join Date: May 2007
Posts: 96
Credits: 0
Rep Power: 6
Victor is on a distinguished road
Default

Quote:
Originally Posted by ryanszeto View Post
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 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:
Code:
import os
os.startfile('myfile.py')
Hope that helps, if not what you were asking for, sorry lol, let me know
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Pexpect module in windows platform ryanszeto Python 3 08-16-2007 07:05 AM


All times are GMT -5. The time now is 07:23 PM.

Contest Stats

Xav ........ 1333.07
MeTh0Dz|Reb0rn ........ 1055.7
John ........ 881.37
morefood2001 ........ 879.43
marwex89 ........ 869.98
WingedPanther ........ 851.68
Brandon W ........ 757.44
chili5 ........ 312.39
Steve.L ........ 247.05
dcs ........ 219.87

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads