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
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
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
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?
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.
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.