jopohl / urh

Universal Radio Hacker: Investigate Wireless Protocols Like A Boss
GNU General Public License v3.0
10.99k stars 874 forks source link

Attempted install after cloning repo on pop os, any ideas? #1060

Closed jamesmac10 closed 1 year ago

jamesmac10 commented 1 year ago

So first I tried a snap package install, sudo snap install urh. And a pip install. The snap install actually ran the urh after installing but it wouldnt recognize my bladerf. So I thought maybe a source install would be better. NOpE!

Expected Behavior

The install to work.

Actual Behavior

sudo urh Traceback (most recent call last): File "/usr/local/bin/urh", line 33, in sys.exit(load_entry_point('urh==2.9.4', 'console_scripts', 'urh')()) File "/usr/local/lib/python3.10/dist-packages/urh/main.py", line 84, in main import urh.cythonext.signal_functions File "src/urh/cythonext/signal_functions.pyx", line 1, in init urh.cythonext.signal_functions

noinspection PyUnresolvedReferences

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Steps To Reproduce
  1. git clone repo
  2. remove librtlsdr-dev and libhackrf-dev because of errors thrown, something about if statements and cython? 4.ran "python3 setup.py install
  3. seems to have "installed fine"
  4. db@pop-os:~/src/urh$ urh Traceback (most recent call last): File "/usr/local/bin/urh", line 33, in sys.exit(load_entry_point('urh==2.9.4', 'console_scripts', 'urh')()) File "/home/db/.local/lib/python3.10/site-packages/urh/main.py", line 84, in main import urh.cythonext.signal_functions File "src/urh/cythonext/signal_functions.pyx", line 1, in init urh.cythonext.signal_functions

    noinspection PyUnresolvedReferences

    ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

db@pop-os:~/src/urh$ neofetch ///////////// db@pop-os ///////////////////// --------- ///////767//////////////// OS: Pop!_OS 22.04 LTS x86_64 //////7676767676////////////// Host: XPS 15 9510 /////76767//7676767////////////// Kernel: 6.2.6-76060206-generic /////767676///76767/////////////// Uptime: 44 mins ///////767676///76767.///7676/////// Packages: 2867 (dpkg), 5 (snap) /////////767676//76767///767676//////// Shell: bash 5.1.16 //////////76767676767////76767///////// Resolution: 1920x1200 ///////////76767676//////7676////////// DE: Plasma 5.24.7 ////////////,7676,///////767/////////// WM: KWin /////////////*7676///////76//////////// WM Theme: plastik ///////////////7676//////////////////// Theme: [Plasma], Breeze [GTK2/3] ///////////////7676///767//////////// Icons: Sweet-Blue [Plasma], Sweet-Blue [GTK2/3] //////////////////////'//////////// Terminal: konsole //////.7676767676767676767,////// CPU: 11th Gen Intel i9-11900H (16) @ 4.800GHz /////767676767676767676767///// GPU: Intel TigerLake-H GT1 [UHD Graphics] /////////////////////////// GPU: NVIDIA GeForce RTX 3050 Ti Mobile ///////////////////// Memory: 4345MiB / 64020MiB

jamesmac10 commented 1 year ago

Well I deleted everything urh-wise and ran sudo snap uninstall urh and then rebooted and installed again via snap. Now when trying to use spectrum analyzer it gives me:

BladeRF-OPEN (bladerf=0): Error Code: -3 (-3) BladeRF: If you experience problems, make sure you place a rbf file matching your device at the correct location. See http://www.nuand.com/fpga_images/ and https://github.com/Nuand/bladeRF/wiki/FPGA-Autoloading BladeRF: failed to start rx mode

So I set my bladerf to autoload the fpga image with: bladeRF-cli -L ~/Downloads/hostedxa4.rbf

And it wrote it successfully, but the bladerf instance still isnt starting or showing in the dropdown menu inside URH spectrum analyzer. Anyone have similar issues, found a way around this? I'd really like to use this tool.

And thank-you to the developer for the effort put into all of this. Surely gargantuan.

jamesmac10 commented 1 year ago

Upon further googling I found the line: snap connect urh:raw-usb. This solved the issue.