Edgewall Software

Ticket #3874 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

Problem with mysql setup

Reported by: HITECK@… Owned by: cmlenz
Priority: highest Milestone:
Component: admin/console Version: 0.10
Severity: blocker Keywords:
Cc:

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

Change History

  Changed 2 years ago by michaeljoseph@…

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

in reply to: ↑ description   Changed 2 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

  Changed 2 years ago by cboos

  • status changed from new to closed
  • resolution set to worksforme

(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/Change #3874 (Problem with mysql setup)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cmlenz. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.