marcoschulte / lego-wallplotter

10 stars 3 forks source link

plotter.py OSEror #2

Closed Sullinberg closed 11 months ago

Sullinberg commented 1 year ago

using ampy sudo ampy -p /dev/rfcomm0 run /plotter/plotter.py im ge tiing following error:

Caught exception [Errno 2] ENOENT Traceback (most recent call last): File "", line 389, in plot_file File "", line 189, in init File "", line 192, in _open_file OSError: [Errno 2] ENOENT Motor pos [0, 0]

Any advice on solving this issue?

marcoschulte commented 1 year ago

Hi Sullinberg, it fails in line 192, where it tries to open the image file. Most likely the path you are passing in plotter.plot_file('your-file-path.txt') is wrong