Ticket #2892 (closed defect: worksforme)
Error while initialize Trac environment
| Reported by: | sdecleire@… | Owned by: | daniel |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | admin/console | Version: | 0.9.3 |
| Severity: | blocker | Keywords: | needinfo |
| Cc: |
Description
I get the error below when I init a new trac environment with the trac-admin initenv command :
Creating and Initializing Project
Failed to create environment. need more than 1 value to unpack
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 139, in env_create
self.__env = Environment(self.envname, create=True, db_str=db_str)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 79, in __init__
self.create(db_str)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 197, in create
db.init_db(self.path, db_str)
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 441, in init_db
cls, args = _get_cnx_class(env_path, db_str)
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 449, in _get_cnx_class
scheme, args = _parse_db_str(db_str)
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 462, in _parse_db_str
scheme, rest = db_str.split(':', 1)
ValueError: need more than 1 value to unpack
Failed to initialize environment. 1
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 594, in do_initenv
self.env_create(db_str)
File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 144, in env_create
sys.exit(1)
SystemExit: 1
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


