-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-commit AttributeError module 'enum' has no attribute 'IntFlag' macosx #56603
Comments
@glynnforrest this is indeed an odd error since enum is a part of the standard library and i checked the code for 3.7.4 and that attribute is there. Do you happen to have the enum34 package installed? If you run this |
Thanks @Ch3LL for opening this. Here's what I did to install the pre-commit hook:
Python 3 was installed with homebrew:
Installs of pip3 packages go to |
hmm it looks like its using the standard library. Do you have enum34 installed anywhere? Not sure if you could go a step further and edit file: /Users/glynn/.cache/pre-commit/repopr36g047/py_env-python3/lib/python3.7/re.py to print out |
Installing enum34 cause this conflict. We should only use enum which comes default from python
>>> enum.IntFlag
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'enum' has no attribute 'IntFlag' step while test execution which is installing enum34
|
Description of Issue
posting stacktrace from here: #52935 (comment)
so we can add conversation in an issue
The text was updated successfully, but these errors were encountered: