Page 1 of 1

Pyreadline incompatible with Python 3.10 - breaks rshell on Windows 10

Posted: Sun Dec 12, 2021 9:14 pm
by pjh
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

Re: Pyreadline incompatible with Python 3.10 - breaks rshell on Windows 10

Posted: Mon Dec 13, 2021 11:12 pm
by dhylands
I filed an issue against rshell: https://github.com/dhylands/rshell/issues/171

Re: Pyreadline incompatible with Python 3.10 - breaks rshell on Windows 10

Posted: Tue Jan 04, 2022 8:40 pm
by moefear85