Skip to content Skip to sidebar Skip to footer

Attributeerror: Module 'enum' Has No Attribute 'intflag' In Pycharm

I have read and tried every comments here: Why Python 3.6.1 throws AttributeError: module 'enum' has no attribute 'IntFlag'? but still, it is of no help. I am using Pycharm Pychar

Solution 1:

I had the same problem inside PyCharm a simple program did not run. outside PyCharm I had no issues. after comparing python -v this is what happened

lib/python3.6/re.py", line 142, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'

a successful run used lib/python3.6/__pycache__/re.cpython-36.pyc' and then 
/lib/python3.6/__pycache__/enum.cpython-36.pyc'

while the failed run included: lib/python3.6/__pycache__/re.cpython-36.pyc'
and then: google_appengine/lib/grpcio-1.9.1/enum/__pycache__/__init__.cpython-36.pyc 

after disabling App Engine Support in PyCharm all worked fine.

Post a Comment for "Attributeerror: Module 'enum' Has No Attribute 'intflag' In Pycharm"