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

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

Closed
jamesmac10 opened this issue Jul 24, 2023 · 2 comments
Closed

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

jamesmac10 opened this issue Jul 24, 2023 · 2 comments

Comments

@jamesmac10
Copy link

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
Copy link
Author

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
Copy link
Author

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

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