Spyder fails to load after QtWebEngine update

Hi,

i use Manjaro LXQt (both last update). After QtWebEngine last update, Spyder fails to load.

Here the output:

Traceback (most recent call last):
  File "/usr/bin/spyder", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.13/site-packages/spyder/app/start.py", line 281, in main
    mainwindow.main(options, args)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/spyder/app/mainwindow.py", line 1400, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
  File "/usr/lib/python3.13/site-packages/spyder/app/utils.py", line 360, in create_window
    main.setup()
    ~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/spyder/app/mainwindow.py", line 690, in setup
    internal_plugins = find_internal_plugins()
  File "/usr/lib/python3.13/site-packages/spyder/app/find_plugins.py", line 45, in find_internal_plugins                                
    mod = importlib.import_module(entry_point.module)
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module                                                           
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked                                                           
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1023, in exec_module                                                              
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed                                                          
  File "/usr/lib/python3.13/site-packages/spyder/plugins/help/plugin.py", line 26, in <module>                                          
    from spyder.plugins.help.widgets import HelpWidget
  File "/usr/lib/python3.13/site-packages/spyder/plugins/help/widgets.py", line 44, in <module>                                         
    from qtpy.QtWebEngineWidgets import WEBENGINE
  File "/usr/lib/python3.13/site-packages/qtpy/QtWebEngineWidgets.py", line 28, in <module>                                             
    from PyQt5.QtWebEngineWidgets import (
    ...<5 lines>...
    )
RuntimeError: PyQt5.QtWebEngineWidgets cannot import type '����' from PyQt5.QtCore

Anybody has a solution and can explain? Is this a problem have i to report to LXQt GitHub too?
Thanks.

Could be related to Qt5 vs Qt6 but I have no idea - a search - maybe an oversight from upstream Arch Linux?

 $ pamac search pyqt5
python-qcustomplot-pyqt5  2.1.1.2-1                                     AUR
    Python bindings to QCustomPlot - Qt C++ widget for plotting and
    data visualization
python-pyqt5-webkit  5.15.11-1                                          AUR
    A set of Python bindings for the Qt5 toolkit with Qt5WebKit support
python-pyqt5-stubs  5.15.6.0-3                                          AUR
    PEP561 stub files for the PyQt5 framework
python-pyqt5-sip4  5.15.10-1                                            AUR
    A set of Python bindings for the Qt5 toolkit
python-pyqt5-sip  12.17.2-1                                           extra
    The sip module support for PyQt5
python-pyqt5-purchasing  5.15.6-4                                       AUR
    Python bindings for QtPurchasing
python-pyqt5-pre-release  5.15.12.dev2410191555-1                       AUR
    A set of Python bindings for the Qt5 toolkit
python-pyqt5-networkauth  5.15.6-5                                      AUR
    Python bindings for QtNetworkAuth
python-pyqt5-datavisualization  5.15.6-5                                AUR
    Python bindings for QtDataVisualization
python-pyqt5-chart  5.15.7-5                                            AUR
    Python bindings for QtCharts
python-pyqt5-3d  5.15.7-6                                               AUR
    Python bindings for Qt3D
python-pyqt5  5.15.11-3                                               extra
    A set of Python bindings for the Qt5 toolkit

Perhaps you can work around it with python-pyqt5-webkit package from AUR.

Yes I know - spyder is in the repo - but did you install from other source.

Hi, i installed Python and Spyder from repo.

python-pyqt5 (repo) and python-pyqt5-webengine (AUR) installed too.
I’m using Spyder with miniconda3 now, but it’s not convenient because I’d have to reinstall all the packages I use.

It would seem you need another custom package to replace it - possibly python-pyqt5-webkit package.

EDIT: Is the webkit package different from webengine package ?

1 Like

EDIT: Is the webkit package different from webengine package ?

To be honest i don’t know but i guess yes.

Anyway, I installed the python-pyqt5-webkitas You said and now Spyder
loads.
Thanks.

1 Like

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