Hello everyone,
when utilizing ipython, I’m unable to display anything using ipython, it provides me with an error:
plt.plot(np.arange(5),np.arange(5))
1 import sys
2 import os
----> 3 from IPython.external.qt_for_kernel import QtCore, QtGui, enum_helper
4 from IPython import get_ipython
6 # If we create a QApplication, keep a reference to it so that it doesn't get
7 # garbage collected.
File ~/.local/lib/python3.10/site-packages/IPython/external/qt_for_kernel.py:127, in <module>
123 return [qt_api]
126 api_opts = get_options()
--> 127 QtCore, QtGui, QtSvg, QT_API = load_qt(api_opts)
128 enum_helper = enum_factory(QT_API, QtCore)
File ~/.local/lib/python3.10/site-packages/IPython/external/qt_loaders.py:365, in load_qt(api_options)
362 continue
364 #cannot safely recover from an ImportError during this
--> 365 result = loaders[api]()
366 api = result[-1] # changed if api = QT_API_PYQT_DEFAULT
367 commit_api(api)
File ~/.local/lib/python3.10/site-packages/IPython/external/qt_loaders.py:256, in import_pyqt6()
249 def import_pyqt6():
250 """
251 Import PyQt6
252
253 ImportErrors raised within this function are non-recoverable
254 """
--> 256 from PyQt6 import QtCore, QtSvg, QtWidgets, QtGui
258 # Alias PyQt-specific functions for PySide compatibility.
259 QtCore.Signal = QtCore.pyqtSignal
ImportError: libQt6Svg.so.6: cannot open shared object file: No such file or directory
Although this command works fine with just python (as does the following plt.show()).
This seems to be a linking problem, but not one that I’ve managed to solve.
Any ideas ?
Cheers