Graham Dumpleton <[EMAIL PROTECTED]> writes:

> More below.
>
> On Aug 27, 3:33 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
>> On Aug 27, 2:54 pm, Olaf Meeuwissen <[EMAIL PROTECTED]> wrote:
>> > Graham Dumpleton <[EMAIL PROTECTED]> writes:
>> [snip!]
>> > > How in your configuration are you getting:
>>
>> > >   /path/to/SandBox/lib/python2.5/site-packages
>>
>> > > added to sys.path?
>>
>> > The same way as /path/to/WSGIHome/lib/python2.5/site-packages, I'd
>> > presume.  That is, I have no clue, really.  I think virtualenv and/or
>> > easy_install automagically take care of that.
>>
>> > > If this contains .pth files you can't just use:
>>
>> > >   sys.path.append(....)
>>
>> > > as that doesn't result in .pth files being parsed with content added
>> > > to sys.path in the process.
>>
>> > The /path/to/SandBox/lib/python2.5/site-packages directory contains a
>> > .pth file with the following contents:
>>
>> >   /usr/share/python-support/python-subversion
>>
>> You previously indicated locations as:
>>
>>  *.py in /usr/share/python-support/python-subversion/{svn,libsvn}
>>   *.so in /usr/lib/python-support/python-subversion/python2.[45]/
>> libsvn
>>
>> And that you had:
>>
>>   $ cat /path/to/virtualenv/lib/python2.5/site-packages/svn-
>> python.pth
>>   /usr/lib/python-support/python-subversion/python2.5
>>   /usr/lib/python-support/python-subversion
>>   /usr/share/python-support/python-subversion
>>
>> Shouldn't the directory containing the .so files, ie.,
>>
>>   /usr/lib/python-support/python-subversion/python2.5
>>
>> still be in the .pth file? You now only have:
>>
>>   /usr/share/python-support/python-subversion
>>
>> which would mean only .py files would be found.
>>
>> Yes/No?

Tried that, but it didn't make things work.  The additional entries in
the .pth file do get listed in the Apache error logs, though.

BUT!  If I also add the libsvn directory that lives below
/usr/lib/python-support/python-subversion/python2.5/ to the .pth file
things work!  As in, that 'module _fs not found' error goes away and
I can browse the repository.

For the record, my python-subversion.pth now contains:

  /usr/share/python-support/python-subversion
  /usr/lib/python-support/python-subversion/python2.5/libsvn

Me now wonders why all this works out of the box using a virtualenv
*with* site-packages ...

A `virtualenv --no-site-packages` use the following sys.path:

  ['', 
'/path/to/WSGIHome/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg', 
'/path/to/WSGIHome/lib/python2.5/site-packages/Pygments-0.10-py2.5.egg', 
'/path/to/WSGIHome/lib/python2.5/site-packages/pytz-2008c-py2.5.egg', 
'/path/to/WSGIHome/lib/python25.zip', '/path/to/WSGIHome/lib/python2.5', 
'/path/to/WSGIHome/lib/python2.5/plat-linux2', 
'/path/to/WSGIHome/lib/python2.5/lib-tk', 
'/path/to/WSGIHome/lib/python2.5/lib-dynload', '/usr/lib/python2.5', 
'/usr/lib/python2.5/lib-tk', '/path/to/WSGIHome/lib/python2.5/site-packages']

And a "regular" `virtualenv` uses:

  ['', 
'/path/to/WSGIHome/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg', 
'/path/to/WSGIHome/lib/python2.5/site-packages/Pygments-0.10-py2.5.egg', 
'/path/to/WSGIHome/lib/python2.5/site-packages/pytz-2008c-py2.5.egg', 
'/path/to/WSGIHome/lib/python25.zip', '/path/to/WSGIHome/lib/python2.5', 
'/path/to/WSGIHome/lib/python2.5/plat-linux2', 
'/path/to/WSGIHome/lib/python2.5/lib-tk', 
'/path/to/WSGIHome/lib/python2.5/lib-dynload', '/usr/lib/python2.5', 
'/usr/lib/python2.5/lib-tk', '/path/to/WSGIHome/lib/python2.5/site-packages', 
'/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', 
'/usr/lib/python2.5/site-packages/PIL', '/var/lib/python-support/python2.5']

There's gotta be some kind of magic going on in those last four
directories.  The first one is empty and I doubt PIL has anything to
do with.  The leaves only two but I don't know enough about Python to
figure out where and what.  A cluebat is appreciated.

> [snip]

Thanks!
-- 
Olaf Meeuwissen                   FLOSS Engineer -- AVASYS Corporation
FSF Associate Member #1962           sign up at http://member.fsf.org/

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