Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#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 Christian Boos)

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 Christian Boos, 19 years ago

Description: modified (diff)
Resolution: duplicate
Status: newclosed

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

comment:2 by Justin Patrin, 18 years ago

Updating PySQLite from 2.0.5 to 2.3.1 fixed this problem for me too.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.