-
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
Not working on Nvidia Jetson Nano with Ubuntu 18.04 LTS #7905
Comments
Hi @erkarim85 Pip install packages cannot be used with devices with Arm processors such as Jetson and Raspberry Pi, as they are designed for x86 / x64 processors. There is a method for installing librealsense and Python that has worked consistently for Jetson Nano users though. The instructions are in the link below. If you are not using Python 3.6, change the two occurrences of '3.6' in the instructions to match the version number of Python 3 that you are using. |
Great! Thank you very much @MartyG-RealSense. I will follow those instructions and try it and let you know. |
Thanks again for your help @MartyG-RealSense.
Any advice? |
I tried to type: |
There was a Jetson case involving AttributeError: module 'pyrealsense2' has no attribute 'pipeline' where the solution in that particular case was found to be to copy .so files to the same directory that the user's project script was in. This same approach of copying the .so files into the same directory as the user's project script also worked in a case with a Pi user: https://support.intelrealsense.com/hc/en-us/community/posts/360048396854/comments/360012486393 |
So I tried that and it didn't work. I checked from terminal for the file for this package and I put it in the ~/.bashrc file, and I copied this file into the same directory of my file used in jupyter. Still I can only see it on terminal but on Jupyter there is no 'pipeline' in rs module. Any recommendations? again, I appreciate your help. |
There is a Start testing in Jupyter notebook guide in the librealsense documentation that may be of some help. https://colab.research.google.com/drive/10YTLAf2i0R80-XX_6-1gTPtOMD0cRIx5 I note that the guide suggests installing pyrealsene2 using pip install pyrealsense2. This would not be applicable for your Jetson though, as Jetson uses an Arm processor and the pip packages for pyrealsense2 require an x86 or x64 processor like those in laptop / desktop computers. For Jetson Nano, the librealsense + pyrealsense2 method that I provided earlier in #6964 (comment) is recommended, |
My research also found a case where someone was receiving the error DLL load failed while importing pyrealsense2: The specified module could not be found when using the command import pyrealsense2 as rs in Jupyter notebook. In that particular case, they found that they were running their Jupyter notebook in a Python 3.7 virtual environment but Jupyter was picking up Python 3.8. Once they fixed this, their Jupyter notebook worked. |
Thank you @MartyG-RealSense for your replies. I made sure before that I installed and used the package with the proper python version. I tried writing on terminal:
This provided me with a lot of functions available in this package (around 20 lines on my terminal):
I tried on jupyter to write same code:
I only got the following line as output: So, pipeline is not available in the package on the jupyter notebook. It is available on the terminal. By the way, I tried to copy the *.so files to the same directory of my *.ipynb but it didn't fix it. I appreciate if you have another advice... |
Another update: This problem happens when I access the jupyter notebook by typing in the browser 192.xxx.xx.x:8888 or trying to access jupyter by typing this address on my computer connected to the Jetson nano. However, I don't have this problem when I use the jetson nano as a computer and type in terminal Unfortunately, for my application, I need to use it in the headless mode. |
Is the pyrealsense2 installation on the server and not on the local machine that you are using the browser address on? The link below describes the setup of a headless Jupyter Notebook system where most of the data is on the server and its graphical GUI elements are on the local machine. https://ljvmiranda921.github.io/notebook/2018/01/31/running-a-jupyter-notebook/ |
Hi @erkarim85 Do you require further assistance with this case, please? Thanks! |
I still need a little bit more time. It didn’t work that way yet so I am trying to use it in a different way now.
Best Regards,
Karim H. Erian
… On Dec 12, 2020, at 5:38 AM, MartyG-RealSense ***@***.***> wrote:
Hi @erkarim85 Do you require further assistance with this case, please? Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Adding a note to keep this case open for a further time period. |
Hi @erkarim85 Do you have an update that you can provide us, please? Thanks! |
Case closed due to no further comments received. |
@MartyG-RealSense |
Thanks very much @erkarim85 for the update - great news that you got it working! |
Issue Description
Hello,
I am trying to use the camera (D435i) on Jetson Nano using Python3 on Jupyter Notebook.
In order to do that, I needed to import pyrealsense2 as rs
However, I got a message saying it is not defined, so I tried pip install pyrealsense2. However, seems my Jetson Nano is not supported.
As a work around, I tried to build the source on the Jetson Nano using the terminal commands you provided.
After I went through everything, I still get the same error that it is not defined.
I tried copying the pyrealsense2.so and librealsense2.so to the same path of my code file, but it didn't work either.
I wonder if you can help me with my issue.
Thanks in advance.
Karim
The text was updated successfully, but these errors were encountered: