Pyreadline incompatible with Python 3.10 - breaks rshell on Windows 10

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
pjh
Posts: 1
Joined: Sun Dec 12, 2021 8:40 pm

Pyreadline incompatible with Python 3.10 - breaks rshell on Windows 10

Post by pjh » Sun Dec 12, 2021 9:14 pm

I've been using rshell without problems on Linux for some time. I need to hand over a current Pico project to a Windows 10 user, so I tried a dummy run on a W10 machine here so that I could give step-by-step instructions. What I expected to be a 10 minute sanity check turned into a saga.

The problem:

Pyreadline has been deprecated for some time due to lack of maintenance (last change 2015) and the fact that it's no longer required by ipython. It triggers a hard error in Python 3.10, which is what I installed on the W10 machine, causing an rshell crash.

The workaround:

Install Python 3.9 or earlier. Then Rshell works as expected.

Time for someone to pick up Pyreadline maintenance, or design a replacement? In the meantime rshell could check the Python version and only use pyreadline for versions<3.10.

Peter



Post Reply