Is there any reason to use --no-site-packages?  

Jeff

On Wed, Jan 06, 2010 at 05:04:40PM -0800, RjOllos wrote:
> I'm now having an issue connecting Trac to Subversion.  Because I
> installed virtualenv with the --no-site-packages option, it appears
> that I either need to installed `python-subversion` in the virtualenv,
> or create an svn.pth file in the site-packages directory of the
> virtualenv to point to the global installation of `python-subversion`,
> as described in [1].
> 
> Python-subversion is installed from the Ubuntu distribution packages,
> so I've tried the latter, adding the following paths to the svn.pth
> file:
> 
> (tracdev)rjol...@pc-rjollos-ubuntu-server-9:~/tracdev$ cat lib/
> python2.6/site-packages/svn.pth
> /usr/lib/pymodules/python2.6/libsvn
> /usr/lib/pymodules/python2.6/svn
> 
> It appears the paths specified in svn.pth are successfully added to
> PYTHONPATH [3], however I still don't have success when running `from
> svn import core` (btw, this command works fine outside the virtualenv,
> so I'm fairly confident that `python-subversion` is correctly globally
> installed).
> 
> I'm on Ubuntu 9.10 x64.
> 
> [1] http://trac.edgewall.org/wiki/TracSubversion#Checklist
> [2] http://packages.ubuntu.com/karmic/python-subversion
> [3]
> >>> import sys
> >>> print sys.path
> ['', '/home/rjollos/tracdev/lib/python2.6/site-packages/
> setuptools-0.6c11-py2.6.egg', '/home/rjollos/tracdev/lib/python2.6/
> site-packages/pip-0.6-py2.6.egg', '/home/rjollos/tracdev/genshi-
> trunk', '/home/rjollos/tracdev/trac-trunk', '/home/rjollos/tracdev/lib/
> python2.6', '/home/rjollos/tracdev/lib/python2.6/plat-linux2', '/home/
> rjollos/tracdev/lib/python2.6/lib-tk', '/home/rjollos/tracdev/lib/
> python2.6/lib-old', '/home/rjollos/tracdev/lib/python2.6/lib-dynload',
> '/usr/lib/python2.6', '/usr/lib64/python2.6', '/usr/lib/python2.6/plat-
> linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib64/python2.6/lib-tk', '/
> home/rjollos/tracdev/lib/python2.6/site-packages', '/usr/lib/pymodules/
> python2.6/libsvn', '/usr/lib/pymodules/python2.6/svn']

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

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


Reply via email to