Hello,
i use Ubuntu 20.04, QGIS 3.16 and i would like to use Spyder 4.

Befor i installed spyder, QGIS works well. 
I installed Spyder with this command

"pip3 install spyder"

Now spyder will work well, but qgis didnt.
If i open qgis, this message will appear:

The SIP-Modul failed to load. Python support will be disabled.
Traceback (most recent call last): File "", line 1, in File 
"/usr/lib/python3/dist-packages/qgis/__init__.py", line 70, in from 
qgis.PyQt import QtCore File 
"/usr/lib/python3/dist-packages/qgis/PyQt/QtCore.py", line 24, in from 
PyQt5.QtCore import * ImportError: 
/home/kai/.local/lib/python3.6/site-packages/PyQt5/QtCore.so: 
undefined symbol: _ZdlPvm, version Qt_5 Python-Version: 3.6.9 (default, Oct 
8 2020, 12:12:24) [GCC 8.4.0] QGIS-Version: 3.16.1-Hannover 'Hannover', 
b381a90dca Python-Pfad: ['/usr/share/qgis/python', 
'/home/kai/.local/share/QGIS/QGIS3/profiles/default/python', 
'/home/kai/.local/share/QGIS/QGIS3/profiles/default/python/plugins', 
'/usr/share/qgis/python/plugins', '/usr/lib/python36.zip', 
'/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', 
'/home/kai/.local/lib/python3.6/site-packages', 
'/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages'] 

If i execute this command:
"pip3 uninstall pyqt5 pyqt5-sip qtconsole"

QGIS will work but spyder didnt.
If i try to open Spyder i a terminal this message will appear:
Traceback (most recent call last):
  File "/home/kai/.local/bin/spyder", line 8, in <module>
    sys.exit(main())
  File "/home/kai/.local/lib/python3.8/site-packages/spyder/app/start.py", 
line 207, in main
    from spyder.app import mainwindow
  File 
"/home/kai/.local/lib/python3.8/site-packages/spyder/app/mainwindow.py", 
line 104, in <module>
    from spyder.app.utils import set_opengl_implementation
  File "/home/kai/.local/lib/python3.8/site-packages/spyder/app/utils.py", 
line 23, in <module>
    from spyder.utils.qthelpers import file_uri
  File 
"/home/kai/.local/lib/python3.8/site-packages/spyder/utils/qthelpers.py", 
line 30, in <module>
    from spyder.config.gui import is_dark_interface
  File "/home/kai/.local/lib/python3.8/site-packages/spyder/config/gui.py", 
line 31, in <module>
    from qtconsole.styles import dark_color
ModuleNotFoundError: No module named 'qtconsole'

So i think both programs are influennced by the "qtconsol".
Is there a way to use Spyder and QGIS without this error,
or to use spyder without qtconsol ? 

Best regards
Kai



-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to spyderlib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/1ac46294-0712-42ff-9a53-ce1c4bc02475n%40googlegroups.com.

Reply via email to