Edgewall Software
Modify

Opened 8 years ago

Closed 7 years ago

#3874 closed defect (worksforme)

Problem with mysql setup

Reported by: HITECK@… Owned by: cmlenz
Priority: highest Milestone:
Component: admin/console Version: 0.10
Severity: blocker Keywords:
Cc:
Release Notes:
API 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 Changed 8 years ago by michaeljoseph@…

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

comment:2 in reply to: ↑ description Changed 7 years ago by stekut@…

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 Changed 7 years ago by cboos

  • Resolution set to worksforme
  • Status changed from new to closed

(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 ;)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from cmlenz to the specified user.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.