如何在python egg中更新文件

bes*_*bov 5 python trac egg

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

由于鸡蛋只是一个ziped的领域我只是解开它,更改文件并再次ziped.重新启动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.
Run Code Online (Sandbox Code Playgroud)

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

会欣赏任何想法.

kni*_*tti 6

只需构建一个新蛋(带python setup.py bdist_egg),重新安装鸡蛋并重启你的trac实例.