arduplot icon indicating copy to clipboard operation
arduplot copied to clipboard

Error and not displaying anithing

Open Fantazzj opened this issue 3 years ago • 10 comments

Whenever i send arduplot -p COM5 I get: File "C:\Users\Fantazz\.platformio\penv\Scripts\\arduplot", line 24, in <module> from arduplot.plotserialdata import main ModuleNotFoundError: No module named 'arduplot'

Fantazzj avatar Oct 24 '23 13:10 Fantazzj

Where did you install(ie. pip install arduplot) and where did you run this commands?

If you installed it in the PlatformIO environment, the arduplot is installed for that environment. Or if you installed outside of PlatformIO, then the arduplot could be installed for the system wise python environment.

Either way, you need to run arduplot accordingly to your installation.

yhur avatar Oct 24 '23 13:10 yhur

I installed it from the PlatformIO CLI (and its pip) and trying to lunch it form there.

Fantazzj avatar Oct 25 '23 12:10 Fantazzj

I see. Would you check pip -V and share the screen capture? And do pip list |grep arduplot as well, and share the screen capture.

yhur avatar Oct 25 '23 13:10 yhur

pip -V pip 23.3.1 from C:\Users\Fantazz\.platformio\penv\Lib\site-packages\pip (python 3.11) pip list | grep arduplot arduplot 0.2.7

(I'm on windows btw)

Fantazzj avatar Oct 25 '23 14:10 Fantazzj

It looks ok since you are using the PIO bundled python environment and arduplot library is there within the python library path.

Doesn't it run even with that PIO terminal?

yhur avatar Oct 25 '23 15:10 yhur

No, it doesn't run in PIO terminal nor in cmd/powershell I also tried to add platformIO to path in windows

Fantazzj avatar Oct 26 '23 19:10 Fantazzj

Interesting. If the pip list finds the library, then it should work.

Let's try this. In the command prompt/powershell where pip list | grep arduplot shows arduplot, run python interpreter and see if the result is as follows.

Python 3.9.9 (main, Nov 29 2021, 12:55:48) 
[Clang 10.0.0 (clang-1000.10.44.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from arduplot.plotserialdata import main
>>> main()
Please check the platformio.ini for the 'monitor_port or the -p option

yhur avatar Oct 27 '23 11:10 yhur

That's what i get:

Python 3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from arduplot.plotserialdata import main
>>> main()
Please check the platformio.ini for the 'monitor_port or the -p option

but now if i try to execute arduplot -p COM5 it tells me that i've not got any COM5, on tuesday, once I get to the laboratory with the arduino, i'll tell you if it is working. in the meantime thanks

Fantazzj avatar Oct 28 '23 16:10 Fantazzj

It's good that you have the arduplot working.

And for the COM port on windows, it's tricky. When you connect a device to the serial port, the Windows gives you an arbitrary number ie. COM3, COM5, and so on. And next time you connect the same device to the same PC, it's not guaranteed to have the same number. So what you need to do is run mode command every time to find out the COM port number.

Take a look a this youtube clip for the mode. This youtube clip is in Korean, but you can understand what it is from the video. https://www.youtube.com/watch?v=rT6PiDliol8&list=PLMQ47pJnpv8Hbjn89qZbojPCWsb_OYfoL&index=1&t=259s

yhur avatar Oct 29 '23 00:10 yhur

Closing it due to no activity from the issuer for long time.

yhur avatar Nov 19 '23 22:11 yhur