I came across this strange error when writing code using PyDev on Linux. Even simple code like this causes an error
print 'Hello World'
and the error is here
True Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 62, in <module> import os File "/usr/lib/python2.7/os.py", line 398, in <module> import UserDict File "/usr/lib/python2.7/UserDict.py", line 83, in <module> import _abcoll File "/usr/lib/python2.7/_abcoll.py", line 11, in <module> from abc import ABCMeta, abstractmethod ImportError: cannot import name ABCMeta
my module is called sample.py. Please help me. Thanks
source share