import error
Hello guys,
I have a problem with importing modules
I am trying to run following simple script in PyCharm:
import sys
print sys.path
and got follwoing output
C:\Python27\python.exe O:/t.py
Traceback (most recent call last):
File "C:\Python27\lib\site.py", line 62, in <module>
import os
File "C:\Python27\lib\os.py", line 398, in <module>
import UserDict
File "C:\Python27\lib\UserDict.py", line 83, in <module>
import _abcoll
File "C:\Python27\lib\_abcoll.py", line 70, in <module>
Iterable.register(str)
File "C:\Python27\lib\abc.py", line 106, in register
if not isinstance(subclass, (type, types.ClassType)):
AttributeError: 'module' object has no attribute 'ClassType'
Process finished with exit code 1
I works nice from python console.I guess the problem is in setting of python interpreter in the PyCharm. But i dont know what to do ?
Regards, Alexey
Please sign in to leave a comment.