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 '_simple_enum' from 'enum' #91174

Closed
AverseMoon mannequin opened this issue Mar 14, 2022 · 2 comments
Closed

ImportError: cannot import name '_simple_enum' from 'enum' #91174

AverseMoon mannequin opened this issue Mar 14, 2022 · 2 comments

Comments

@AverseMoon
Copy link
Mannequin

AverseMoon mannequin commented Mar 14, 2022

BPO 47018
Nosy @stevendaprano, @AverseMoon

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2022-03-14.22:51:50.483>
created_at = <Date 2022-03-14.22:41:25.186>
labels = ['invalid']
title = "ImportError: cannot import name '_simple_enum' from 'enum'"
updated_at = <Date 2022-03-14.22:51:50.480>
user = 'https://github.com/AverseMoon'

bugs.python.org fields:

activity = <Date 2022-03-14.22:51:50.480>
actor = 'steven.daprano'
assignee = 'none'
closed = True
closed_date = <Date 2022-03-14.22:51:50.483>
closer = 'steven.daprano'
components = []
creation = <Date 2022-03-14.22:41:25.186>
creator = 'AverseMoon'
dependencies = []
files = []
hgrepos = []
issue_num = 47018
keywords = []
message_count = 2.0
messages = ['415206', '415207']
nosy_count = 2.0
nosy_names = ['steven.daprano', 'AverseMoon']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue47018'
versions = []

@AverseMoon
Copy link
Mannequin Author

AverseMoon mannequin commented Mar 14, 2022

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.

@stevendaprano
Copy link
Member

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"?

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
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

1 participant