AttributeError: partially initialized module ‘xxx‘ has no attribute ‘xxx‘ (most likely due to

报错:AttributeError: partially initialized module ‘kzt.JTop’ has no attribute ‘ZCTop’ (most likely due to a circular import)
在百度找了很多解决方法都不对 主要是说模块名与引用的模块冲突或者模块名是关键字 反正就是没解决我这个问题
错误分析:
后来发现我在A模块引入B调用了B模块的方法 然后又在B模块引入了A 虽然没有调用A方法 pycharm显示也是灰色的引入 但是运行还是会报错
解决方法:删除不用的那个模块引入就好了
AttributeError: partially initialized module ‘xxx‘ has no attribute ‘xxx‘ (most likely due to_第1张图片
哎实在是细节没想到这个错误

你可能感兴趣的:(AttributeError: partially initialized module ‘xxx‘ has no attribute ‘xxx‘ (most likely due to)