Hi,all
  
  I have this proplem when initating an environment by following command:
 
-bash-3.2$ sudo trac-admin /home/trac2 initenv

The error messages:
 
Creating and Initializing Project
Failed to create environment. global name 'sqlite' is not defined
Traceback (most recent call last):
  File
"/home/usr_local/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/admi
n/console.py", line 542, in do_initenv
    options=options)
  File
"/home/usr_local/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/env.
py", line 187, in __init__
    self.create(options)
  File
"/home/usr_local/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/env.
py", line 304, in create
    DatabaseManager(self).init_db()
  File
"/home/usr_local/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/db/a
pi.py", line 70, in init_db
    connector.init_db(**args)
  File
"/home/usr_local/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/db/s
qlite_backend.py", line 135, in init_db
    cnx = sqlite.connect(path, timeout=int(params.get('timeout', 10000)))
NameError: global name 'sqlite' is not defined
 
My OS is FreeBSD-6.2
Python 2.5.1
Trac-0.11b2
And I have all other requested components installed.
 
How do I solve it?   
 
Thank you very much!
 
-------------------------------------------------------
 Mr.Li Xuejiang


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to