启动后端服务时报错 ImportError: cannot import name 'EMPTY_PERMISSION'`
ganichiro opened this issue · 4 comments
ganichiro commented
修改完private.py后再次运行
python main.py
报错:
Traceback (most recent call last):
File "main.py", line 3, in <module>
from app import app
File ".\app.py", line 1, in <module>
from slim import Application, CORSOptions, EMPTY_PERMISSION
ImportError: cannot import name 'EMPTY_PERMISSION'
ModuleNotFoundError: No module named 'slim'
疑似发生circular dependency imports
我用的是Windows10,anaconda python3.6.5
lybing commented
我运行提示:
Traceback (most recent call last):
File "main.py", line 3, in
from app import app
File "./app.py", line 1, in
from slim import Application, CORSOptions
ModuleNotFoundError: No module named 'slim'
fy0 commented
emmmmm 之前requirements里的slim版本太旧了,导致了问题,最近更新了,还在抽空写文档。
@lybing 你没安装requirements。我觉得我还是弄个dockerfile吧 这样简单些