Edgewall Software

Ticket #3496 (closed defect: invalid)

Opened 2 years ago

Last modified 2 years ago

Errors when attempting to run trac-admin /patrh/to/project initenv

Reported by: jon@… Owned by: daniel
Priority: normal Milestone:
Component: admin/console Version: 0.9.6
Severity: normal Keywords:
Cc:

Description (last modified by eblot) (diff)

After installing svn and trac by following the meticulious directions at http://trac.edgewall.org/wiki/TracOnOsxNoFink, I'm getting errors every time I run trac-admin /patrh/to/project initenv

Here are the errors from the last run;

Creating and Initializing Project
Failed to create environment. global name 'sqlite' is not defined
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/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 "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/env.py", line 79, in __init__
    self.create(db_str)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/env.py", line 197, in create
    db.init_db(self.path, db_str)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/db.py", line 442, in init_db
    cls.init_db(**args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/db.py", line 321, in init_db
    cnx = sqlite.connect(path, timeout=int(params.get('timeout', 10000)))
NameError: global name 'sqlite' is not defined
Failed to initialize environment. 1
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/scripts/admin.py", line 594, in do_initenv
    self.env_create(db_str)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/scripts/admin.py", line 144, in env_create
    sys.exit(1)
SystemExit: 1

Attachments

Change History

Changed 2 years ago by anonymous

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #3488

Changed 2 years ago by anonymous

Installation problems should start at the trac Mailing List first.

Changed 2 years ago by eblot

  • priority changed from high to normal
  • status changed from closed to reopened
  • resolution duplicate deleted
  • description modified (diff)
  • severity changed from blocker to normal

Please search the ticket DB for similar issues before submitting a new ticket.

Btw, this is not really a dup of #3488 (which is about a request to improve the error message)

Changed 2 years ago by eblot

  • status changed from reopened to closed
  • resolution set to invalid

Add/Change #3496 (Errors when attempting to run trac-admin /patrh/to/project initenv)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.