question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

python 3.6, dvc 0.40.1

on almost any command throws issue (warning?):

Failed to import the site module
Traceback (most recent call last):
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/site.py", line 541, in <module>
    main()
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/site.py", line 522, in main
    known_paths = addusersitepackages(known_paths)
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/site.py", line 282, in addusersitepackages
    user_site = getusersitepackages()
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/site.py", line 258, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/site.py", line 248, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/sysconfig.py", line 608, in get_config_var
    return get_config_vars().get(name)
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/sysconfig.py", line 587, in get_config_vars
    import _osx_support
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/_osx_support.py", line 4, in <module>
    import re
  File "/Users/philippk/anaconda3/envs/py36/lib/python3.6/re.py", line 142, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:24 (8 by maintainers)

github_iconTop GitHub Comments

127reactions
efiopcommented, May 13, 2019

Hi @Casyfill !

Do you have enum34 installed by any chance? You can check that with pip freeze | grep enum34. If you do, please remove it, it is known to cause issues in many packages.

29reactions
sunbc0120commented, Oct 10, 2019

pip uninstall -y enum34

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Python 3.6.1 throws AttributeError: module 'enum' has no ...
When ever I got this problem: AttributeError: module 'enum' has no attribute 'IntFlag'.
Read more >
AttributeError: module 'enum' has no attribute 'IntFlag'
To solve the "AttributeError: module 'enum' has no attribute 'IntFlag'", uninstall the enum34 module by running pip uninstall -y enum34 in ...
Read more >
Attributeerror: module 'enum' has no attribute 'intflag' ( Solved )
In most of the cases when you get the attributeerror: module 'enum' has no attribute 'intflag' error is when the enum34 module is...
Read more >
AttributeError: module 'enum' has no attribute 'IntFlag'
to build the workspace. ... found one answer from github, it says this error is caused by enum34 , which is not support...
Read more >
Module 'enum' Has No Attribute 'IntFlag' in Ansible Tower?
Why Am I Getting AttributeError: Module 'enum' Has No Attribute 'IntFlag' in Ansible Tower? Solution Verified - Updated December 1 2020 at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found