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

v2.5.6.1 Beta Python Install Error #13362

Open
stu68 opened this issue Sep 19, 2024 · 5 comments
Open

v2.5.6.1 Beta Python Install Error #13362

stu68 opened this issue Sep 19, 2024 · 5 comments
Labels

Comments

@stu68
Copy link

stu68 commented Sep 19, 2024

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.

@MartyG-RealSense
Copy link
Collaborator

Hi @stu68 The interim beta release of 2.56.1 does not have Python wheels published for this version.

image

@MartyG-RealSense
Copy link
Collaborator

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

@stu68
Copy link
Author

stu68 commented Sep 28, 2024 via email

@MartyG-RealSense
Copy link
Collaborator

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) describes a workaround method provided by my Intel RealSense colleagues for creating your own whl.

@MartyG-RealSense
Copy link
Collaborator

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

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

No branches or pull requests

2 participants