Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install picar-X module #79

Open
swatchie-2 opened this issue Sep 23, 2022 · 1 comment
Open

Cannot install picar-X module #79

swatchie-2 opened this issue Sep 23, 2022 · 1 comment

Comments

@swatchie-2
Copy link

Hi, i can't run calibration.py because i get the following error:

Traceback (most recent call last):
File "move.py", line 1, in
from picarx import Picarx
ModuleNotFoundError: No module named 'picarx'

I have tried to install picar-X module in the V2.0 at your github but it didn't install. I am using python v3.7.

The following are the logs:

pi@raspberrypi:~/picar-x $ sudo python3 setup.py install
running install
/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py:37: Setupto olsDeprecationWarning: setup.py install is deprecated. Use build and pip and oth er standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
/usr/local/lib/python3.7/dist-packages/setuptools/command/easy_install.py:147: E asyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
writing picarx.egg-info/PKG-INFO
writing dependency_links to picarx.egg-info/dependency_links.txt
writing requirements to picarx.egg-info/requires.txt
writing top-level names to picarx.egg-info/top_level.txt
reading manifest file 'picarx.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'picarx.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/picarx
copying build/lib/picarx/init.py -> build/bdist.linux-armv7l/egg/picarx
copying build/lib/picarx/picarx.py -> build/bdist.linux-armv7l/egg/picarx
byte-compiling build/bdist.linux-armv7l/egg/picarx/init.py to init.cpyth on-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/picarx/picarx.py to picarx.cpython-3 7.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying picarx.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying picarx.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying picarx.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG -INFO
copying picarx.egg-info/not-zip-safe -> build/bdist.linux-armv7l/egg/EGG-INFO
copying picarx.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying picarx.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
creating 'dist/picarx-0.0.1-py3.7.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing picarx-0.0.1-py3.7.egg
removing '/usr/lib/python3.7/site-packages/picarx-0.0.1-py3.7.egg' (and everythi ng under it)
creating /usr/lib/python3.7/site-packages/picarx-0.0.1-py3.7.egg
Extracting picarx-0.0.1-py3.7.egg to /usr/lib/python3.7/site-packages
picarx 0.0.1 is already the active version in easy-install.pth

Installed /usr/lib/python3.7/site-packages/picarx-0.0.1-py3.7.egg
Processing dependencies for picarx==0.0.1
Searching for readchar==4.0.3
Best match: readchar 4.0.3
Adding readchar 4.0.3 to easy-install.pth file

Using /usr/local/lib/python3.7/dist-packages
Searching for robot-hat==1.0.2
Best match: robot-hat 1.0.2
Processing robot_hat-1.0.2-py3.7.egg
robot-hat 1.0.2 is already the active version in easy-install.pth
Installing robot_hat script to /usr/bin

Using /usr/local/lib/python3.7/dist-packages/robot_hat-1.0.2-py3.7.egg
Searching for setuptools==65.3.0
Best match: setuptools 65.3.0
Adding setuptools 65.3.0 to easy-install.pth file

Using /usr/local/lib/python3.7/dist-packages
Searching for spidev==3.5
Best match: spidev 3.5
Adding spidev 3.5 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for pyserial==3.4
Best match: pyserial 3.4
Adding pyserial 3.4 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for RPi.GPIO==0.7.0
Best match: RPi.GPIO 0.7.0
Adding RPi.GPIO 0.7.0 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Finished processing dependencies for picarx==0.0.1


Please advise

@swatchie-1
Copy link

Solution is to use instead:
"sudo pip3 install ."
without quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants