运行 plone 4 buildout 时,egg 包中缺少许多文件
我需要帮助。我正在尝试在 Fedora 14 操作系统上构建 plone 4.1。但我遇到了一个问题。看来大多数egg包都有很多丢失的文件。我做了什么:paster create -t plone4_buildout --> python2.6 boottrap.py --> bin/buildout。我做了一个解决方法:从 pypi 下载包并替换错误包。谁能告诉我我会发生什么?
我的错误消息:
Installing instance.
While:
Installing instance.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/thaison/Projects/xxx/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 1683, in main
getattr(buildout, command)(args)
File "/home/thaison/Projects/xxx/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 555, in install
installed_files = self[part]._call(recipe.install)
File "/home/thaison/Projects/xxx/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 1227, in _call
return f()
File "/home/thaison/Projects/xxx/eggs/plone.recipe.zope2instance-4.1.7-py2.6.egg/plone/recipe/zope2instance/__init__.py", line 84, in install
make.make_instance(options.get('user', None), location, version)
File "/home/thaison/Projects/xxx/eggs/plone.recipe.zope2instance-4.1.7-py2.6.egg/plone/recipe/zope2instance/make.py", line 23, in make_instance
copyskel(skelsrc, instancehome)
File "/home/thaison/Projects/xxx/eggs/plone.recipe.zope2instance-4.1.7-py2.6.egg/plone/recipe/zope2instance/make.py", line 65, in copyskel
os.chdir(sourcedir)
OSError: [Errno 2] No such file or directory: '/home/thaison/Projects/xxx/eggs/plone.recipe.zope2instance-4.1.7-py2.6.egg/plone/recipe/zope2instance/skel213'
plone.recipe.zope2instance-4.1.7-py2.6.egg 是第一个缺少文件的 Egg 包。我记不太清楚了,但有很多鸡蛋包装也有同样的问题。
I need help. I am trying to build plone 4.1 on my Fedora 14 Os. But I got a problem. It seems most of egg packages had many missing files. What I did: paster create -t plone4_buildout --> python2.6 boottrap.py --> bin/buildout
. I did a workaround: download packages from pypi and replace error packages. Could anyone tell me what happens to me?
My error message:
Installing instance.
While:
Installing instance.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/thaison/Projects/xxx/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 1683, in main
getattr(buildout, command)(args)
File "/home/thaison/Projects/xxx/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 555, in install
installed_files = self[part]._call(recipe.install)
File "/home/thaison/Projects/xxx/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 1227, in _call
return f()
File "/home/thaison/Projects/xxx/eggs/plone.recipe.zope2instance-4.1.7-py2.6.egg/plone/recipe/zope2instance/__init__.py", line 84, in install
make.make_instance(options.get('user', None), location, version)
File "/home/thaison/Projects/xxx/eggs/plone.recipe.zope2instance-4.1.7-py2.6.egg/plone/recipe/zope2instance/make.py", line 23, in make_instance
copyskel(skelsrc, instancehome)
File "/home/thaison/Projects/xxx/eggs/plone.recipe.zope2instance-4.1.7-py2.6.egg/plone/recipe/zope2instance/make.py", line 65, in copyskel
os.chdir(sourcedir)
OSError: [Errno 2] No such file or directory: '/home/thaison/Projects/xxx/eggs/plone.recipe.zope2instance-4.1.7-py2.6.egg/plone/recipe/zope2instance/skel213'
plone.recipe.zope2instance-4.1.7-py2.6.egg is the first egg package that had missing files. I don't remember exactly but there are many egg packages has the same problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最有可能的是,您进行了一次扩建,但在提取一些鸡蛋时,结果非常糟糕。然后你重新运行构建,鸡蛋似乎已经存在,但它只是真正鸡蛋的一半。事实上,如果您检查 pypi 上的 产品,缺少的目录do 存在于存档中,我相信对于任何丢失的文件来说都是一样的。我建议完全清除 Eggs 目录并从头开始重新启动该过程。
我不认为在这种特殊情况下您会遇到 SELinux 的问题(正如您所说您正在使用 Fedora),但为了以防万一,我也会尝试暂时禁用它。
Most probably you ran a buildout that finished very badly during an extraction of some egg. Then you re-ran the buildout and the egg seemed to be already present but it was just a half of the real egg. Indeed, if you check the product on pypi, the missing dir do exists in the archive and I'm confident that would be the same for any missing file. I would suggest to completely purge the eggs directory and restart the process from the beginning.
I don't think that in this particular case you are facing a problem with SELinux (as you said you are using a Fedora), but just in case, I would also try to temporarly disable it.