python-egg-cache

apache user can not write to .python-eggs

强颜欢笑 提交于 2020-01-03 20:58:22
问题 I have read that I need to set the PYTHON_EGG_CACHE environment variable, or install the python library as an uncompressed .egg Which do you suggest? 回答1: I got it working by uncompressing the .egg so it did not require the cache directory: Install MySQLdb (for python) as non-compressed egg 回答2: It totally depends on if you want to make the egg available as a generally available library or just for a single (or a handful of applications). Are you talking about a Trac installation? If so,

What is the Python egg cache (PYTHON_EGG_CACHE)?

时间秒杀一切 提交于 2019-12-17 15:24:29
问题 I've just upgraded from Python 2.6.1 to 2.6.4 on my development machine and upon starting a python script was presented with the following message: 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

How do you fix a Trac installation that begins giving errors relating to PYTHON_EGG_CACHE?

为君一笑 提交于 2019-12-11 05:34:09
问题 We've been using Trac for task/defect tracking and things were going well enough, but this morning it started serving up a 500 error. Looking in the Apache error_log, I get a stack trace that culminates in: PythonHandler trac.web.modpython_frontend: 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: '/.python-eggs' The Python egg cache directory is currently set to: /.python

pkg_resources.resource_filename is not extracting files

点点圈 提交于 2019-12-10 19:32:17
问题 I want to package a project that contains (and uses) template html files and distribuite it as an egg. Since I’m using tornadoweb, which requires file paths to point to html files, I can’t access the resources via stream and I really need the html files to be extracted when my program is running. I’m having a look at setuptools and according to resource_filename docs (bold is mine): Sometimes, it is not sufficient to access a resource in string or stream form, and a true filesystem filename

What is the Python egg cache (PYTHON_EGG_CACHE)?

五迷三道 提交于 2019-11-27 17:56:13
I've just upgraded from Python 2.6.1 to 2.6.4 on my development machine and upon starting a python script was presented with the following message: 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. There isn't