TaleLin / lin-cms-flask

🎀A simple and practical CMS implememted by Flask
http://doc.cms.talelin.com/
Other
832 stars 216 forks source link

windows 执行flask db init 出错 #165

Closed bbp19 closed 3 years ago

bbp19 commented 3 years ago

Traceback (most recent call last): File "c:\xxxx\appdata\local\programs\python\python37\lib\site-packages\flask\cli.py", line 240, in locate_app import(module_name) File "D:\xxx\ljyf\starter\starter.py", line 9, in from app.model.lin import ( File "D:\xxx\ljyf\starter\app\model\lin__init.py", line 1, in from .group import Group File "D:\xxx\ljyf\starter\app\model\lin\group.py", line 1, in from lin.model import Group as LinGroup File "c:\xxx\appdata\local\programs\python\python37\lib\site-packages\lin\init__.py", line 18, in from .encoder import JSONEncoder, auto_response File "c:\xxx\appdata\local\programs\python\python37\lib\site-packages\lin\encoder.py", line 10, in from .apidoc import BaseModel File "c:\xxxxappdata\local\programs\python\python37\lib\site-packages\lin\apidoc.py", line 7, in from pydantic.main import Any, object_setattr, validate_model ImportError: cannot import name 'object_setattr' from 'pydantic.main' (c:\xxx\appdata\local\programs\python\python37\lib\site-packages\pydantic\main.py)

sunlin92 commented 3 years ago

你好,无法复现此问题,建议在ide中使用新的初始python环境安装依赖