This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ImportError: cannot import name '_simple_enum' from 'enum'
Type: Stage: resolved
Components: Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: AverseMoon, steven.daprano
Priority: normal Keywords:

Created on 2022-03-14 22:41 by AverseMoon, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg415206 - (view) Author: AverseMoon54797 (AverseMoon) Date: 2022-03-14 22:41
Why is this happening? Is there a fix for this I can't even fix the install because I get this error trying to reinstall cpython.
msg415207 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2022-03-14 22:51
What makes you think you are supposed to be able to import _simple_enum? It is a name with a leading underscore, so even if it exists, it is private and you shouldn't touch it.

Unless _simple_enum is documented as something you can use, this is not a bug and there is nothing to fix.

I don't see "_simple_enum" listed anywhere in the enum documentation, so why do you think you should be able to import it?

https://docs.python.org/3/library/enum.html


By the way, "reinstall Python" is almost never the solution to problems. Why do you think you need to "fix the install"?
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91174
2022-03-14 22:51:50steven.dapranosetstatus: open -> closed

nosy: + steven.daprano
messages: + msg415207

resolution: not a bug
stage: resolved
2022-03-14 22:41:25AverseMooncreate