1

我正在尝试按照此处的演练为我的 Plone 5.1 服务器生成一个新主题:

https://training.plone.org/5/theming/theme-package.html

我正在使用运行 clang clang-1000.11.45.5(XCode 附带的那个)和 Python 3.6.4(通过 Anaconda 安装)的 MacOS 10.13.6。由于 mr.bob 生成的构建脚本似乎不包含所有依赖项,特别是plone.recipe.zope2instance==4.2.22. 当我尝试手动安装该依赖项时,出现以下编译错误:

src/Persistence/_Persistence.c:178:5: error: non-void function 'init_Persistence' should return a value [-Wreturn-type]
    return;
    ^
17 warnings and 7 errors generated.
error: command 'clang' failed with exit status 1

我尝试升级到最新版本的 mr.bob 和模板,然后使用 plonecli 创建并启动构建,但我得到了相同的编译错误。

该模块中有很多类似的内容。我该如何解决这个问题,以便我可以完成安装该依赖项并完成我的构建?

4

2 回答 2

3

尝试使用 Python 2.7,Zope 和 Plone 更好地支持它。

于 2019-01-19T12:09:03.610 回答
1

Plone 使用 Python 2.7.x 直到版本 5.1。在 Plone 5.2 中,您可以选择在 Python 3 下运行 Plone,但是您必须使用 WSGI-Server 而不是 ZServer。现在只需将 Plone 5.1 与 Python 2.7 一起使用,因为 Plone 5.2 仍未最终发布。

于 2019-01-29T16:43:06.587 回答