我正在尝试在1and1的共享主机中使用Mezzanine cms。我安装了最新的python版本3.3.2。
设置工作正常但是当我尝试创建项目时,我收到以下错误消息:
~/Mezzanine-1.4.16 > mezzanine-project blog Traceback (most recent call last): File "/kunden/homepages/x/dxxxxxxx/htdocs/custom/bin/mezzanine-project", line 9, in load_entry_point('Mezzanine==1.4.16', 'console_scripts', 'mezzanine-project')() File "/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 345, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 2382, in load_entry_point return ep.load() File "/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 2088, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/Mezzanine-1.4.16-py3.3.egg/mezzanine/bin/mezzanine_project.py", line 9, in from mezzanine.utils.importing import path_for_import File "/kunden/homepages/x/dxxxxxxx/htdocs/custom/lib/python3.3/site-packages/Mezzanine-1.4.16-py3.3.egg/mezzanine/utils/importing.py", line 23 except (ValueError, ImportError, AttributeError), e: ^ SyntaxError: invalid syntax
有关如何解决此问题的任何想法?谢谢。
答案 0 :(得分:1)
当前版本的Mezzanine(1.4.16)不支持Python 3.您必须使用Python 2.6 / 2.7(Source: dependencies section in official docs)。
答案 1 :(得分:0)
现在支持Mezzanine 3.x