This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Trac Initenv Failure

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

0 answers

No answers yet.

Log in to answer this question.