搭建Plone开发环境编译报错

Compile errors when setting up Plone development environment

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

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

我正在使用 MacOS 10.13.6 运行ning clang clang-1000.11.45.5(XCode 附带的那个)和 Python 3.6.4(通过 Anaconda 安装).我 运行 遇到了一些麻烦,因为 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 创建并启动构建,但我遇到了相同的编译错误。

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

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

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 仍未最终发布。