Closed SimoSera closed 1 year ago
Well, officially there is no Raspberry Pi support but it seems, that most of the critical stuff seems to compile, asides from rtlsdr.pyx. The problem probably is a type problem in line 326, maybe someone knows how to make this ARM v8 compatible? I don't have a RPi4 nor a RTLSDR at my workplace, so I call for PRs.
I resolved by commenting the part the gave the error. In the file rtlsdr.pyx in urh/src/urh/dev/native/lib I edited this part:
cpdef int read_async(callback, connection):
"""
Read samples from the device asynchronously. This function will block until
it is being canceled using rtlsdr_cancel_async()
read_bytes_async
:return: 0 on success
"""
global f
f = callback
return crtlsdr.rtlsdr_read_async(_c_device, _c_callback_recv, <void *>connection, 0, 0)
to :
"""
cpdef int read_async(callback, connection):
Read samples from the device asynchronously. This function will block until
it is being canceled using rtlsdr_cancel_async()
read_bytes_async
:return: 0 on success
global f
f = callback
return crtlsdr.rtlsdr_read_async(_c_device, _c_callback_recv, <void *>connection, 0, 0)
"""
This way I commented the code and when installing the error disappeared. For now urh seems to work fine, I only tried the spectrum analyzer and creating a project.
When I try installing URH with "sudo python3 -m pip install urh" i get an error. The first time I tried installing I was missing Cython, after installing it I tried again and now I get another error that I don't understand.
This is the output i get when i run the command to install URH:
I am running a Raspberry pi 4 model B with 4GB of ram with Raspberry Pi OS. I am also using a RTL-SDR and i already have the drivers installed, I have installed gqrxsdr and rtl-433 and they run fine. pip --version : pip 23.2.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9) python --version : Python 3.9.2