#3496: Errors when attempting to run trac-admin /patrh/to/project initenv
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: daniel
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: trac-admin | Version: 0.9.6
Severity: normal | Resolution:
Keywords: |
---------------------------------+------------------------------------------
Changes (by eblot):
* priority: high => normal
* status: closed => reopened
* resolution: duplicate =>
* severity: blocker => normal
Old description:
> 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
New description:
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
}}}
Comment:
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)
--
Ticket URL: <http://trac.edgewall.org/ticket/3496#comment:3>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets