473,395 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Egg cache problem with mod_python/ez_setup

Hello there,

I have this weird problem with a mod_python application.

Recently I installed ElementTree and cElementTree through ez_setup.py,
even though they were already installed normally (this might not be too
smart, but I don't think it's related to my actual problem).

I have a web application written on top of mod_python that uses
cElementTree for several things. After installing cElementTree through
ez_setup.py, it turns out that I got this Exception on the site:

(most relevant info at the end, obviously, it's quite lengthy)

Mod_python error: "PythonHandler equilex"

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
287, in HandlerDispatch
log=debug)

File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
464, in import_module
module = imp.load_module(mname, f, p, d)

File "/var/www/equilex.eu/http/equilex/__init__.py", line 2, in ?
from equilex.model import Session

File "/var/www/equilex.eu/http/equilex/model/__init__.py", line 4, in ?
from page import Page

File "/var/www/equilex.eu/http/equilex/model/page.py", line 1, in ?
from menu import Menu

File "/var/www/equilex.eu/http/equilex/model/menu.py", line 1, in ?
import cElementTree as et

File "build/bdist.linux-i686/egg/cElementTree.py", line 7, in ?

File "build/bdist.linux-i686/egg/cElementTree.py", line 4, in
__bootstrap__

File
"/usr/lib/python2.4/site-packages/setuptools-0.6b2-py2.4.egg/pkg_resources.py",
line 799, in resource_filename
return get_provider(package_or_requirement).get_resource_ filename(

File
"/usr/lib/python2.4/site-packages/setuptools-0.6b2-py2.4.egg/pkg_resources.py",
line 1228, in get_resource_filename
self._extract_resource(manager, self._eager_to_zip(name))

File
"/usr/lib/python2.4/site-packages/setuptools-0.6b2-py2.4.egg/pkg_resources.py",
line 1249, in _extract_resource
real_path = manager.get_cache_path(

File
"/usr/lib/python2.4/site-packages/setuptools-0.6b2-py2.4.egg/pkg_resources.py",
line 880, in get_cache_path
self.extraction_error()

File
"/usr/lib/python2.4/site-packages/setuptools-0.6b2-py2.4.egg/pkg_resources.py",
line 846, in extraction_error
raise err

ExtractionError: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s) to the
Python egg
cache:

[Errno 13] Permission denied: '/var/www/.python-eggs'

The Python egg cache directory is currently set to:

/var/www/.python-eggs

Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.

Now, I already had a /tmp/eggs dir for eggs, and I had a SetEnv
directive in my vhost config for my Trac vhost (which uses eggs). So I
moved the SetEnv directive from the vhost config to my global
httpd.conf. Curious enough, after restarting apache2, I still got the
same error!! Is there any reason why it may not be picking up the env
variable that points it to the other directory?

Regards,

Manuzhai

Jun 12 '06 #1
0 2027

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: yoda | last post by:
I've recently configured my network such that I use squid as a http proxy. I'd now like to be able to use setuptools and ez_setup via this proxy. Is this possible? If so, how do I do it? The...
3
by: Charles | last post by:
Hello, I'm think about using mod_python for a project but I need to make sure: Does mod_python time out after a minute ? (I hope not). If I leave an HTTP connection open so that the content keeps...
2
by: exhuma.twn | last post by:
Hi again, as soon as I try to make use of the "session" object inside a psp-template file, I get the following error: Mod_python error: "PythonHandler mod_python.publisher" Traceback (most...
1
by: alex23 | last post by:
Hey everyone, I'm trying to install setuptools on a work PC behind an NTLM firewall. I've tried to use APS as recommended but am still unable to have anything other than IE talk through...
7
by: Ben Finney | last post by:
Howdy all, I'm working on a web application that is starting to gain a lot of back-end code written in Python. However, all the current interface code is written in legacy PHP. I'd like to...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
7
by: Nader Emami | last post by:
L.S., I have installed locally Python-2.4.4 without any problem. Then I would install the "ez_setup.py" to be able using of "easy_install" tool, but I get the next error: %python ez_setup.py...
1
by: Gerard M | last post by:
Hi guys I have a big problem with this wrapper im using Ubuntu 7.04 and I want to install python-MySQLdb, I used synaptics and it is installed, but when I try to do and I get this error: ...
3
by: Lawrence D'Oliveiro | last post by:
In message <mailman.109.1216158151.922.python-list@python.org>, Cyril Bazin wrote: What's the error message? This should be in Apache's error_log file.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.