CITGuru / PyInquirer

A Python module for common interactive command line user interfaces
MIT License
1.91k stars 235 forks source link

Add support for Python version 3.10 #190

Open fbrodrigorezino opened 1 year ago

mrgiba commented 1 year ago

I am getting this error when trying to import PyInquirer module, apparently related to the lack of support for Python 3.10

ImportError: cannot import name 'Mapping' from 'collections' (/usr/local/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)

Any expectation for a fix ?

Achimh3011 commented 1 year ago

It's not clear from your (missing) backtrace, but as far as I can see, this is due to an old version of prompt_toolkit being used. The fix (newer version) is already in the repo. A release covering this fix would be nice, though.

gregoriopellegrino commented 1 year ago

same error here

satrio-pamungkas commented 1 year ago

It's good to note that someone already mentioned a solution by changing the import statement. See here https://github.com/CITGuru/PyInquirer/issues/181#issuecomment-1164706118

Hopefully an update will be immediately released

But if you would prefer to have convenient solution rather than the tricky one. You can take a look to another library InquirerPy, which is has similar features.