【问题标题】:There are many missing files in egg packages when run plone 4 buildout运行plone 4 buildout时,egg包中有很多丢失的文件
【发布时间】:2011-12-17 03:43:25
【问题描述】:

我需要帮助。我正在尝试在我的 Fedora 14 操作系统上构建 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 包。我不记得确切但有很多鸡蛋包有同样的问题。

【问题讨论】:

  • 你能用一个例子来扩展你的问题吗?包的名称,您期望但缺少的文件,诸如此类。
  • 您需要指定确切的错误消息。你描述的过程对我有用。

标签: python plone buildout


【解决方案1】:

很可能您运行了一个在提取一些鸡蛋期间完成非常糟糕的扩建。然后你重新运行构建,鸡蛋似乎已经存在,但它只是真正鸡蛋的一半。实际上,如果您在 pypi 上检查 product,则存档中确实存在丢失的目录,我相信任何丢失的文件都是一样的。我建议彻底清除eggs目录并从头开始重新启动该过程。

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

【讨论】:

  • 是的,我想是的。我的网络安全可能会导致这个问题。我稍后会确定。现在我正在使用 Plone UnifiedInstaller。它工作正常。感谢您的回答!
猜你喜欢
  • 1970-01-01
  • 2018-12-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-02-12
  • 1970-01-01
  • 2021-07-08
  • 2016-12-10
相关资源
最近更新 更多