Skip to content

The Script seems to stopped working OverflowError: Python integer -127 out of bounds for uint8 #19

Description

@embed-3d

Hi,
i wanted to check the ppm of my rtlsdr but I got the following errror message:

{'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
Detached kernel driver
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
Scanning…: 0%| | 0/41 [00:10<?, ?it/s]
Traceback (most recent call last):
File "/home/philipp/Development/python/CalibrateSDR/cali.py", line 199, in
main(vars(args))
File "/home/philipp/Development/python/CalibrateSDR/cali.py", line 74, in main
cali.utils.scan_one_dab_channel(dabchannels, channel, sdr, rs, ns, rg, filename, samplerate,
File "/home/philipp/Development/python/CalibrateSDR/calibratesdr/utils.py", line 107, in scan_one_dab_channel
dab_ppm = cali.dabplus.dab.get_ppm(data, samplerate=samplerate, show_graph=show_graph, verbose=verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/philipp/Development/python/CalibrateSDR/calibratesdr/dabplus/dab.py", line 8, in get_ppm
data_slice = (adc_offset + data[0:: 2]) + 1j * (adc_offset + data[1:: 2])
~~~~~~~~~~~^~~~~~~~~~~~~
OverflowError: Python integer -127 out of bounds for uint8
Reattached kernel driver

operating system: Linux
Python Version: 3.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions