AttributeError: module 'enum' has no attribute 'IntFlag' in Pycharm












0















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 Pycharm 2018.3 Community Edition and my Python version is 3.7



I have this error everytime I try to setup an interpreter for Pycharm:



Error in sitecustomize; 
set PYTHONVERBOSE for traceback: AttributeError: module 'enum' has no attribute 'IntFlag'
Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/packaging_tool.py", line 2, in <module>
import traceback File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/traceback.py", line 5, in <module>
import linecache File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/linecache.py", line 11, in <module>
import tokenize File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 33, in <module>
import re File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'


Hope to get help.










share|improve this question




















  • 1





    Do you have a file called enum.py somewhere?

    – usr2564301
    Nov 24 '18 at 13:12
















0















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 Pycharm 2018.3 Community Edition and my Python version is 3.7



I have this error everytime I try to setup an interpreter for Pycharm:



Error in sitecustomize; 
set PYTHONVERBOSE for traceback: AttributeError: module 'enum' has no attribute 'IntFlag'
Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/packaging_tool.py", line 2, in <module>
import traceback File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/traceback.py", line 5, in <module>
import linecache File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/linecache.py", line 11, in <module>
import tokenize File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 33, in <module>
import re File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'


Hope to get help.










share|improve this question




















  • 1





    Do you have a file called enum.py somewhere?

    – usr2564301
    Nov 24 '18 at 13:12














0












0








0








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 Pycharm 2018.3 Community Edition and my Python version is 3.7



I have this error everytime I try to setup an interpreter for Pycharm:



Error in sitecustomize; 
set PYTHONVERBOSE for traceback: AttributeError: module 'enum' has no attribute 'IntFlag'
Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/packaging_tool.py", line 2, in <module>
import traceback File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/traceback.py", line 5, in <module>
import linecache File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/linecache.py", line 11, in <module>
import tokenize File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 33, in <module>
import re File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'


Hope to get help.










share|improve this question
















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 Pycharm 2018.3 Community Edition and my Python version is 3.7



I have this error everytime I try to setup an interpreter for Pycharm:



Error in sitecustomize; 
set PYTHONVERBOSE for traceback: AttributeError: module 'enum' has no attribute 'IntFlag'
Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/packaging_tool.py", line 2, in <module>
import traceback File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/traceback.py", line 5, in <module>
import linecache File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/linecache.py", line 11, in <module>
import tokenize File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 33, in <module>
import re File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'


Hope to get help.







python pycharm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 '18 at 13:13









yedpodtrzitko

5,10822531




5,10822531










asked Nov 24 '18 at 11:04









Catherine PequiñoCatherine Pequiño

44




44








  • 1





    Do you have a file called enum.py somewhere?

    – usr2564301
    Nov 24 '18 at 13:12














  • 1





    Do you have a file called enum.py somewhere?

    – usr2564301
    Nov 24 '18 at 13:12








1




1





Do you have a file called enum.py somewhere?

– usr2564301
Nov 24 '18 at 13:12





Do you have a file called enum.py somewhere?

– usr2564301
Nov 24 '18 at 13:12












1 Answer
1






active

oldest

votes


















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.






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53457470%2fattributeerror-module-enum-has-no-attribute-intflag-in-pycharm%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    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.






    share|improve this answer






























      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.






      share|improve this answer




























        1












        1








        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.






        share|improve this answer















        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.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 17 at 19:18









        InAFlash

        2,60731029




        2,60731029










        answered Jan 17 at 18:05









        FranzFranz

        111




        111
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53457470%2fattributeerror-module-enum-has-no-attribute-intflag-in-pycharm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'