You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I am trying to use the dongle with
pyrtlsdr
and library frompyrtlsdrlib
. Python gives an errorWhen I started digging, it does see the library. What it does not, is following: in
CDLL.__init__
function_dlopen
throws an error:Is there a way for a nice fix? Installing
libusb
withpip
invenv
, obviously, did not help.The text was updated successfully, but these errors were encountered: