-
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
ModuleNotFoundError: No module named 'pyrealsense2' [Jetson Nano; Intel D435; Python3.6] #8324
Comments
I've followed all these steps and it still isn't recognizing pyrealsense2 in the python import. I got up to number 8. In /usr/lib/python3.6/site-packages there is no pyrealsense2 folder. I'll try doing the cmake and make commands and seeing how it goes but wanted to post this here in case someone is running into the same issue. This experiment is being done on the original jetson nano running on the latest jetpack and ubuntu 20. I have python3.8 also installed and sure that might be an issue but idk its late. EDIT |
Hi @josh-github1 May I begin by asking whether librealsense and the RealSense Viewer program are working correctly after installation has completed? Also, is the information in the link below by another Nano user of this installation guide helpful to your problem? |
THIS WORKED |
Excellent news that you found a method that worked for you. Thanks for the update! |
Hi @josh-github1 Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
@MartyG-RealSense That did the trick.
For future reference, here is a complete list of steps I took to get the IntelRealsense Camara D455 to work with python3 on the Jetson Nano.
Update CMake using this method
(You need to have curl installed for this to work. )
Download the zip file from https://github.com/IntelRealSense/librealsense/releases/. I am using version 2.38.1
Extract the file, cd into the extracted file .
Create a dir called build and cd into it.
Run the CMake command to test to see if the build will work.
cmake ../ -DFORCE_RSUSB_BACKEND=ON -DBUILD_PYTHON_BINDINGS:bool=true - DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true -DBUILD_WITH_CUDA:bool=true
If you have issues with the above step, check out this, this and this
Still in the build dir. Run
make -j4
and thensudo make install
.Add these to the end of your .bashrc file
source your .bashrc file
Deal with package restructuring between python2 and python3 using this method
You should now be able to import
pyrealsense2
using python3@MartyG-RealSense thank you once again for your help 💯
Update: I can confirm that this works for the Jetson Xavier NX as well.
Originally posted by @Drkstr in #6964 (comment)
The text was updated successfully, but these errors were encountered: