已解决AttributeError:partially initialized module ‘‘has no attribute‘‘(most likely dueto a circular imp
解决 No module has attribute AttributeError IMP most
2023-09-27 14:27:33 时间
已解决AttributeError:partially initialized module ‘‘has no attribute’’(most likely dueto a circular import异常的正确解决方法,亲测有效!!!
报错问题
粉丝群里面的一个小伙伴敲代码时发生了报错(当时他心里瞬间凉了一大截,跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮助到更多遇到这个bug不会解决的小伙伴),报错信息如下:
AttributeError: partially initialized module 'itchat' has no attribute 'auto_login' (most likely due to a circular import)
报错翻译过来的结果就是:AttributeError:部分初始化的模块“itchat”没有属性“auto_login”(很可能是由于循环导入)
解决方法
解决方法如下
我的文件命名为 itchat.py 了 ,改了文件名就好了,改成了test_itchat.py
福利
每周会送6本技术书籍包邮到家
由于博主时间精力有限,每天私信人数太多,没办法每个粉丝都及时回复
大家可以进社区裙或者添加博主微信
点击下方链接即可
http://t.csdn.cn/6kInJ
相关文章
- PyGOD 使用 成功解决 Runtimeerror: No such operator torch_sparse::hetero_neighbor_sample 报错
- ModuleNotFoundError: No module named ‘torchvision.models.mobilenet‘ 解决方法
- 解决 No module named ‘PyQt5.QtWebEngineWidgets‘
- mybatis报错:A query was run and no Result Maps were found for the Mapped Statement、、Property [login_ip] not found on type [com.thinkgem.jeesite.common.permission.entity.PremissUser]问题解决
- 解决PHP5.6版本“No input file specified”的问题
- 解决docker警告WARNING: No swap limit support
- spring boot启动 no method 'getPersistenceUtil'报错解决
- 解决Python安装模块出错 ImportError: No module named setuptools
- PaddleSeg图像分割预测pyinstaller打包报错:No module named ‘framework_pb2‘,问题解决
- 解决 No converter found capable of converting from type [java.lang.String] to type ... 的问题
- 解决org.hibernate.LazyInitializationException: could not initialize proxy - no Session懒载入问题
- 完美解决ModuleNotFoundError: No module named ‘torch.utils.tensorboard‘
- 已解决ModuleNotFoundError: No module named engine
- 已解决ModuleNotFoundError: No module named ‘torch._C‘
- 已解决ModuleNotFoundError: No module named ‘requests‘
- 已解决ModuleNotFoundError: No module named sklearn
- 已解决ModuleNotFoundError: No module named ‘numpy‘
- 已解决AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘异常的正确解决方法,亲测有效!!!
- 已解决ModuleNotFoundError: No module named ‘spacy‘异常的正确解决方法,亲测有效!!!
- FatFs读写SD卡出现FR_NO_FILESYSTEM解决方法.
- Linux学习 -->解决Ubuntu系统上 No command 'crond' found