我正在尝试在 1and1 的共享主机中使用 Mezzanine cms。我安装了最近的 python 版本 3.3.2。
设置运行良好,但是当我尝试创建项目时,我收到以下错误消息:
~/Mezzanine-1.4.16 > 夹层项目博客
回溯(最近一次通话最后):
文件“/kunden/homepages/x/dxxxxxxx/htdocs/custom/bin/mezzanine-project”,第 9 行,在
load_entry_point('Mezzanine==1.4.16', 'console_scripts', 'mezzanine-project')()
文件“/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py”,第 345 行,在 load_entry_point
return get_distribution(dist).load_entry_point(group, name)
文件“/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py”,第 2382 行,在 load_entry_point
返回 ep.load()
加载中的文件“/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py”,第 2088 行
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
文件“/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/Mezzanine-1.4.16-py3.3.egg/mezzanine/bin/mezzanine_project.py”,第9行,在
从 mezzanine.utils.importing 导入 path_for_import
文件“/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/Mezzanine-1.4.16-py3.3.egg/mezzanine/utils/importing.py”,第 23 行
除了(ValueError、ImportError、AttributeError),e:
^
SyntaxError:无效的语法
关于如何解决这个问题的任何想法?谢谢你。