Liveplotter error


#1

I tried running the live plotter from the odrivetool using the line below:
start_liveplotter(lambda: [odrv0.axis0.encoder.pos_estimate])
However, it gives me an error " ModuleNotFoundError: No module named ‘tkinter’ ".

Does anyone know how to correct this issue?

Thanks!


#2

How did you install python? Did you use anaconda or some other method?
I think tkinter should have been installed as a dependency of matplotlib but I may be mistaken. Did you install ODrive with pip?


#3

I installed pyton on Ubuntu 16.XX.
Yep, I used the commands sudo apt install python3-pip for python 3 and pip3 install odrive for ODrive…