Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#6856 closed defect (invalid)

ImportError: No module named MySQLdb

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords: mysql
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

When setting up trac I get:

Creating and Initializing Project
Failed to create environment. No module named MySQLdb
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/scripts/admin.py", line 613, in do_initenv
    options=options)
  File "/var/lib/python-support/python2.4/trac/env.py", line 124, in __init__
    self.create(options)
  File "/var/lib/python-support/python2.4/trac/env.py", line 229, in create
    DatabaseManager(self).init_db()
  File "/var/lib/python-support/python2.4/trac/db/api.py", line 69, in init_db
    connector.init_db(**args)
  File "/var/lib/python-support/python2.4/trac/db/mysql_backend.py", line 44, in init_db
    cnx = self.get_connection(path, user, password, host, port, params)
  File "/var/lib/python-support/python2.4/trac/db/mysql_backend.py", line 40, in get_connection
    return MySQLConnection(path, user, password, host, port, params)
  File "/var/lib/python-support/python2.4/trac/db/mysql_backend.py", line 125, in __init__
    import MySQLdb
ImportError: No module named MySQLdb
Failed to initialize environment. 1
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/scripts/admin.py", line 617, in do_initenv
    sys.exit(1)
SystemExit: 1

But I have installed: mysql-python python-dev libmysqlclient15-dev

Any ideas why the trac setup cannot find the mysqldb module?

Attachments (0)

Change History (2)

comment:1 by Emmanuel Blot, 16 years ago

Description: modified (diff)
Priority: highnormal
Resolution: invalid
Status: newclosed

See duplicates #3874 and #6241

This is an installation issue and as such should not be filed in as a ticket but posted to the MailingList.

comment:2 by Christian Boos, 16 years ago

Keywords: mysql added

See also #4459.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.