python-fints icon indicating copy to clipboard operation
python-fints copied to clipboard

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

Open wunder-view opened this issue 1 year ago • 2 comments

Fresh install. The very basic example, gives:

ImportError: cannot import name '_power_of_two' from 'enum' (/opt/homebrew/Cellar/[email protected]/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: https://github.com/python/cpython/issues/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?

wunder-view avatar May 30 '24 14:05 wunder-view

+1

c0d3z3r0 avatar Jun 17 '24 10:06 c0d3z3r0

+1

peteh avatar Jul 08 '24 20:07 peteh