Qspectrumanalyzer no longer works

Hi, I don’t know in which Stable update has happened, but today Qpsectrumaanalyzer, started from Terminal, reports the following errors about the numpy package:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/usr/bin/qspectrumanalyzer", line 5, in <module>
    from qspectrumanalyzer.__main__ import main
  File "/usr/lib/python3.12/site-packages/qspectrumanalyzer/__main__.py", line 5, in <module>
    from Qt import QtCore, QtGui, QtWidgets
  File "/usr/lib/python3.12/site-packages/Qt.py", line 1938, in <module>
    _install()
  File "/usr/lib/python3.12/site-packages/Qt.py", line 1874, in _install
    available[name]()
  File "/usr/lib/python3.12/site-packages/Qt.py", line 1448, in _pyside2
    import PySide2 as module
  File "/usr/lib/python3.12/site-packages/PySide2/__init__.py", line 107, in <module>
    _setupQtDirectories()
  File "/usr/lib/python3.12/site-packages/PySide2/__init__.py", line 58, in _setupQtDirectories
    import shiboken2
  File "/usr/lib/python3.12/site-packages/shiboken2/__init__.py", line 27, in <module>
    from .shiboken2 import *
Segmentation fault (core dumped)

Qspectrumanalyzer is from official extra repo. I don’t have a previous version of numpy package.

I just did a full system update on one of my Plasma VM’s
sudo pacman -Syu
and then installed qspectrumanalyzer
sudo pacman -S qspectrumanalyzer

The software starts (from terminal) with two warnings:

Qt.py [warning]: ImportError(QtHelp): libQt5Help.so.5: cannot open shared object file: No such file or directory
Qt.py [warning]: ImportError(QtXmlPatterns): libQt5XmlPatterns.so.5: cannot open shared object file: No such file or directory

and it works.

Are you on stable branch? I did a sudo pacman -Syu but there is nothing to do.

Yes, that system is on stable branch.
Out of curiosity, I will now do the same with my Xfce4 VM.

the only difference is three warnings instead of two:

qspectrumanalyzer 
Qt.py [warning]: ImportError(QtHelp): libQt5Help.so.5: cannot open shared object file: No such file or directory
Qt.py [warning]: ImportError(QtMultimedia): libQt5Multimedia.so.5: cannot open shared object file: No such file or directory
Qt.py [warning]: ImportError(QtXmlPatterns): libQt5XmlPatterns.so.5: cannot open shared object file: No such file or directory

the software starts and works

It’s mentions a module. So check your modules.

You may have to rebuild some AUR packages.

pacman -Qs pyside
pacman -Qs shiboken

:man_shrugging:

At the moment I’m away from home (and so from the laptop), I’ll back on 24 August and I’ll try this advice :+1:
However: on packages.manjaro.org I’ve seen that there are available pyside6 and shiboken6; can I replace the AUR packages with these two from official repo?

I used pacman to install this:

which means:
there are no (zero) AUR packages involved.

these where the dependencies that where pulled in for qspectrumanalyzer:

resolving dependencies...
looking for conflicting packages...

Packages (11) blas-3.12.0-5  cblas-3.12.0-5  lapack-3.12.0-5  python-numpy-2.0.1-1  python-pyqtgraph-0.13.6-2  python-qt.py-1.3.8-3  python-simplesoapy-1.5.1-11  python-simplespectral-1.0.0-11
              soapy_power-1.6.1-12  soapysdr-0.8.1-5  qspectrumanalyzer-2.2.0-10

If you replace some of these AUR packages you apparently have,
some other AUR packages might stop working - or will need to be rebuilt.

But @dmt told me:

pacman -Qs package_name
just searches for whether a package is installed.

He had you look for whether these where present - these (AUR) packages are probably involved in your problem, but I don’t know his exact reasoning.
He may know some dependency chains … plus: these names appear in your error messages.

All I said was that for qspectrumanalyzer to work, no AUR packages are needed.

If the repo packages provide pyside2 and shiboken2 then you may already be using them. :man_shrugging:

I do know pyside2 and shiboken2 are in the AUR though, that’s why I suggested you check what’s installed, in case they need rebuilding.

I was thinking they may have been pulled in from a module/plugin. Not sure if the versions in the repo would provide them or not. :man_shrugging:

However I don’t know the software, so it’s just my thoughts based on the error messages…

I uninstalled Qspectrumanalyzer, and its orphans (there was pyside2 and python-shiboken2); after that, Qspectrumanalyzer properly started.
But then, there was another error: missing /usr/lib/librtlsdr.so.0, so I symlinked: sudo ln -s /usr/lib/librtlsdr.so.2 /usr/lib/librtlsdr.so.0

However, this topic is solved.

But then, Qspectrumanalyzer (2.2.0-10), doesn’t draw the graph/plot, with the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/qspectrumanalyzer/plot.py", line 289, in update_plot
    self.waterfallImg.scale((data_storage.x[-1] - data_storage.x[0]) / len(data_storage.x), 1)
TypeError: scale(self): too many arguments

I think that you, guys, can’t properly test Qspectrumanalyzer, because like me, you need an SDR device.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.