Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'ColumnList' from 'amis' #36

Closed
molanp opened this issue May 25, 2023 · 4 comments
Closed

ImportError: cannot import name 'ColumnList' from 'amis' #36

molanp opened this issue May 25, 2023 · 4 comments

Comments

@molanp
Copy link

molanp commented May 25, 2023

看了一圈没看到有人问这个,gpt也没告诉我答案
代码是昨天直接code的
以下是错误部分以及输出

from amis import ColumnList, AmisList, ActionType, TableCRUD, TableColumn
ImportError: cannot import name 'ColumnList' from 'amis' (C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-AaQaxJK--py3.9\lib\site-packages\amis\__init__.py)
@CMHopeSunshine
Copy link
Owner

装错库了吧?是amis-python而不是amis

@CMHopeSunshine
Copy link
Owner

如果是pip install 本插件或者nb plugin install不会出现这种情况的啊,是手动安装的依赖吗?是的话,请把amis卸载后再安装回amis-python

@molanp
Copy link
Author

molanp commented May 26, 2023

噢我装的amis,我试一下

@molanp
Copy link
Author

molanp commented May 26, 2023

正常运行了,但是现在遇到了
#34 #19 的问题,看起来是orm导致的数据库读取冲突,目前好像无法解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants