-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Include could not find load file: libusb_config #4009
Comments
I was struggling with the same thing today as well. You need to run cmake from the highest level directory, librealsense. I additionally downloaded libusb and set LIBUSB_LIB and LIBUSB_INC to the corresponding include and library directories. The other errors should go away. However, I was working in Windows 10 and using cmake-gui.I also set PYTHON_EXECUTABLE to my desirable python version since I have multiple installed. I am currently building so I am not 100% sure it'll work but it should definitely get you by that and I haven't seen any errors yet. I will update when it finishes one way or the other. I would also advocate for making a Python3.7 version available on PyPi. |
Thanks for the info! Ubuntu comes with If you do get this working, I'd love to hear how! I've got a dev python3.6 environment with pyrealsense2 installed from PyPi, and it works great so far. I'm hoping to figure out how to get this installed on py37 though, as that's the environment I've already created with a bunch of finicky deep learning libraries. Best of luck in your install- I'm definitely interested to hear how it goes! |
|
Thanks for the update! Hopefully we'll hear from the developers soon. @radfordi it looks like you were recently working on a useful PR that touched on libusb. Any thoughts on how we might fix the error:
|
Hi @ClimbsRocks, This is line 16 of
The only way I see that this would have the wrong number of arguments is if The only way that
This error
again makes it seems like you are trying to build All three of these errors lead me to suspect your |
I verified that these indeed are the errors you get when you point |
@ClimbsRocks @radfordi With Python3.7 support from v2.23(PR#4012:#4012), do you still have this issue? Looking forward to your update. Thanks! |
@RealSenseCustomerSupport, this was user error (pointing |
Issue Description
As noted #4008 the library does not currently have easy installation available for Python3.7 on PyPi.
I tried installing from source, and encountered the following error:
I tried removing this line, and encountered a different error:
I tried installing
libusb
but their installation page says it should already be included on most Linux distributions, and package managers did not find it when I tried naively installingsudo apt install libusb
orsudo apt install libusb_config
.Just to be sure, I installed librealsense both through package manager and from source, and both seemed to install correctly, and were verified using the instructions included in the global install instructions. Under neither installation could I get the errors above to resolve.
It looks like the last time the relevant code was modified was recently, back in April with #3647 .
Can anyone explain how to make
libusb_config
available when building the Python wrapper from source? Or, alternatively, make a Python3.7 version available on PyPi :)The text was updated successfully, but these errors were encountered: