Personal tools
You are here: Home Documentation Error References Permission denied: ... .python-eggs
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Permission denied: ... .python-eggs

This Error Reference applies to: Plone 3.0.x, Plone 2.5.x
This Error Reference is intended for: Any audience.

Product installation failure due to failure to create egg cache

Some Python libraries, notably the Python-MySQL library, are distributed in compressed Python eggs that need to be uncompressed into a cache directory.

Unless you specify a target directory for this cache, Python will try to create it in $HOME/.python-eggs. If you're running Zope under a special user id and with mimimum permissions (as you should), Python may not be able to create the cache directory.

Fixing via buildout

Edit your buildout.cfg to add an environment variable specification pointing to the buildout's var directory to the zope2instance section(s). Then, run bin/buildout.

[instance]
recipe = plone.recipe.zope2instance

...

environment-vars =
    PYTHON_EGG_CACHE ${buildout:directory}/var/.python-eggs

Fixing in an old-style install

The easiest way to solve this problem is to edit your Zope startup script (usually bin/zopectl) to specify a writable location for the cache. Look in zopectl for the line:

export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME

and change it to two lines:

PYTHON_EGG_CACHE="$INSTANCE_HOME/var/.python-eggs"
export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME PYTHON_EGG_CACHE

 

 

by Steve McMahon last modified June 23, 2008 - 18:22 All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by