Skip to content

Incompativility with numpy 2.3.3: "binary mode of fromstring is removed, use frombuffer" #117

@afiskon

Description

@afiskon

Hi,

I tied qspectrumanalyzer on Ubuntu 24.04. I installed it using pip in my local venv:

pip3 install pyqt5 qspectrumanalyzer

When I tried to create a plot using hackrf_sweep I got:

Traceback (most recent call last):
  File "/home/eax/python-venv/lib/python3.12/site-packages/qspectrumanalyzer/backends/hackrf_sweep.py", line 144, in run
    self.parse_output(buf)
  File "/home/eax/python-venv/lib/python3.12/site-packages/qspectrumanalyzer/backends/hackrf_sweep.py", line 115, in parse_output
    data = np.fromstring(buf[16:], dtype='<f4')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: The binary mode of fromstring is removed, use frombuffer instead

numpy version is 2.3.3 which is the most recent release (Sep 9 2025).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions