ModuleNotFoundError: No module named 'picarx'

I am trying to run the calibration module as follows:

cd ~/picar-x/example/calibration
sudo python3 calibration.py

I get the following error:

Traceback (most recent call last):
File “/home/dhewitt/picar-x/example/calibration/calibration.py”, line 2, in
from picarx import Picarx
ModuleNotFoundError: No module named ‘picarx’

I can see that the module “picarx” is located two directories up from the calibration directory.

Why can’t it see it?

Thanks,

Don

Did you follow all the steps in the tutorial correctly while installing the code libraries? Were there any error messages during the installation process?

If so, please provide us with a screenshot of the error message so we can analyze and resolve the issue. We also recommend that you reinstall all the code libraries, ensuring to follow the steps in the correct order as outlined in the tutorial:5. Install All the Modules(Important) — SunFounder PiCar-X Kit documentation

I reinstalled the modules as you suggested and now it’s working. Thank you!!

Wish you all the best with your project