On Sat, Mar 12, 2011 at 03:47:02PM -0800, Mike Orr wrote:
> I got a similar problem with Ubuntu 10.10. It seems that namespace
> packages (which zope is) can't be split between the global
> site-packages and the virtualenv. Kubuntu installs some Zope packges
> by default, and somehow when Pip installs Pyramid, it sees that these
> are already installed but when you run the application later it can't
> find them. The only solution is --no-site-packages.
> 
> This sucks however if you need to use packages with C dependencies
> that can be difficult to install sometimes, such as mysql-python or
> PIL, where you want to use the OS packages. I haven't needed these in
> Pyramid yet so I'm not sure what I'm going to do about them.

You could symlink them manually into your virtualenv that was created
with --no-site-packages.

Or you could try zc.buildout.  It has its own share of headaches, but it
supports isolation from system packages with specific exceptions.

(Although I've been using zc.buildout without site isolation, on Ubuntu,
with zope.interface in system packages, and haven't encountered problems
with namespace packages.  Maybe that's because zc.buildout is built on
top of easy_install, which does something different.  Or maybe version
requirements in my buildouts rule out my system-wide zope.interface
installation.)

Marius Gedminas
-- 
We're sysadmins. To us, data is a protocol-overhead.

Attachment: signature.asc
Description: Digital signature

Reply via email to