presume you've checked on following:
shebang line pointing to 'correct' python (you could make a v minimal
script with just the same shebang and a import pysqlite2 and then
exectute that).
perms (do you need to/are you sudo-ing your trac-admin, ?))
T
Dorian Mcfarland wrote:
HI there,
I wonder if someone can help me out.
I installed trac via ports on freeBSD 4.8 with. Everything is the
current version (sqlite3.3.x, trac0.9.4), and there are no problems
during install, but after I enter the details for "trac-admin /path/
initenv" I get the following error:
<snip>
Creating and Initializing Project
Failed to create environment. global name 'sqlite' is not defined
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py",
line 139, in env_create
self.__env = Environment(self.envname, create=True, db_str=db_str)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 79, in
__init__
self.create(db_str)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 197, in
create
db.init_db(self.path, db_str)
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 442, in
init_db
cls.init_db(**args)
File "/usr/local/lib/python2.4/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 "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py",
line 594, in do_initenv
self.env_create(db_str)
File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py",
line 144, in env_create
sys.exit(1)
SystemExit: 1
</snip>
I can run:
python -c "import pysqlite2"
from the command line with no trouble, so I think I have the python
bindings
I'm now at a total loss as to how to proceed, so any thoughts or help
would be greatly appreciated.
thanks
dorian
--
I do things for love or money
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac