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

libusb Assertion Failed #18

Open
iu2frl opened this issue Aug 29, 2023 · 3 comments
Open

libusb Assertion Failed #18

iu2frl opened this issue Aug 29, 2023 · 3 comments

Comments

@iu2frl
Copy link

iu2frl commented Aug 29, 2023

Hi,

I downloaded the script to a Raspberry PI and if i run rtl_test works fine but if i run the script i got:

pi@raspberrypi:~/CalibrateSDR $ python3 ./cali.py
{'f': None, 'm': 'dab', 's': 'rtlsdr', 'c': 'all', 'rs': 2048000, 'rg': 20, 'rd': 0, 'nsec': 10, 'graph': False, 'verbose': False}
let's find your SDR's oscillator precision
scanning...
starting mode: dab
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Scanning all channels
Scanning…:   0%|                                    | 0/41 [00:00<?, ?it/s]Allocating 15 zero-copy buffers
python3: ../../libusb/os/threads_posix.h:46: usbi_mutex_lock: Assertion `pthread_mutex_lock(mutex) == 0' failed.
Aborted
pi@raspberrypi:~/CalibrateSDR $ 
@iu2frl
Copy link
Author

iu2frl commented Aug 29, 2023

Debug info;

pi@raspberrypi:~/CalibrateSDR $ python -V
Python 3.9.2
pi@raspberrypi:~/CalibrateSDR $ pip freeze
certifi==2020.6.20
chardet==4.0.0
colorzero==1.1
contourpy==1.0.7
cycler==0.11.0
distro==1.5.0
fonttools==4.42.1
gpiozero==1.6.2
idna==2.10
importlib-resources==6.0.1
kiwisolver==1.4.4
matplotlib==3.7.2
melopero-autostart==0.1.0
melopero-fan-hat==0.0.6
numpy==1.24.0
packaging==23.1
picamera2==0.3.12
pidng==4.0.9
piexif==1.1.3
Pillow==8.1.2
pyparsing==3.0.9
pyrtlsdr==0.3.0
python-apt==2.2.1
python-dateutil==2.8.2
python-prctl==1.7
requests==2.25.1
RPi.GPIO==0.7.0
SciPy==1.8.1
simplejpeg==1.6.4
six==1.16.0
spidev==3.5
ssh-import-id==5.10
toml==0.10.1
tqdm==4.66.1
urllib3==1.26.5
v4l2-python3==0.3.2
zipp==3.16.2
pi@raspberrypi:~/CalibrateSDR $ uname -a
Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr  3 17:20:52 BST 2023 armv7l GNU/Linux

@jyrj
Copy link
Member

jyrj commented Aug 29, 2023

Can you try Python 3.7/ 3.6?

Check here on how to create a virtual environment for Python. https://docs.python.org/3/library/venv.html

@iu2frl
Copy link
Author

iu2frl commented Aug 29, 2023

i tried with VENV but same result

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

2 participants