PyInquirer
PyInquirer copied to clipboard
ImportError: cannot import name 'Mapping' from 'collections' error when importing PyInquirer | HAS SOLUTION
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...
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.
Same error here, thank you for the fix
I ran the test script, and it kept giving me this error. All I had to do was go into
from_dict.pyand go to line9and turn it from:from collections import Mappingto
from collections.abc import MappingI might branch it and fix it... who knows...
Thank you!! it works
this issue makes PyInquirer unusable
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 :)
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.
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).