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:/
Traceback (most recent call last):
  File "C:\Python27\lib\", line 62, in <module>
    import os
  File "C:\Python27\lib\", line 398, in <module>
    import UserDict
  File "C:\Python27\lib\", line 83, in <module>
    import _abcoll
  File "C:\Python27\lib\", line 70, in <module>
  File "C:\Python27\lib\", 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.