| ImportError | Python 2.4.4: /usr/bin/python2.4 Sat Aug 30 09:21:08 2008 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/httpd/cgi-bin/goodprofornot-cgi.py |
| 10 |
| 11 import GoodProfOrNot |
| 12 GoodProfOrNot.cgi_handler() |
| 13 |
| 14 #print "Content-type: text/html" |
| GoodProfOrNot = <module 'GoodProfOrNot' from '/home/quarl/proj/goodprofornot/scripts/GoodProfOrNot/__init__.pyc'>, GoodProfOrNot.cgi_handler = <function cgi_handler> |
| /home/httpd/coursesurvey/goodprofornot/scripts/GoodProfOrNot/__init__.py in cgi_handler(*args=(), **kwargs={}) |
| 4 |
| 5 def cgi_handler(*args, **kwargs): |
| 6 import cgi_frontend |
| 7 return cgi_frontend.go(*args, **kwargs) |
| 8 |
| cgi_frontend undefined |
| /home/quarl/proj/goodprofornot/scripts/GoodProfOrNot/cgi_frontend.py |
| 17 |
| 18 from database import db |
| 19 db.connect() |
| 20 |
| 21 import httprequest_cgi |
| db = None, db.connect undefined |
| /home/httpd/coursesurvey/goodprofornot/scripts/GoodProfOrNot/db_base.py in connect(self=<GoodProfOrNot.database.GoodPornDatabase instance>, readwrite=False, debug=False) |
| 81 |
| 82 SQLObject tables connected automatically when needed.''' |
| 83 self._setup_connection(readwrite) |
| 84 classes = self.registry.allClasses() |
| 85 assert(classes) |
| self = <GoodProfOrNot.database.GoodPornDatabase instance>, self._setup_connection = <bound method GoodPornDatabase._setup_connection...oodProfOrNot.database.GoodPornDatabase instance>>, readwrite = False |
| /home/httpd/coursesurvey/goodprofornot/scripts/GoodProfOrNot/db_base.py in _setup_connection(self=<GoodProfOrNot.database.GoodPornDatabase instance>, readwrite=False) |
| 61 else: |
| 62 URL = self.readonly_url |
| 63 self.connection = sqlobject.connectionForURI(URL) |
| 64 self.connection.readwrite = readwrite |
| 65 return 1 |
| self = <GoodProfOrNot.database.GoodPornDatabase instance>, self.connection = None, global sqlobject = <module 'sqlobject' from '/home/httpd/coursesurvey/goodprofornot/scripts/sqlobject/__init__.pyc'>, sqlobject.connectionForURI = <bound method ConnectionURIOpener.connectionForU...lobject.dbconnection.ConnectionURIOpener object>>, URL = 'mysql://coursesurvey_r:CourseQuackery@localhost/goodprofornot' |
| /home/httpd/coursesurvey/goodprofornot/scripts/sqlobject/dbconnection.py in connectionForURI(self=<sqlobject.dbconnection.ConnectionURIOpener object>, uri='mysql://coursesurvey_r:CourseQuackery@localhost/goodprofornot') |
| 658 assert self.schemeBuilders.has_key(scheme), \ |
| 659 "No SQLObject driver exists for %s" % scheme |
| 660 conn = self.schemeBuilders[scheme]().connectionFromURI(uri) |
| 661 else: |
| 662 # We just have a name, not a URI |
| conn undefined, self = <sqlobject.dbconnection.ConnectionURIOpener object>, self.schemeBuilders = {'dbm': <function builder>, 'firebird': <function builder>, 'interbase': <function builder>, 'maxdb': <function builder>, 'mysql': <function builder>, 'postgres': <function builder>, 'postgresql': <function builder>, 'psycopg': <function builder>, 'sapdb': <function builder>, 'sqlite': <function builder>, ...}, scheme = 'mysql', ).connectionFromURI undefined, uri = 'mysql://coursesurvey_r:CourseQuackery@localhost/goodprofornot' |
| /home/httpd/coursesurvey/goodprofornot/scripts/sqlobject/mysql/mysqlconnection.py in connectionFromURI(cls=<class sqlobject.mysql.mysqlconnection.MySQLConnection>, uri='mysql://coursesurvey_r:CourseQuackery@localhost/goodprofornot') |
| 22 user, password, host, path, args = cls._parseURI(uri) |
| 23 return cls(db=path.strip('/'), user=user or '', passwd=password or '', |
| 24 host=host or 'localhost', **args) |
| 25 connectionFromURI = classmethod(connectionFromURI) |
| 26 |
| host = 'localhost', args = {} |
| /home/httpd/coursesurvey/goodprofornot/scripts/sqlobject/mysql/mysqlconnection.py in __init__(self=<sqlobject.mysql.mysqlconnection.MySQLConnection instance>, db='goodprofornot', user='coursesurvey_r', passwd='CourseQuackery', host='localhost', **kw={}) |
| 12 global MySQLdb |
| 13 if MySQLdb is None: |
| 14 import MySQLdb |
| 15 self.host = host |
| 16 self.db = db |
| global MySQLdb = None |
ImportError: No module named MySQLdb
args =
('No module named MySQLdb',)