Skip to content
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

ImportError: cannot import name '_power_of_two' from 'enum' #166

Open
wunder-view opened this issue May 30, 2024 · 2 comments
Open

ImportError: cannot import name '_power_of_two' from 'enum' #166

wunder-view opened this issue May 30, 2024 · 2 comments

Comments

@wunder-view
Copy link

Fresh install. The very basic example, gives:

ImportError: cannot import name '_power_of_two' from 'enum' (/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/enum.py)

As far as i could find out, _power_of_two was a private function available in the "enum" lib
It was removed a few month ago: python/cpython#101341

Error comes from the "enum_tools" lib that is in the dependency tree.
Downgrading it works: pip3 install enum-tools==0.11.0

Any chance to resolve that?

@c0d3z3r0
Copy link

+1

1 similar comment
@peteh
Copy link

peteh commented Jul 8, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants