Jump to content

Recommended Posts

Posted

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

  • 2 months later...
Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...