Question: (Closed) Trac Initenv Failure
0
gravatar for Stan
8.3 years ago by
Stan0
Belgium
Stan0 wrote:

Due to a crashed hard drive I had to reinstall Trac 0.12.2 (stable) on a new system (Ubuntu 10.10) However, it does not allow me to set up the initial environments of new projects.

What I do is

  trac-admin /var/tracprojects/project initenv

After supplying information about the PROJECT NAME and MYSQL database the following error pops up:

  Creating and Initializing Project
  Initenv for '/var/tracprojects/project' failed. 
  Failed to create environment.
  invalid literal for int() with base 10: ''
  Traceback (most recent call last):
    File "build/bdist.linux-x86_64/egg/trac/admin/console.py", line 422, in do_initenv
      options=options)
    File "build/bdist.linux-x86_64/egg/trac/env.py", line 213, in __init__
      self.create(options)
    File "build/bdist.linux-x86_64/egg/trac/env.py", line 401, in create
      DatabaseManager(self).init_db()
    File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 145, in init_db
      connector, args = self.get_connector()
    File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 183, in get_connector
      scheme, args = _parse_db_str(self.connection_uri)
    File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 260, in _parse_db_str
      port = int(port)
  ValueError: invalid literal for int() with base 10: ''

Updating trac to the latest 0.13-dev does not solve the issue.

Anyone any suggestions on how to proceed? Also: where can I find these .py scripts if I find the appropriate patch?

I'm running Python 2.6.6 and in /urs/local/lib/python2.6/dist-packages the Trac-0.12.2-py2.6.egg file is present.

python • 1.9k views
ADD COMMENTlink modified 8.3 years ago by Pierre Lindenbaum126k • written 8.3 years ago by Stan0

this is the right channel for this question :http://trac.edgewall.org/wiki/MailingList

ADD REPLYlink written 8.3 years ago by Michael Dondrup47k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1522 users visited in the last hour