Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3874 closed defect (worksforme)

Problem with mysql setup

Reported by: HITECK@… Owned by: Christopher Lenz
Priority: highest Milestone:
Component: admin/console Version: 0.10
Severity: blocker Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I got errors with installation of mysql… here the log:

Creating and Initializing Project
Failed to create environment. No module named MySQLdb
Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 611, in do_initenv
    options=options)
  File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 124, in __init__
    self.create(options)
  File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 228, in create
    DatabaseManager(self).init_db()
  File "/usr/local/lib/python2.4/site-packages/trac/db/api.py", line 65, in init_db
    connector.init_db(**args)
  File "/usr/local/lib/python2.4/site-packages/trac/db/mysql_backend.py", line 44, in init_db
    cnx = self.get_connection(path, user, password, host, port, params)
  File "/usr/local/lib/python2.4/site-packages/trac/db/mysql_backend.py", line 40, in get_connection
    return MySQLConnection(path, user, password, host, port, params)
  File "/usr/local/lib/python2.4/site-packages/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 "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 615, in do_initenv
    sys.exit(1)
SystemExit: 1

Tx 4 support! Ciao Antonello

Attachments (0)

Change History (3)

comment:1 by michaeljoseph@…, 18 years ago

Looks like you need to install MySQLdb: http://sourceforge.net/projects/mysql-python

in reply to:  description comment:2 by stekut@…, 18 years ago

Hi, I had this problem too. First have you installed the module ? I installed it, and I got the same error. I just re-installed MySQLdb and it work well.

I remember you how to install it: Go to MySQLdb-version directory and do this (as root): python setup.py build python setup.py install

comment:3 by Christian Boos, 18 years ago

Resolution: worksforme
Status: newclosed

(fixing wiki syntax from the above:)

Go to MySQLdb-version directory and do this (as root):

python setup.py build 
python setup.py install

So it worksforyou, great ;)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.