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

Python 3.10 wrapper support. #10057

Closed
arsanysamuel opened this issue Dec 14, 2021 · 8 comments
Closed

Python 3.10 wrapper support. #10057

arsanysamuel opened this issue Dec 14, 2021 · 8 comments

Comments

@arsanysamuel
Copy link

Required Info
Camera Model L515
Firmware Version 01.05.08.01
Operating System & Version Arch Linux
Kernel Version (Linux Only) 5.10.84-1-lts
Platform PC
SDK Version 2.50
Language Python 3.10

Issue Description

I updated python from 3.9 to 3.10 and pip to 21.3.1, I tried to reinstall pyrealsense2 with pip and this error shows:

ERROR: Could not find a version that satisfies the requirement pyrealsense2 (from versions: none)
ERROR: No matching distribution found for pyrealsense2

Will there be a pip package for 3.10?

@MartyG-RealSense
Copy link
Collaborator

Hi @arsanysamuel At the time of writing this, Python 3.9 is the most recent version supported by pip install. The pyrealsense2 wrapper can built from source code for Python versions unsupported by pip install though. The wrapper can either be built separately or at the same time as the librealsense SDK is built from source with CMake.

I do not have information regarding future plans and implementation timescales for pip install support of Python 3.10. If you need to use pip, there was a very detailed discussion of workarounds for unsupported Python versions in #8229 where a RealSense user suggested updating the whl file for newer versions using a hex editor at #8229 (comment)

@MartyG-RealSense
Copy link
Collaborator

Hi @arsanysamuel Do you require further assistance with this case, please? Thanks!

@arsanysamuel
Copy link
Author

@MartyG-RealSense Thanks for your assistance.
I'm having some trouble trying to install the compiled wrapper on a virtual environment, the wrapper installs by default on the main environment.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Dec 21, 2021

Hi @arsanysamuel Are you using a Virtual Machine (VM)? If you are, which VM software are you using (Oracle VirtualBox, VMWare Workstation Player, etc).

@arsanysamuel
Copy link
Author

@MartyG-RealSense Thanks for replying, I'm using Arch Linux as my main operating system with Python 3.10.
I compiled librealsense from source but pyrealsense2 was installed on the main python environement, how can I install it on a virtual environment?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Dec 26, 2021

My understanding is that in a situation like this, the Python targetting problem would be handled by defining a symbolic link (symlink) with an '-s' command like #1657 (comment) describes for pyrealsense2

There is also a general tutorial about symlinks on Linux at the link below.

https://www.freecodecamp.org/news/symlink-tutorial-in-linux-how-to-create-and-remove-a-symbolic-link/

@MartyG-RealSense
Copy link
Collaborator

Hi @arsanysamuel Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

2 participants