我對plone.org的Plone - 語法錯誤時做的Hello World教程
以下this 「Hello World」 的教程,但我被困在one moment由於錯誤:
[email protected]:~/Plone/python_dev/env-27# cd hello_world
[email protected]:~/Plone/python_dev/env-27/hello_world# ../bin/python bootstrap.py
Traceback (most recent call last):
File "bootstrap.py", line 70, in <module>
exec urllib2.urlopen(setup_url).read() in ez
File "<string>", line 1
<!DOCTYPE html>
^
SyntaxError: invalid syntax
我甩了完整的[非常非常長]控制檯輸出here。
什麼原因導致這種情況,以及如何避免它?
編輯:
而且還buildout.cfg其在同一文件夾
# This is here just for backward compatibility
[buildout]
extends =
src/base.cfg
src/readline.cfg
src/libjpeg.cfg
src/python27.cfg
src/pypy.cfg
src/pypy3.cfg
src/links.cfg
parts =
${buildout:base-parts}
${buildout:readline-parts}
${buildout:libjpeg-parts}
${buildout:python27-parts}
${buildout:pypy-parts}
${buildout:pypy3-parts}
${buildout:links-parts}
python-buildout-root = ${buildout:directory}/src
# we want our own eggs directory and nothing shared from a
# ~/.buildout/default.cfg to prevent any errors and interference
eggs-directory = eggs
[install-links]
prefix = /opt/local
是什麼代碼看起來像在行70? – komaflash
我也添加了整個文件。 –
這可能是本教程已過時。看起來像這裏https://github.com/plone/documentation/issues/232有人遇到另一個問題,同一個教程和社區只是簡單地提到另一個培訓材料。 –