Items with no label
3335 Discussions

Can not install pyrealsense2 on sdk 2.0

cjiin
Beginner
6,795 Views

I can't install pyrealsense2

0 Kudos
18 Replies
MartyG
Honored Contributor III
3,586 Views

Could you tell us more about your problem please? Such as if you are using Linux or Windows, and what error messages you get. Thanks!

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python librealsense/wrappers/python at master · IntelRealSense/librealsense · GitHub

0 Kudos
cjiin
Beginner
3,586 Views

I tried to install pyrealsense2 on Linux, but I keep getting errors.

And I found ' This wrapper does not support newer versions and does not work with the RealSense SDK 2.0.' Is this true?

I try to run this code

import pyrealsense2 as rs

pipe = rs.pipeline()

profile = pipe.start()

try:

for i in range(0, 100):

frames = pipe.wait_for_frames()

for f in frames:

print(f.profile)

finally:

pipe.stop()

0 Kudos
MartyG
Honored Contributor III
3,586 Views

The wrapper on the link I gave you works with SDK 2.0. It is the similarly named Pyrealsense 2.0 (a different program that is not on that page) that does not work with SDK 2.0.

0 Kudos
cjiin
Beginner
3,586 Views

then Is the pyrealsense2 of the code I uploaded available in sdk 2.0?

I tried pip install pyrealsense2 but the error occured

0 Kudos
MartyG
Honored Contributor III
3,586 Views

Pyrealsense2 should be built in Linux with CMake using the instructions in the link.

0 Kudos
cjiin
Beginner
3,586 Views

What I am currently using is not x86 but aarch64 (jetson tx2)

0 Kudos
MartyG
Honored Contributor III
3,586 Views

There is a guide for installing Librealsense on Jetson TX2 that you can check your work against.

https://github.com/IntelRealSense/librealsense/blob/development/doc/installation_jetson.md librealsense/installation_jetson.md at development · IntelRealSense/librealsense · GitHub

0 Kudos
cjiin
Beginner
3,586 Views

I install librealsense that indicated that website

but can not install pyrealsense2

0 Kudos
MartyG
Honored Contributor III
3,586 Views

I found a case where someone else could not install Pyrealsense2.

https://github.com/IntelRealSense/librealsense/issues/793 Unable to import pyrealsense2 on python · Issue # 793 · IntelRealSense/librealsense · GitHub

0 Kudos
idata
Employee
3,586 Views

Hello jiiiiiin,

 

 

Thank you for your interest in the Intel RealSense Technology.

 

Can you tell me if the guide that MartyG provided helped you figure your query out?

 

 

Is there any assistance you require from our side?

 

 

Looking forward to your reply,

 

Casandra

 

 

0 Kudos
MartyG
Honored Contributor III
3,586 Views

Thanks for your help in this case, Cassandra! Apologies for interrupting, but I just wanted to highlight that installation of Pyrealsense2 was covered in the RealSense Webinar that RealSense software manager Dorodnic hosted yesterday. He suggested that Python could be installed via PyPy with this instruction:

$ pip install pyrealsense2

He also provided a small sample script to try after installation.

Jiiiiiin may also be interested in the brand new Intel tutorial on Python introduced at the webinar.

https://colab.research.google.com/drive/10YTLAf2i0R80-XX_6-1gTPtOMD0cRIx5 https://colab.research.google.com/drive/10YTLAf2i0R80-XX_6-1gTPtOMD0cRIx5

0 Kudos
idata
Employee
3,586 Views

Hello MartyG, Hello jiiiiiin,

 

 

That is great, thank you for highlighting and posting this!

 

Please do not hesitate to contact us if any further details are needed.

 

 

Regards,

 

Casandra

 

0 Kudos
WChen71
Beginner
3,586 Views

Hi,

I was trying to develop a realsense application on TX2.

However, there was an error when running the python examples.

I've installed all libraries except pyrealsense2.

Seems like the arch64 architecture is not supported.

Is it possible to provide to wheel targeted at the TX2 platform?

Thank you!

0 Kudos
MartyG
Honored Contributor III
3,586 Views

Please review the information in the link below and let me know if it is helpful to you. Thanks!

0 Kudos
WChen71
Beginner
3,586 Views

Hi

I'm afraid that it doesn't help me so much.

Here's the problem I encountered.

pip install pyrealsense2 dosen't work, and I could not find a wheel for the tx2 platform.

I need pyrealsense2 lib to complete my project.

Please help me fix this issue.

Thank you!

0 Kudos
MartyG
Honored Contributor III
3,586 Views

A user called cyyyyywas also recently installing pyrealsense2 onto an Nvidia TX2 and found too that $ pip install pyrealsense2 was not working for them until a new update of pyrealsense2 released on July 25 (2.14.1.91). Then they found that the pip command worked for them and they were able to successfully install pyrealsense2 on their TX2. I see from your image that you are also using that version that worked for cyyyyy.

Have you tried just using $ pip install pyrealsense2 instead of the long version shown on your image?

0 Kudos
idata
Employee
3,586 Views

You can install pyrealsense2 to any OS like Windows, Linux etc. From https://netgears.support/arlo-support/ Contact Arlo support you can check the whole process to install step by step. You need to connect your pc with the internet to install this software on your computer.

0 Kudos
ycao6
New Contributor I
3,586 Views

I am happy to know and tell you that "pip install pyrealsense2" works now .It was updated a few days ago .

and I am sad to realize that when I received the camera , pyrealsense2 can not be installed. but now it can ,so the efforts I paid was in vain ...

https://pypi.org/project/pyrealsense2/# history pyrealsense2 · PyPI

0 Kudos
Reply