Jump to content

[Solved] Cannot use python module MySQLdb


Dj Gaspa

Recommended Posts

Following the example at http://www.heliohost.org/home/features-mai...databases/mysql I begin writing this simple script:

 

 

 

#! /usr/bin/python

 

import sys, traceback

sys.stderr = sys.stdout

 

print 'Content-type: text/html\n\n'

 

import MySQLdb

 

 

 

 

What I get from the execution of the script is: Traceback (most recent call last): File "prova.py", line 8, in ? import MySQLdb ImportError: No module named MySQLdb

 

 

It seems like module MySQLdb is not installed. Is this an issue?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...