theepdinker Posted January 16, 2012 Posted January 16, 2012 Importing MySQLdb into Python appears to cause an error. The file below, when run, does not appear to get past the import MySQLdb statement. This is edited down from the Python example at Any ideas what I am doing wrong?(I am running on Stevie)output:here we go Code:#!/usr/bin/pythonprint "Content-type: text/html\r\n\r\n"print "here we go "try: import MySQLdb tx = 'successfully imported MySQLdb' print "out of try "except: tx = str(sys.exc_info()) print "except "print tx
kaushikk Posted April 9, 2012 Posted April 9, 2012 I have the exact same problem running Django-Python with MySQL on Stevie. I get a could not load module, module not found error for MySQLdb. Were you able to fix this somehow?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now