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

Update RealSense version error handling #898

Closed
wants to merge 1 commit into from
Closed

Conversation

m3d
Copy link
Member

@m3d m3d commented Sep 1, 2021

No description provided.

@m3d m3d requested review from jisa and tajgr September 1, 2021 17:35
@m3d
Copy link
Member Author

m3d commented Sep 1, 2021

>>> from pyrealsense2 import pyrealsense2 as rs
>>> rs.__version__
'2.47.0'
>>> c = rs.context()
>>> exit()

works as well as

>>> import pyrealsense2 as rs
>>> rs.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pyrealsense2' has no attribute '__version__'
>>> rs.pyrealsense2.__version__
'2.47.0'
>>> c2 = rs.context()
>>> exit()

@m3d
Copy link
Member Author

m3d commented Sep 1, 2021

workaround with __init__.py works: IntelRealSense/librealsense#6820 (comment) ... closing.

@m3d m3d closed this Sep 1, 2021
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

Successfully merging this pull request may close these issues.

1 participant