sunfounder / picar-4wd

GNU General Public License v2.0
29 stars 92 forks source link

Errro with `picar-4wd test motor` #26

Open RahulSinghalChicago opened 1 year ago

RahulSinghalChicago commented 1 year ago

After successfully booting the RPI, attaching the hat and powering it, cloning the repo and running sudo python3 setup.py install with warnings:

/usr/local/lib/python3.9/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/local/lib/python3.9/dist-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn(

I receive the following error when trying to run picar-4wd test motor

Screenshot 2023-01-02 at 11 05 41 PM

The solution I found was to install with pip install . and then update the path to use the new picar-4wd script with export PATH=/home/pi/.local/bin:$PATH

It seems to work for testing the motors, but I'm wondering if this will be an issue later on?

Edit: I'm using RPI 4b imaged with RP Image tool full install. Additional commands that were run prior to cloning the repo are sudo apt update and sudo apt full-upgrade.