-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Python ImportError: No module named pyrealsense2 #12362
Comments
Hi @mericgeren The import instruction should be When installing from PyPi packages with Which Python 3 version are you using? In regard to your PYTHONPATH when installing from source code, you can check whether the path that you are using is correct with the instruction which python3 |
Thank you for your kind response. Ofcourse, I can confirm that I have used
About your question on the Python version i am using, i use Python 2.7 as python and Python 3.6 as python3. My pip version is 9.0.1 for both python and python3. Regarding my PYTHONPATH,
Regarding aarch64.whl packages, i couldn't find a package with such an extension in packages. Can you tell me if latest version of pyrealsense2 pip package is compatible with ROS 1 and RealSense SDK v2.50.0 please? |
On some computers, the import instruction The aarch64.whl packages were introduced from SDK 2.54.1 onwards. Before that, the pip install process only supported x86 / x64 computers such as desktop / laptop PCs but not Arm devices. #6964 (comment) has a guide for installing librealsense and pyrealsense2 together at the same time from source code on Jetson and Python 3.6 if you have not seen it already. |
Thank you for all the help you have offered. Building librealsense after adding Kindest regards. |
You are very welcome. Thanks so much for sharing the details of your solution! |
Issue Description
Hello,
I am trying to run a ROS1 node I have written previously in Python using RealSense SDK v2.50.0, it's Python wrapper and realsense-ros version 2.3.2. For that, by using libuvc_installation.sh script and following the guide I have installed and built RealSense SDK 2.50.0 with Python wrapper successfully. Then, I have added the following line to
.bashrc
:export PYTHONPATH=$PYTHONPATH:/usr/local/lib
Then, sourced .bashrc. Then, by followin this guide installed and did catkin_make for ddynamic_reconfigre, realsense-ros (version 2.3.2) and then, my package. Then, I have done
source devel/setup.bash
. After sourcing I have tried to launch my node with roslaunch. But, it exited and the process have died. While looking at the output, I saw these lines:Later on, I have tried to install the
pyrealsense2
package withpip install
command and tried following:sudo pip3 install pyrealsense2==2.50.0
sudo pip3 install pyrealsense2==2.50.0.3812
pip install pyrealsense2==2.50.0.3812
and
pip install pyrealsense2==2.50
But unfortunately, after each trial, I saw this error message:
Could not find a version that satisfies the requirement pyrealsense2==X (from versions: ) No matching distribution found for pyrealsense2==X
Could you offer your help please?
Kindest regards.
The text was updated successfully, but these errors were encountered: