5

我们正在使用 trac。在我们的设置中,我们有一个在存储库中解决的问题。所以我从存储库中得到了固定文件commit_update.py,我需要将它放入Trac-0.12-py2.6.egg。

由于鸡蛋只是一个压缩文件,我只是解压缩它,更改文件并再次压缩。重新启动 trac 后,我收到一条错误消息:

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 20] Not a directory

The Python egg cache directory is currently set to: 

    /var/trac/plugin-cache

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.

我不太明白为什么会出现这个错误,因为我在 www-data 下运行 trac 实例,它是插件缓存的所有者。

将欣赏任何想法。

4

2 回答 2

7

只需构建一个新的 egg(使用python setup.py bdist_egg),重新安装 egg 并重新启动您的 trac 实例。

于 2010-09-17T14:15:28.730 回答
3

我只是使用解压缩鸡蛋文件

sudo unzip django_tastypie-0.9.11-py2.7.egg

这在同一路径中创建了一个名为tastepie的新文件夹,然后,我将文件更改为其中,之后,我删除了egg文件并继续仅使用新文件夹。

于 2012-09-30T15:21:25.537 回答