[Critical issue] Does not work in Python 3.10
See original GitHub issueHello, thank you so much for the library, while running the example from the Readme, I found that the library does not function in the latest version of Python 3.10:
~/git/translate $ python3
Python 3.10.0 (default, Oct 6 2021, 01:24:16) [Clang 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c8554895 on linux
Type "help", "copyright", "credits" or "license" for more information. >>> import inquirer
An error was found, but returning just with the version: Blessed needs Python 3.2.3 or greater for Python 3 support due to http://bugs.python.org/issue10570.
>>> questions = [
... inquirer.List('size',
... message="What size do you need?",
... choices=['Jumbo', 'Large', 'Standard', 'Medium', 'Small', 'Micro'],
... ),
... ]
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
AttributeError: module 'inquirer' has no attribute 'List' >>> answers = inquirer.prompt(questions)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
What's New In Python 3.10 — Python 3.11.1 documentation
Therefore, an important exception is that patterns don't match iterators. Also, to prevent a common mistake, sequence patterns don't match strings. Sequence ...
Read more >Doesn't Python 3.10 support pygame? - Stack Overflow
I thin it may be a compatibility issue. pip3.9 install pygame. works just fine. pip3.10 install pygame. returns a slew of errors.
Read more >Python 3.10: Cool New Features for You to Try
To try out the new features yourself, you need to run Python 3.10. ... in Python 3.10 is better and more precise error...
Read more >The Match-Case In Python 3.10 Is Not That Simple
Python 3.10 new release new syntax match case patterns not switch ... as authentication issues, so we can combine them in the match-case....
Read more >All The Important Features and Changes in Python 3.10
On top of that, there are some more optimizations in various parts of Python core. You can find specifics about those in following...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I just ran into the same issue and was able to create a work-around: The error is caused by the module ‘blessed’ which is used in version
blessed==1.17.6
inrequirements.txt
. I was able to resolve it by changing the version to the latest available, 1.19.0.for example:
pip install --force-reinstall blessed==1.19.0
cheers,
Hi @magmax sorry to ping you directly but I was hoping you’d have some time to take a look at this issue and its related PR since inquirer is broken when used with the latest version of python.