克隆主题中的断言错误

发布于 2025-01-04 10:17:27 字数 1310 浏览 0 评论 0原文

我是 Plone 新手。我安装了 Plone 4 并且已经完成了 http://noenieto.com/blog/theming-plone- 4并创建了主题产品。

当我运行 ./bin/buildout 时, 我得到的错误是

    Develop: '/usr/local/Plone/zinstance/src/plonetheme.hanging'
error in plonetheme.hanging setup command: Distribution contains no modules or packages for namespace package 'plonetheme'
While:
  Installing.
  Processing develop directory '/usr/local/Plone/zinstance/src/plonetheme.hanging'.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 1683, in main
    getattr(buildout, command)(args)
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 417, in install
    installed_develop_eggs = self._develop()
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 657, in _develop
    zc.buildout.easy_install.develop(setup, dest)
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/easy_install.py", line 895, in develop
    *args) == 0
AssertionError

“谁能帮我纠正这个错误?”

Iam new to Plone. I installed Plone 4 and i have gone through http://noenieto.com/blog/theming-plone-4 and created theme product.

When i run ./bin/buildout,
iam getting the error as

    Develop: '/usr/local/Plone/zinstance/src/plonetheme.hanging'
error in plonetheme.hanging setup command: Distribution contains no modules or packages for namespace package 'plonetheme'
While:
  Installing.
  Processing develop directory '/usr/local/Plone/zinstance/src/plonetheme.hanging'.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 1683, in main
    getattr(buildout, command)(args)
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 417, in install
    installed_develop_eggs = self._develop()
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 657, in _develop
    zc.buildout.easy_install.develop(setup, dest)
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/easy_install.py", line 895, in develop
    *args) == 0
AssertionError

Can anyone help me to rectify this error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

稍尽春風 2025-01-11 10:17:28

为命名空间包“plonetheme”创建一个模块或包,例如:

mkdir -p src/plonetheme.hanging/plonetheme/hanging
touch src/plonetheme.hanging/plonetheme/__init__.py
touch src/plonetheme.hanging/plonetheme/hanging/__init__.py

src/plonetheme.hanging/plonetheme/__init__.py 应该包含类似以下内容:

from pkg_resources import declare_namespace
declare_namespace(__name__)

Create a module or package for namespace package 'plonetheme', e.g.:

mkdir -p src/plonetheme.hanging/plonetheme/hanging
touch src/plonetheme.hanging/plonetheme/__init__.py
touch src/plonetheme.hanging/plonetheme/hanging/__init__.py

src/plonetheme.hanging/plonetheme/__init__.py should contain something like:

from pkg_resources import declare_namespace
declare_namespace(__name__)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文