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

AttributeError: module 'pyrealsense2' has no attribute 'pipeline' #4483

Closed
swjtuccy opened this issue Jul 23, 2019 · 5 comments
Closed

AttributeError: module 'pyrealsense2' has no attribute 'pipeline' #4483

swjtuccy opened this issue Jul 23, 2019 · 5 comments

Comments

@swjtuccy
Copy link

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model D435}
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version jetson nano
Kernel Version (Linux Only)
Platform NVIDIA Jetson nano
SDK Version sdk2.0
Language python3}

Issue Description

AttributeError: module 'pyrealsense2' has no attribute 'pipeline'

I have build librealsense and used pip3 install pyrealsense2-aarch64, everything is right .But when i try to run the example python scripts , the Error ocured as:
:~/.local/bin$ python3 align-depth2color.py
Traceback (most recent call last):
File "align-depth2color.py", line 16, in
pipeline = rs.pipeline()
AttributeError: module 'pyrealsense2' has no attribute 'pipeline'

@lramati
Copy link
Contributor

lramati commented Aug 21, 2019

I'm not sure what the pyrealsense2-aarch64 package is or who made it, but downloading the wheel from PyPi and opening it with 7z reveals that it contains only some example scripts, and not the actual library.
Try uninstalling pyrealsense2-aarch64 and install pyrealsense2 instead.

@RealSenseCustomerSupport
Copy link
Collaborator


@swjtuccy Did you try what Iramati suggested? Looking forward to your update. Thanks!

@RealSenseCustomerSupport
Copy link
Collaborator


@swjtuccy Any update about this? Thanks!

@RealSenseCustomerSupport
Copy link
Collaborator


@swjtuccy If no other questions, will close it at this point. Thanks!

@darmin-hsiung
Copy link

I have install pyrealsense, but run some program was error, the question as follow, please help me to solve this question, thanks!
$ python demo.py

Traceback (most recent call last):
File "demo.py", line 1, in
import pyrealsense2 as rs
File "/home/u16l/WORKS/Codes/pyrealsense2.py", line 6, in
pipeline = rs.pipeline()
AttributeError: module 'pyrealsense2' has no attribute 'pipeline'

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

4 participants