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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...