Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Help (python help) installing Trac on RHEL4u4 without root permissions?

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


alex.baglione at gmail

Jun 22, 2009, 10:32 AM

Post #1 of 2 (226 views)
Permalink
Help (python help) installing Trac on RHEL4u4 without root permissions?

Hey everybody,

I'm trying to install Trac without root permissions on a linux server
and I'm running into a python problem. I've never done any python
programming before, so I could use a push here:

Failed to create environment. global name 'sqlite' is not defined.

I've googled it, read the twelve posts about it in this group, and
googled for "installing trac without root" and that has helped a lot
and gotten me this far. From what I gather my problem is that when I
run:

./trac-admin /home/ab/opt/trac/env initenv

python can't find the pysqlite that I have installed in /home/ab/opt/
pysqlite-2.3.3. (/home/ab/opt/pysqlite-2.3.3/pysqlite2 contains the
dbapi2.py file that all the posts say is important.)

I have tried setting the PYTHONPATH and LD_LIBRARY_PATH environment
variables to various things (/homе/ab/opt/pysqlite-2.3.3, /homе/ab/opt/
pysqlite-2.3.3/pysqlite2, etc), but to no avail. I also tried editing
the trac-admin python script and adding in import lines pointing to my
pysqlite libs so that it looks like:

import ѕys
ѕys.pаth.append('/homе/ab/opt/pysqlite-2.3.3')
ѕys.pаth.append('/homе/ab/opt/pysqlite-2.3.3/pysqlite2')
import pysqlite2

That didn't work either. It gives me an error from dbapi2.py barfing
on:

from pysqlite2._sqlite import *
ImportError: No module named pysqlite2._sqlite

But sqlite is installed in /home/ab/opt/sqlite. Maybe it can't find
sqlite? When I do "/sbin/ldconfig -v | grep sqlite" it doesn't find
it.

So my question is how do I tell Python to look in /home/ab/opt/
pysqlite-2.3.3 so that it can find the sqlite module that it's
complaining about? Do I need to set the PYTHONPATH or LD_LIBRARY_PATH
vars to something? Should that work? Or am I missing something else?

Thanks a bunch,

-AB

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


alex.baglione at gmail

Jul 1, 2009, 11:44 AM

Post #2 of 2 (156 views)
Permalink
Re: Help (python help) installing Trac on RHEL4u4 without root permissions? [In reply to]

Hey everybody,

This is still plaguing me. Are there any python developers out there
who can help?

Thanks,

-AB

On Jun 22, 1:32 pm, ab <alex.bagli...@gmail.com> wrote:
> Hey everybody,
>
> I'm trying to install Trac without root permissions on a linux server
> and I'm running into a python problem.  I've never done any python
> programming before, so I could use a push here:
>
>   Failed to create environment. global name 'sqlite' is not defined.
>
> I've googled it, read the twelve posts about it in this group, and
> googled for "installing trac without root" and that has helped a lot
> and gotten me this far.  From what I gather my problem is that when I
> run:
>
> ./trac-admin /home/ab/opt/trac/env initenv
>
> python can't find the pysqlite that I have installed in /home/ab/opt/
> pysqlite-2.3.3.  (/home/ab/opt/pysqlite-2.3.3/pysqlite2 contains the
> dbapi2.py file that all the posts say is important.)
>
> I have tried setting the PYTHONPATH and LD_LIBRARY_PATH environment
> variables to various things (/homе/ab/opt/pysqlite-2.3.3, /homе/ab/opt/
> pysqlite-2.3.3/pysqlite2, etc), but to no avail.  I also tried editing
> the trac-admin python script and adding in import lines pointing to my
> pysqlite libs so that it looks like:
>
> import ѕys
> ѕys.pаth.append('/homе/ab/opt/pysqlite-2.3.3')
> ѕys.pаth.append('/homе/ab/opt/pysqlite-2.3.3/pysqlite2')
> import pysqlite2
>
> That didn't work either.  It gives me an error from dbapi2.py barfing
> on:
>
>      from pysqlite2._sqlite import *
> ImportError: No module named pysqlite2._sqlite
>
> But sqlite is installed in /home/ab/opt/sqlite.  Maybe it can't find
> sqlite?  When I do "/sbin/ldconfig -v | grep sqlite" it doesn't find
> it.
>
> So my question is how do I tell Python to look in /home/ab/opt/
> pysqlite-2.3.3 so that it can find the sqlite module that it's
> complaining about?  Do I need to set the PYTHONPATH or LD_LIBRARY_PATH
> vars to something?  Should that work?  Or am I missing something else?
>
> Thanks a bunch,
>
> -AB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.