我收到错误ImportError:无法导入名称节点
错误来来去去,如果我在开发服务器上终止实例并启动一个新实例,该网站会在短时间内正确加载,然后错误返回。
回溯在下面。
感谢。
Traceback (most recent call last):
File "C:\Program Files(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "C:\Program Files(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 299,in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "C:\Program Files(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "C:\Users\bar\PycharmProjects\foo\events.py", line 15, in <module>
from BaseHandler import BaseHandler
File "C:\Users\bar\PycharmProjects\foo\BaseHandler.py", line 6, in <module>
import jinja2
File "C:\Program Files(x86)\Google\google_appengine\lib\jinja2- 2.6\jinja2\__init__.py", line 33, in <module>
from jinja2.environment import Environment, Template
File "C:\Program Files(x86)\Google\google_appengine\lib\jinja2- 2.6\jinja2\environment.py", line 13, in <module>
from jinja2 import nodes
ImportError: cannot import name nodes
EDIT 它似乎只发生在文件发生变化时。即,在尝试加载events.hmtl
时,在events.py中进行更改会导致错误