执行abc抽象引用类时,说没有abc
C:\Users\Lani.wang\AppData\Local\Programs\Python\Python37\python.exe C:/Users/Lani.wang/Documents/python/GtkAutoTestStation/PluginBase.py
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Traceback (most recent call last):
File "C:\Users\Lani.wang\AppData\Local\Programs\Python\Python37\lib\io.py", line 72, in <module>
AttributeError: module 'abc' has no attribute 'ABCMeta'
Process finished with exit code -1073740791 (0xC0000409)
原因分析 :
.py的执行的文件放在abc目录下,当前的文件夹名称与引用的类名一样。导致冲突无法找到abc类。
把文件夹改名,不要用abc。