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 'Mapping' from 'collections' error when importing PyInquirer | HAS SOLUTION #198

Open
BJunee opened this issue Apr 13, 2023 · 7 comments

Comments

@BJunee
Copy link

BJunee commented Apr 13, 2023

I ran the test script, and it kept giving me this error. All I had to do was go into from_dict.py and go to line 9 and turn it from:

from collections import Mapping

to

from collections.abc import Mapping

I might branch it and fix it... who knows...

Stackoverflow thread with fix

@JAY-TRIVEDI-007
Copy link

This error is becuase you are using Python 3.10 or above.
If you use Python 3.6 or above you won't get this error.

I had the same error.

@gregoriopellegrino
Copy link

Same error here, thank you for the fix

@Frankz
Copy link

Frankz commented Jul 14, 2023

I ran the test script, and it kept giving me this error. All I had to do was go into from_dict.py and go to line 9 and turn it from:

from collections import Mapping

to

from collections.abc import Mapping

I might branch it and fix it... who knows...

Stackoverflow thread with fix

Thank you!! it works

@tertek
Copy link

tertek commented Nov 29, 2023

this issue makes PyInquirer unusable

@thunermay
Copy link

Why is this not added? Is this package not maintained? This shouldn't be much of a hassle.
I hope someone looks into this <3
Thank you :)

@BJunee
Copy link
Author

BJunee commented Feb 23, 2024

Why is this not added? Is this package not maintained? This shouldn't be much of a hassle. I hope someone looks into this <3 Thank you :)

No, this project is not being maintained.

@andrewvaughan
Copy link

It's not as mature, but I use this, instead:

https://github.com/magmax/python-inquirer

Super shame that such a small change causes an issue like this... breaking changes shouldn't occur on minor version releases (I'm looking at you Python 3).

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

7 participants