Does rshell run under Windows?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
RWLTOK
Posts: 53
Joined: Thu Dec 14, 2017 7:24 pm

Does rshell run under Windows?

Post by RWLTOK » Mon Dec 25, 2017 5:20 am

I am running Windows 10 and Python 3.6.4. When I try to run rshell I get the following error:

C:\Users\Richard\AppData\Local\Programs\Python\Python36\Lib\site-packages\rshell>rshell
Traceback (most recent call last):
File "C:\Users\Richard\AppData\Local\Programs\Python\Python36\Scripts\rshell-script.py", line 11, in <module>
load_entry_point('rshell==0.0.11', 'console_scripts', 'rshell')()
File "c:\users\richard\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\users\richard\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2631, in load_entry_point
return ep.load()
File "c:\users\richard\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2291, in load
return self.resolve()
File "c:\users\richard\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "c:\users\richard\appdata\local\programs\python\python36\lib\site-packages\rshell\command_line.py", line 1, in <module>
import rshell.main
File "c:\users\richard\appdata\local\programs\python\python36\lib\site-packages\rshell\main.py", line 68, in <module>
if 'libedit' in readline.__doc__:
TypeError: argument of type 'NoneType' is not iterable

I did a pip install of pyreadline since I was getting blocked with not having the readline module first.

Thoughts anyone?

Rich

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Does rshell run under Windows?

Post by dhylands » Tue Dec 26, 2017 11:55 pm

I've tested rshell under Windows from time to time. The usual problems are not having the correct dependencies installed (which probably means that the setup script isn't specifying the right thing).

I think I have access to a Windows 10 machine, so I'll see if I can figure out what's wrong.

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Does rshell run under Windows?

Post by mattyt » Thu Oct 18, 2018 11:44 pm

OK, I'll admit it's been a while ;) but I ran into this bug today and have documented a work-around in rshell's issue #60.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Does rshell run under Windows?

Post by dhylands » Fri Oct 19, 2018 11:49 pm

I just posted an update to rshell that should make it run better under windows (version 0.0.16)

You still need to manually install pyreadline. Under Windows 10 cmd shell, the colored output works.

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Does rshell run under Windows?

Post by mattyt » Sat Oct 20, 2018 1:19 am

Thanks Dave! :)

Post Reply