Question: (Closed) Trac Initenv Failure
gravatar for Stan
8.3 years ago by
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/", line 422, in do_initenv
    File "build/bdist.linux-x86_64/egg/trac/", line 213, in __init__
    File "build/bdist.linux-x86_64/egg/trac/", line 401, in create
    File "build/bdist.linux-x86_64/egg/trac/db/", line 145, in init_db
      connector, args = self.get_connector()
    File "build/bdist.linux-x86_64/egg/trac/db/", line 183, in get_connector
      scheme, args = _parse_db_str(self.connection_uri)
    File "build/bdist.linux-x86_64/egg/trac/db/", 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 :

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.


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