I am using Linux Mint 18.3 Cinnamon and I can’t start joulescope_ui. It seems PySide and Qt bindings do not work. Any tips what to look for?
I have installed joulescope_ui via pip3 also I am using python3.6
$ python3.6 -m joulescope_ui
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/main.py”, line 18, in
from joulescope_ui.command import parser_config
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/command.py”, line 21, in
from joulescope_ui.main import run
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/main.py”, line 27, in
from joulescope_ui.oscilloscope import Oscilloscope
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/oscilloscope/init.py”, line 15, in
from .oscilloscope import Oscilloscope
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/oscilloscope/oscilloscope.py”, line 16, in
from .signal import Signal
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/oscilloscope/signal.py”, line 16, in
from .signal_statistics import SignalStatistics, si_format
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/oscilloscope/signal_statistics.py”, line 15, in
from pyqtgraph.Qt import QtGui, QtCore
File “/usr/local/lib/python3.6/dist-packages/pyqtgraph/init.py”, line 13, in
from .Qt import QtGui
File “/usr/local/lib/python3.6/dist-packages/pyqtgraph/Qt.py”, line 47, in
from PySide import QtGui, QtCore, QtOpenGL, QtSvg
ImportError: cannot import name ‘QtGui’
I have noticed on the github page that a forked pyqtgraph is being installed so I have uninstalled pyqtgraph and pyside and ran this command from pyjoulescope_ui repository directory
sudo pip3 install -r requirements.txt
It indeed has downloaded pyqtgraph from forked address, but now I get another problem:
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/miceuz/pyjoulescope_ui/joulescope_ui/main.py”, line 18, in
from joulescope_ui.command import parser_config
File “/home/miceuz/pyjoulescope_ui/joulescope_ui/command.py”, line 21, in
from joulescope_ui.main import run
File “/home/miceuz/pyjoulescope_ui/joulescope_ui/main.py”, line 22, in
from PySide2 import QtCore, QtWidgets
ImportError: libshiboken2.abi3.so.5.12: cannot open shared object file: No such file or directory
Appearently, libshiboken2 is installed, but it is of version 5.13.0. I have tried uninstalling it and installing version 5.12.4, but then I get this error:
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/main.py”, line 18, in
from joulescope_ui.command import parser_config
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/command.py”, line 21, in
from joulescope_ui.main import run
File “/usr/local/lib/python3.6/dist-packages/joulescope_ui/main.py”, line 22, in
from PySide2 import QtCore, QtWidgets
ImportError: /usr/local/lib/python3.6/dist-packages/PySide2/QtCore.abi3.so: undefined symbol: ZN8Shiboken27setErrorAboutWrongArgumentsEP7_objectPKcPS3
Hi @miceuz and welcome to the Joulescope forum. Great to hear that you got this working. At about the same time you were dealing with this issue, I was also migrating the Joulescope UI from Qt5/PySide2 5.12.0 to 5.13.0, and I edited both setup.py and requirements.txt. I think that these changes would have made your install go much smoother. Great work tracking down the right dependencies. Working with the source should be much easier in the future, especially once pyqtgraph releases 0.11.0.