Opened 11 years ago

Closed 11 months ago

#1332 closed defect (wontfix)

Create project fails to initialize database

Reported by: leon.mlakar@… Owned by: linetor
Priority: normal Component: CreateProjectPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.10

Description (last modified by Noah Kantrowitz)

When trying to create a new project through WebAdmin, the CreateProject plugin fails with the below error. The project creation through trac-admin works ok.

sqlite is used for a database.

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/", line 387, in dispatch_request
  File "/usr/lib/python2.4/site-packages/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/", line 109, in process_request
  File "build/bdist.linux-i686/egg/createproj/", line 62, in process_admin_request
  File "build/bdist.linux-i686/egg/createproj/", line 96, in _do_create_proj
  File "/usr/lib/python2.4/site-packages/trac/", line 124, in __init__
  File "/usr/lib/python2.4/site-packages/trac/", line 229, in create
  File "/usr/lib/python2.4/site-packages/trac/db/", line 68, in init_db
    connector, args = self._get_connector()
  File "/usr/lib/python2.4/site-packages/trac/db/", line 84, in _get_connector
    scheme, args = _parse_db_str(self.connection_uri)
  File "/usr/lib/python2.4/site-packages/trac/db/", line 110, in _parse_db_str
    scheme, rest = db_str.split(':', 1)
ValueError: need more than 1 value to unpack

Attachments (0)

Change History (3)

comment:1 Changed 11 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting

comment:2 Changed 11 years ago by Christopher Kohlhaas

I got the same error. I added the db to the template trac.ini file:

[trac] database = sqlite:db/trac.db to resolve this

This worked for me

comment:3 Changed 11 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

The plugin is deprecated. It needs a rewrite for a more recent version of Trac.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain linetor.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.