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

Cannot load librtlsdr.dylib - missing libusb-1.0.0.dylib #3

Open
lxnk opened this issue Jan 22, 2024 · 0 comments
Open

Cannot load librtlsdr.dylib - missing libusb-1.0.0.dylib #3

lxnk opened this issue Jan 22, 2024 · 0 comments

Comments

@lxnk
Copy link

lxnk commented Jan 22, 2024

I am trying to use the dongle with pyrtlsdr and library from pyrtlsdrlib. Python gives an error

ImportError: Error loading librtlsdr. Make sure librtlsdr (and all of its dependencies) are in your path

When I started digging, it does see the library. What it does not, is following: in CDLL.__init__ function _dlopen throws an error:

Could not load /Users/sk/Documents/Development/python/RPicoW/venv/lib/python3.9/site-packages/pyrtlsdrlib/lib/custom_build/librtlsdr.0.dylib. Exception: OSError("dlopen(/Users/sk/Documents/Development/python/RPicoW/venv/lib/python3.9/site-packages/pyrtlsdrlib/lib/custom_build/librtlsdr.0.dylib, 0x0006): Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib\n Referenced from: <088B7666-008C-3472-A5AC-F7057E762D13> /Users/sk/Documents/Development/python/RPicoW/venv/lib/python3.9/site-packages/pyrtlsdrlib/lib/custom_build/librtlsdr.0.dylib\n Reason: tried: '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/local/lib/libusb-1.0.0.dylib' (no such file), '/usr/lib/libusb-1.0.0.dylib' (no such file, not in dyld cache)")

Is there a way for a nice fix? Installing libusb with pip in venv, obviously, did not help.

macOS: Ventura 13.6.3 (22G436)
macOS Python: Python 3.9.6 (default, Nov 10 2023, 13:38:27) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin

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

No branches or pull requests

1 participant