Closed Fantazzj closed 11 months ago
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.
I installed it from the PlatformIO CLI (and its pip) and trying to lunch it form there.
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.
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)
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?
No, it doesn't run in PIO terminal nor in cmd/powershell I also tried to add platformIO to path in windows
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
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
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
Closing it due to no activity from the issuer for long time.
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'