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

Prebuilt pyrealsense2 for macOS released #9687

Closed
cansik opened this issue Aug 25, 2021 · 8 comments
Closed

Prebuilt pyrealsense2 for macOS released #9687

cansik opened this issue Aug 25, 2021 · 8 comments

Comments

@cansik
Copy link

cansik commented Aug 25, 2021

For many projects I (and others #6402, #5275, #3864) would like to use python and a realsense camera. Of course it is possible to build the librealsense with python bindings yourself, but an installation with pip would be so much easier.

Because of that, I created the repository cansik/pyrealsense2-macosx which contains a powershell script to automate the build process. For Big Sur and Catalina a Github Action creates pre-built wheel files and provides them in the releases.

Now the installation on macOS is as simple as that:

pip install pyrealsense2-macosx

To use it as dependency in a requirements.txt, use the following lines:

pyrealsense2; platform_system == "Windows" or platform_system == "Linux"
pyrealsense2-macosx; platform_system == "Darwin"

Currently Supported Versions

  • OS: macOS Catalina (10.15), macOS Big Sur (11.0)
  • Python: 3.6, 3.7, 3.8, 3.9, 3.10

I hope this helps others too and hopefully sooner or later Intel will include the macOS packages in their official pyrealsense2 PyPI repo.

@MartyG-RealSense
Copy link
Collaborator

Thanks so much @cansik for creating your brew-based prebuilt MacOs installation solution for pyrealsense2 and sharing it with other Mac users in the RealSense community!

@MartyG-RealSense
Copy link
Collaborator

Thanks very much again @cansik for your installation guide. I will close this case, as the guide is accessible through web searching.

@HiWiQiao
Copy link

sorry, i can not find requirements.txt

@HiWiQiao
Copy link

it is doesn't work in Ventura

@PaulRuan2023
Copy link

how to solve the problem no device connected

@MartyG-RealSense
Copy link
Collaborator

Hi @PaulRuan2023 Are you using MacOS Ventura, please?

@PaulRuan2023
Copy link

Yes

@MartyG-RealSense
Copy link
Collaborator

There have been problems reported with using RealSense cameras with the latest Ventura OS. There were also problems with the preceding Monterey version but solutions were eventually found by RealSense Mac users. There is not a clear solution for Ventura problems yet, unfortunately.

The best place to discuss this issue with other members of the RealSense Mac is likely to be at #11815

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants