Anybody have any thoughts?

Jeremy Gillick wrote:
> Matt Good wrote:
>>
>> Is Python also installed in /usr/local, or was it installed to /usr?
>> If it's installed in /usr it may not be configured to look for
>> packages under /usr/local.  You'll need to add that "site-packages"
>> path to the PYTHONPATH environment variable.
>>
>>   
>
> I tried that with the same results:
>
>     export PYTHONPATH=/usr/local/lib/python2.5/site-packages/
>     ...
>     Creating and Initializing Project
>     Failed to create environment. global name 'sqlite' is not defined
>     Traceback (most recent call last):
>       File
>     "/usr/local/lib/python2.5/site-packages/trac/scripts/admin.py",
>     line 613, in do_initenv
>         options=options)
>       File "/usr/local/lib/python2.5/site-packages/trac/env.py", line
>     124, in __init__
>         self.create(options)
>       File "/usr/local/lib/python2.5/site-packages/trac/env.py", line
>     229, in create
>         DatabaseManager(self).init_db()
>       File "/usr/local/lib/python2.5/site-packages/trac/db/api.py",
>     line 69, in init_db
>         connector.init_db(**args)
>       File
>     "/usr/local/lib/python2.5/site-packages/trac/db/sqlite_backend.py",
>     line 121, in init_db
>         cnx = sqlite.connect(path, timeout=int(params.get('timeout',
>     10000)))
>     NameError: global name 'sqlite' is not defined
>
>
> Hmmm, it appears that python is also installed in /usr like you suspected:
>
>     $ ls -al /usr/bin/python*
>     -rwxr-xr-x  2 root root 3336 May 16  2005 /usr/bin/python
>     lrwxrwxrwx  1 root root    6 Oct 23 12:11 /usr/bin/python2 -> python
>     -rwxr-xr-x  2 root root 3336 May 16  2005 /usr/bin/python2.4
>
>
> However, the one in /usr/local/ seems to be the one being used:
>
>     $ which python
>     /usr/local/bin/python
>
> I have also installed ViewVC with the Python SVN packages under 
> /usr/local/lib/python2.5/site-packages/ and it works fine.
>
> Any other thoughts?
>
> - Jeremy
>
> >


--~--~---------~--~----~------------~-------~--~----~
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