AttributeError:partially initialized module ''has no attribute''(most likely dueto a circular import
lanxiaofang
AttributeError:partially initialized module ''has no attribute''(most likely dueto a circular import
给我自己笑死,这个错误:
AttributeError: partially initialized module 'itchat' has no attribute 'auto_login' (most likely due to a circular import)
1、我已经是确定导入了itchat了 pip install itchat
2、报错翻译过来的结果就是:
AttributeError:部分初始化的模块“itchat”没有属性“auto_login”(很可能是由于循环导入)
我再看了看我的命名方式,我就笑了~~~,我的文件命名为 itchat.py 了 ,这就是给自己挖坑,改了文件名就好了,改成了test_itchat.py
真是个憨憨
完美解决AttributeError:partially initialized module ‘‘has no attribute‘‘(most likely dueto a circula
完美解决AttributeError:partially initialized module ‘‘has no attribute‘‘(most likely dueto a circula
AttributeError: partially initialized module 'struct' has no attribute 'pack' (most likely due to a
报错:AttributeError: partially initialized module 'struct' has no attribute 'pack' (most li
AttributeError: partially initialized module ‘jieba‘ has no attribute ‘cut‘ (most likely due to a ci
AttributeError: partially initialized module 'jieba' has no attribute 'cut' (most likely due to a circul
python_报错:AttributeError: partially initialized module ‘exname‘ has no attribute ‘fex‘ (most likely
文章目录主要是由于两个模块相互导入造成的