【发布时间】:2015-07-14 16:48:08
【问题描述】:
我正在尝试安装基于 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 文件 (!?)。
我已经尝试删除并重新克隆存储库。
【问题讨论】:
-
bootstrap.py尝试加载 Python 脚本并执行它,但加载失败,因为返回的是 HTML。也许 Plumi 引导脚本已过时,并且指向不再有效的 URL。 -
嗨 Marijn 感谢您的回复!我在 bootstrap.py 中看到了这个,除了 ImportError: ez = {} exec urllib2.urlopen('python-distribute.org/distribute_setup.py' ).read() in ez ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True ) 这是我在 bootstrap.py 中可以找到的唯一 URL,它无效我尝试浏览它并显示一个 HTML 页面。也许这就是问题所在?我正在寻找该文件的另一个版本,它现在没有损坏。
-
bootstrap.py中第 61 行的 URL 重定向到 HTML 页面,而不是distribute_setup.py文件。您可以尝试将 URL 替换为 this one。
标签: python linux plone buildout