fy0 / Icarus

🕊️ An opensource community/forum project write with python3 aiohttp and vue.js. 一个开源的社区程序,临时测试站:https://t.myrpg.cn
zlib License
657 stars 123 forks source link

启动后端服务时报错 ImportError: cannot import name 'EMPTY_PERMISSION'` #25

Open ganichiro opened 4 years ago

ganichiro commented 4 years ago

修改完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 4 years ago

我运行提示: 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 4 years ago

emmmmm 之前requirements里的slim版本太旧了,导致了问题,最近更新了,还在抽空写文档。 @lybing 你没安装requirements。我觉得我还是弄个dockerfile吧 这样简单些

ganichiro commented 4 years ago

emmmmm 之前requirements里的slim版本太旧了,导致了问题,最近更新了,还在抽空写文档。 @lybing 你没安装requirements。我觉得我还是弄个dockerfile吧 这样简单些

多谢,搞个dockerfile会很有帮助。

lybing commented 4 years ago

emmmmm 之前requirements里的slim版本太旧了,导致了问题,最近更新了,还在抽空写文档。 @lybing 你没安装requirements。我觉得我还是弄个dockerfile吧 这样简单些 好的,感谢,还是搞个dockerfile方便些,不然我这种弱前端的要搞不少东西,太费劲了