运行plone 4 buildout时,egg包中有许多丢失的文件

时间:2011-12-17 03:43:26

标签: python plone buildout

我需要帮助。我正在尝试在我的Fedora 14 Os上构建plone 4.1。但我遇到了问题。似乎大多数鸡蛋包都有很多丢失的文件。我做了什么: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包。我不记得确切,但有很多鸡蛋包有同样的问题。

1 个答案:

答案 0 :(得分:0)

最有可能的是,你在一个鸡蛋的提取过程中运行了一个非常糟糕的扩建。然后你重新进行了扩建,鸡蛋似乎已经存在,但它只是真正鸡蛋的一半。实际上,如果您检查pypi上的product,则存档中存在缺少的目录,我相信对于任何丢失的文件都是相同的。我建议完全清除egg目录并从头开始重新启动该过程。

我认为在这种特殊情况下你不会遇到SELinux的问题(正如你所说的那样使用Fedora),但为了以防万一,我也会尝试暂时禁用它。