zsquareplusc / mpy-repl-tool

Yet an other tool to transfer files, execute files and so on via the Python prompt, used for MicroPython
Other
19 stars 5 forks source link

there - creating new files fail #10

Closed hoihu closed 6 years ago

hoihu commented 6 years ago

testboard: odroid go with ESP32 (loboris fork)

use case: copying a new file to the micropython board (not existent on /flash)

Reproduce e.g. by pushing a testfile (l.py). Fails with:

martin@Martins-iMac.local:~$ python3 -m there push l.py /flash/l.py -p /dev/cu.SLAB_USBtoUART  -vvvvvvvv
connected to /dev/cu.SLAB_USBtoUART 115200
I: import os; print(os.stat('/flash/l.py'))
E: Traceback (most recent call last):
E:   File "<stdin>", line 1, in <module>
E: OSError: [Errno 2] ENOENT

creating a dummy file on the REPL using fh = open('l.py','w'); fw.write('test'); fh.close() solves the problem.

hoihu commented 6 years ago

ok strange enough I can't reproduce it now anymore and on a pyboard it works without issues