Edgewall Software

Opened 16 years ago

Closed 16 years ago

#200 closed defect (fixed)

PYTHON_EGG_CACHE setting not respected, not zip-safe

Reported by: gkovacs@… Owned by: cmlenz
Priority: major Milestone:
Component: General Version:
Keywords: Cc:

Description

Installing Genshi-0.5dev_r801 as a zipped python-egg file causes unzip failure with permission denied errors even when PYTHON_EGG_CACHE variable is set to a correct location in Apache config by SetEnv. Steps to reproduce:

  1. Install setuptools-0.6c8-py2.5.egg, Trac-0.11b1-py2.5.egg, Pygments-0.9-py2.5.egg, Genshi-0.5dev_r801-py2.5-linux-x86_64.egg. All as zipped egg files (easy_install -z egg-file). Delete possible unzipped cached version /root/.python-eggs and/or custom locations (/var/cache/python-eggs)
  2. Configure Trac to use mod_python via Apache. Add line "SetEnv PYTHON_EGG_CACHE..." to proper section. Do not set PYTHON_EGG_CACHE in the shell that starts Apache.
  3. (Re)start Apache. Loading Trac will cause an internal server error. Genshi tries to unzip itself into /root/.python-eggs despite PYTHON_EGG_CACHE settings.

Scenarios that DON'T produce this error:

  1. Genshi-0.5dev is installed as an unpacked egg into a directory under site-packages. or
  2. Genshi-0.4.4 stable is installed either as a zipped egg or an unpacked egg. or
  3. PYTHON_EGG_CACHE is set manually before starting Apache, i.e. export PYTHON_EGG_CACHE=/var/cache/python-eggs; /etc/init.d/httpd start

System is Fedora 7, Python 2.5 (r25:51908, Nov 6 2007, 15:55:44) [GCC 4.1.2 20070925 (Red Hat 4.1.2-27)], httpd-2.2.8-1.fc7, mod_python-3.3.1-3

Attachments (2)

genshi_error_log.txt (3.3 KB) - added by gkovacs@… 16 years ago.
Error log cut
httpd.conf.txt (512 bytes) - added by gkovacs@… 16 years ago.
part of httpd conf

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by gkovacs@…

Error log cut

Changed 16 years ago by gkovacs@…

part of httpd conf

comment:1 Changed 16 years ago by cmlenz

  • Milestone 0.5 deleted
  • Version devel deleted

This process isn't under Genshi's control. PYTHON_EGG_CACHE should be respected, of course; if it's not that's either a bug in the Trac mod_python frontend or a mistake in your configuration.

comment:2 Changed 16 years ago by jruigrok

Apparently the problem seems to either be less frequent or disappear under 0.10 from what I gathered from someone on the #Trac channel. I think it might be a regression in Trac.

comment:3 Changed 16 years ago by jruigrok

  • Resolution set to fixed
  • Status changed from new to closed

Noah found a problem with the order of importing within Trac. It should be fixed in Trac's repository at revision 6871.

If it does not resolve the issue for you, please log a ticket on the Trac website. It is not a Genshi bug.

Note: See TracTickets for help on using tickets.