Closed stu68 closed 1 week ago
Hi @stu68 The interim beta release of 2.56.1 does not have Python wheels published for this version.
Hi @stu68 Do you require further assistance with this case, please? Thanks!
Is there an ETA for Python 3.12 compatibility. I purchased a realsense camera and have been unable to use it.
Thank you, Stu
From: MartyG-RealSense @.> Sent: Thursday, September 26, 2024 4:11 AM To: IntelRealSense/librealsense @.> Cc: Stuart Miller @.>; Mention @.> Subject: Re: [IntelRealSense/librealsense] v2.5.6.1 Beta Python Install Error (Issue #13362)
Hi @stu68https://github.com/stu68 Do you require further assistance with this case, please? Thanks!
— Reply to this email directly, view it on GitHubhttps://github.com/IntelRealSense/librealsense/issues/13362#issuecomment-2376645129, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADDWQCEHQVVKVH4RCDN2T43ZYPTUNAVCNFSM6AAAAABOP3AHPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZWGY2DKMJSHE. You are receiving this because you were mentioned.Message ID: @.**@.>>
2.56.1 is already compatible with Python 3.12. At the moment though, the pyrealsense2 wrapper needs to be built from source code instead of using PyPi (pip install pyrealsense2) when installing the wrapper with 2.56.1.
If you need to use a whl package and there are not packages available for a particular librealsense version then https://github.com/IntelRealSense/librealsense/issues/12601#issuecomment-1905554344 describes a workaround method provided by my Intel RealSense colleagues for creating your own whl.
Hi @stu68 Do you require further assistance with this case, please? Thanks!
I tried all the approaches/ procedures I could find, but none of them seem to work. I can get it built from the source code but not installed. Is there a complete, updated procedure for that?
Thank you, Stu
From: MartyG-RealSense @.> Sent: Saturday, September 28, 2024 12:59 AM To: IntelRealSense/librealsense @.> Cc: Stuart Miller @.>; Mention @.> Subject: Re: [IntelRealSense/librealsense] v2.5.6.1 Beta Python Install Error (Issue #13362)
2.56.1 is already compatible with Python 3.12. At the moment though, the pyrealsense2 wrapper needs to be built from source code instead of using PyPi (pip install pyrealsense2) when installing the wrapper with 2.56.1.
If you need to use a whl package and there are not packages available for a particular librealsense version then #12601 (comment)https://github.com/IntelRealSense/librealsense/issues/12601#issuecomment-1905554344 describes a workaround method provided by my Intel RealSense colleagues for creating your own whl.
— Reply to this email directly, view it on GitHubhttps://github.com/IntelRealSense/librealsense/issues/13362#issuecomment-2380557238, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADDWQCHA25BM5TBA3WWEYRDZYZOSNAVCNFSM6AAAAABOP3AHPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQGU2TOMRTHA. You are receiving this because you were mentioned.Message ID: @.**@.>>
Official .whl pyrealsense2 package files for use with librealsense 2.56.1 are not currently available, so source code installation of pyrealsense2 is currently the only option.
The most straightforward method of installing librealsense + pyrealsense2 together from source code may be to use the libuvc backend procedure at the link below, which has a build script called 'libuvc_installation.sh'. This will install librealsense 2.55.1 instead of 2.56.1, but it will not matter.
https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md
To install the pyrealsense2 wrapper at the samw time as librealsense, line 46 of the build script should be modified so that it uses the line below:
cmake ../ -DFORCE_LIBUVC=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true -DBUILD_PYTHON_BINDINGS:bool=true
https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh#L46
Because pyrealsense2 is being built from source code, it should work with Python 3.12.
Hi @stu68 Do you have an update about this case that you can provide, please? Thanks!
Hi @stu68 Do you require further assistance with this case, please? Thanks!
Case closed due to no further comments received.
I am getting the following when trying to install the latest beta release into python 3.12/ PyCharm:
Processing c:\users\admin\documents\github\librealsense-development\wrappers\python Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [22 lines of output] Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(*hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-kikdptcn\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-kikdptcn\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-kikdptcn\overlay\Lib\site-packages\setuptools\build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-kikdptcn\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 5, in
File "C:\Users\Admin\Documents\GitHub\librealsense-development\wrappers\python\pyrealsense2__init__.py", line 2, in
from .pyrealsense2 import
ModuleNotFoundError: No module named 'pyrealsense2.pyrealsense2'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.