我不能让 Jinja2 2.8 与 Pyramid 1.4.2 和 Python 3.3.2 一起工作。我收到了这个错误:
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/Jinja2-2.8_devdev_20130604-py3.3.egg/jinja2/environment.py", line 765, in _load_template
template = self.loader.load(self, name, globals)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/Jinja2-2.8_devdev_20130604-py3.3.egg/jinja2/loaders.py", line 119, in load
bucket = bcc.get_bucket(environment, name, filename, source)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/Jinja2-2.8_devdev_20130604-py3.3.egg/jinja2/bccache.py", line 176, in get_bucket
key = self.get_cache_key(name, filename)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/Jinja2-2.8_devdev_20130604-py3.3.egg/jinja2/bccache.py", line 163, in get_cache_key
if isinstance(filename, unicode):
NameError: global name 'unicode' is not defined
我有 WebOb 1.2.3 并分发 0.6.45。谢谢!!!