Bleibt leider – wie unter Linux – hier schon hängen
C:\Users\mail>rshell --port COM16 mkdir /flash/dist-packages
Using buffer-size of 32
Connecting to COM16 (buffer-size 32)...
Trying to connect to REPL ............. connected
Testing if ubinascii.unhexlify exists ...
bzw.
C:\Users\mail>rshell --port COM16 rsync dist-packages /flash/dist-packages
Using buffer-size of 32
Connecting to COM16 (buffer-size 32)...
Trying to connect to REPL ....... connected
Testing if ubinascii.unhexlify exists ... b'\n>>> \r\n>>> \r\n>>> \r\n>>> \r\n>>> \r\n>>> \r\n>>> \r\n>>> \r\n>>> '
Traceback (most recent call last):
File "c:\python37\lib\site-packages\rshell\main.py", line 1255, 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:\Python37\Scripts\rshell-script.py", line 11, in <module>
load_entry_point('rshell==0.0.21', 'console_scripts', 'rshell')()
File "c:\python37\lib\site-packages\rshell\command_line.py", line 4, in main
rshell.main.main()
File "c:\python37\lib\site-packages\rshell\main.py", line 2843, in main
real_main()
File "c:\python37\lib\site-packages\rshell\main.py", line 2805, in real_main
connect(args.port, baud=args.baud, wait=args.wait, user=args.user, password=args.password)
File "c:\python37\lib\site-packages\rshell\main.py", line 1261, in connect
connect_serial(port, baud=baud, wait=wait)
File "c:\python37\lib\site-packages\rshell\main.py", line 1285, in connect_serial
dev = DeviceSerial(port, baud, wait)
File "c:\python37\lib\site-packages\rshell\main.py", line 1565, in __init__
Device.__init__(self, pyb)
File "c:\python37\lib\site-packages\rshell\main.py", line 1339, in __init__
unhexlify_exists = self.remote_eval(test_unhexlify)
File "c:\python37\lib\site-packages\rshell\main.py", line 1459, in remote_eval
return eval(self.remote(func, *args, **kwargs))
File "c:\python37\lib\site-packages\rshell\main.py", line 1437, in remote
self.pyb.enter_raw_repl()
File "c:\python37\lib\site-packages\rshell\pyboard.py", line 187, in enter_raw_repl
raise PyboardError('could not enter raw repl')
rshell.pyboard.PyboardError: could not enter raw repl
und C:\Users\mail>rshell --list
geht jetzt auch nicht
… device nochmal ab- und wieder angesteckt. rshell --list
geht nun wieder …
… nächster Versuch:
C:\Users\mail>rshell --port COM16 mkdir /flash/dist-packages
Using buffer-size of 32
Connecting to COM16 (buffer-size 32)...
Trying to connect to REPL ........... connected
Testing if ubinascii.unhexlify exists ... Y
Retrieving root directories ... /flash/
Setting time ... Apr 13, 2019 01:37:57
Evaluating board_name ... pyboard
Retrieving time epoch ... Jan 01, 1970
Traceback (most recent call last):
File "C:\Python37\Scripts\rshell-script.py", line 11, in <module>
load_entry_point('rshell==0.0.21', 'console_scripts', 'rshell')()
File "c:\python37\lib\site-packages\rshell\command_line.py", line 4, in main
rshell.main.main()
File "c:\python37\lib\site-packages\rshell\main.py", line 2843, in main
real_main()
File "c:\python37\lib\site-packages\rshell\main.py", line 2826, in real_main
shell.cmdloop(cmd_line)
File "c:\python37\lib\site-packages\rshell\main.py", line 1689, in cmdloop
stop = self.onecmd(line)
File "c:\python37\lib\site-packages\rshell\main.py", line 1722, in onecmd
self.onecmd_exec("".join(group))
File "c:\python37\lib\site-packages\rshell\main.py", line 1733, in onecmd_exec
return cmd.Cmd.onecmd(self, line)
File "c:\python37\lib\cmd.py", line 217, in onecmd
return func(arg)
File "c:\python37\lib\site-packages\rshell\main.py", line 2346, in do_mkdir
if not mkdir(filename):
File "c:\python37\lib\site-packages\rshell\main.py", line 786, in mkdir
return auto(make_directory, filename)
File "c:\python37\lib\site-packages\rshell\main.py", line 586, in auto
return dev.remote_eval(func, dev_filename, *args, **kwargs)
File "c:\python37\lib\site-packages\rshell\main.py", line 1459, in remote_eval
return eval(self.remote(func, *args, **kwargs))
File "c:\python37\lib\site-packages\rshell\main.py", line 1439, in remote
output = self.pyb.exec_raw_no_follow(func_src)
File "c:\python37\lib\site-packages\rshell\pyboard.py", line 240, in exec_raw_no_follow
raise PyboardError('could not exec command')
rshell.pyboard.PyboardError: could not exec command