dressel / pyhackrf

A Python wrapper for libhackrf
66 stars 18 forks source link

importing libhackrf doesnt work #5

Closed menroka closed 2 years ago

menroka commented 4 years ago

I cloned the git files into my project directory, but when trying to import libhackrf, the following error gets raised:

Traceback (most recent call last): File "C:/Users/name/.PyCharmCE2018.3/config/scratches/Bluetooth/search tree.py", line 6, in import libhackrf as hcrf File "C:\Users\name.PyCharmCE2018.3\config\scratches\Bluetooth\libhackrf.py", line 21, in libhackrf = CDLL('libhackrf.so.0') File "C:\Users\name\AppData\Local\Programs\Python\Python37\lib\ctypes__init.py", line 356, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found

Using the "from libhackrf import *" from the examples yields the same result.

Ayoubdz19 commented 2 years ago

I have the same problem

menroka commented 2 years ago

To anyone reading this: Don't bother using any products of Great Scott Gadgets. I have tried to work with the hackrf one, which has terrible performance and synchronization problems and cant even send the most basic signal at the right time. I have also tried to work with the Ubertooth, for which not even the most basic "hacking" scripts are implemented. Not even speaking of any documentation, specification, or reference manuals.

Buying their products is just a waste of time. You are much better off using an embedded SoC, for example from Nordic, and creating an interface through SPI/UART to your PC, if absolutely necessary.