Plumi/Plone 构建过程中的语法错误

Syntax Error during Plumi/Plone buildout

我正在尝试安装基于 Plone 的 Plumi 4.5.1。

目标系统是:

3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64

(Debian GNU/Linux 8)

我正在按照本指南进行操作

https://mgogoulos.trinket.io/plumi-4-5#/installation/installation

在成功完成之前的所有步骤后,当我尝试 运行 步骤 4 中的扩建时,如下所示:

./bin/python bootstrap.py && ./bin/buildout -v

我收到此错误:

root@suhail:/home/plumi/PLUMI/plumi.app# ./bin/python  bootstrap.py && ./bin/buildout -v
Traceback (most recent call last):
  File "bootstrap.py", line 61, in <module>
    ).read() in ez
  File "<string>", line 1
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax

有没有人可以给我提示?

看起来 bootstrap.py 被读取为 HTML 文件 (!?)。

我已经尝试删除并重新克隆存储库。

Plumi bootstrap 脚本试图从过时的 URL 安装 setuptools:

exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
                     ).read() in ez

域名 python-distribute.org 现在重定向到 link 场。

Plumi 项目应尽快修复其 bootstrap 脚本,但您可以通过将 URL 替换为 https://bitbucket.org/pypa/setuptools/raw/f657df1f1ed46596d236376649c99a470662b4ba/distribute_setup.py 作为临时解决方法在本地修复此问题。这是 URL 即 official buildout 1.x bootstrap.py now uses.

域名没了,因为distribute早就死了;它是 setuptools 的一个分支,合并回主项目。