GV_FiQst
GV_FiQst

Reputation: 1567

Running python code give NameError: name 'ABCMeta' is not defined every time

I'm using Python 3.7.3 with PyCharm. When I tried to import abc package into my project I got this error followed with Python quit unexpectedly alert dialog:

Fatal Python error: init_sys_streams: can't initialize sys standard streams
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/io.py", line 52, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/abc.py", line 166, in <module>
NameError: name 'ABCMeta' is not defined
Abort trap: 6

At first I didn't pay much attention to the error and thought I made a mistake in the code. So I commented import abc line. But the error didn't disappear. Moreover, each time I was running python3 programs I was getting the same error. Even in terminal:

terminal python3 error

Upvotes: 2

Views: 521

Answers (1)

GV_FiQst
GV_FiQst

Reputation: 1567

Removing /Library/Frameworks/Python.framework file and reinstalling python 3.7.3 resolved the error

Upvotes: 1

Related Questions