question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Critical issue] Does not work in Python 3.10

See original GitHub issue

Hello, 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:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
philipphuebnercommented, Oct 25, 2021

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 in requirements.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,

0reactions
alejandro-angulocommented, Nov 12, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found