Modify ↓
#3041 closed defect (duplicate)
Failed to create environment. You can only execute one statement at a time.
| Reported by: | DrScream | Owned by: | daniel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | admin/console | Version: | 0.9.4 |
| Severity: | normal | Keywords: | |
| Cc: | drscream@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
If got this error by the using of trac-admin command:
trac-admin /var/trac/project initenv
I'm using a Debian testing system with:
trac: 0.9.4 sqlite: 3.3.5 python: 2.3
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 139, in env_create
self.__env = Environment(self.envname, create=True, db_str=db_str)
File "/usr/lib/python2.3/site-packages/trac/env.py", line 79, in __init__
self.create(db_str)
File "/usr/lib/python2.3/site-packages/trac/env.py", line 197, in create
db.init_db(self.path, db_str)
File "/usr/lib/python2.3/site-packages/trac/db.py", line 442, in init_db
cls.init_db(**args)
File "/usr/lib/python2.3/site-packages/trac/db.py", line 326, in init_db
cursor.execute(stmt)
Warning: You can only execute one statement at a time.
Failed to initialize environment. 1
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 594, in do_initenv
self.env_create(db_str)
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 144, in env_create
sys.exit(1)
SystemExit: 1
Attachments (0)
Change History (2)
comment:1 by , 20 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



You don't have the correct version of the PySqlite bindings installed. See #2719, #2993…