Here are the errors obtained after invoking rshell (and pyboard.py):
- with MICROPY_FATFS enabled:
Code: Select all
(MPY) C:\MicroPython\CODE\>rshell -p COM1
Using buffer-size of 32
Connecting to COM1 (buffer-size 32)...
Trying to connect to REPL connected
Testing if ubinascii.unhexlify exists ... Traceback (most recent call last):
File "c:\users\sebi\anaconda3\envs\mpy\lib\site-packages\rshell\main.py", line 1282, in connect
ip_address = socket.gethostbyname(port)
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\sebi\anaconda3\envs\mpy\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
...
File "c:\users\sebi\anaconda3\envs\mpy\lib\site-packages\rshell\main.py", line 1470, in remote
output = self.pyb.exec_raw_no_follow(func_src)
File "c:\users\sebi\anaconda3\envs\mpy\lib\site-packages\rshell\pyboard.py", line 250, in exec_raw_no_follow
raise PyboardError('could not exec command')
rshell.pyboard.PyboardError: could not exec command
And pyboard.py yields the error depicted in the first post of this thread
viewtopic.php?f=12&t=6961#p39485.
- MICROPY_FATFS disabled:
Code: Select all
(MPY) C:\MicroPython\CODE\>rshell -p COM1
Using buffer-size of 32
Connecting to COM1 (buffer-size 32)...
Trying to connect to REPL connected
Testing if ubinascii.unhexlify exists ... Y
Retrieving root directories ... Traceback (most recent call last):
File "c:\users\sebi\anaconda3\envs\mpy\lib\site-packages\rshell\main.py", line 1282, in connect
ip_address = socket.gethostbyname(port)
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\sebi\anaconda3\envs\mpy\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
...
File "c:\users\sebi\anaconda3\envs\mpy\lib\site-packages\rshell\main.py", line 1371, in __init__
self.root_dirs = ['/{}/'.format(dir) for dir in self.remote_eval(listdir, '/')]
File "c:\users\sebi\anaconda3\envs\mpy\lib\site-packages\rshell\main.py", line 1490, in remote_eval
return eval(self.remote(func, *args, **kwargs))
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
But pyboard.py works successfully!
Maybe this can give some hints about the problem.