[MacPorts] #67842: Qgis3 - problems with some plugin

MacPorts noreply at macports.org
Mon Sep 11 22:22:39 UTC 2023


#67842: Qgis3 - problems with some plugin
------------------------+----------------------
  Reporter:  news24lor  |      Owner:  Veence
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.1
Resolution:             |   Keywords:
      Port:  qgis3      |
------------------------+----------------------

Comment (by news24lor):

 Hi Nicklas

 I reinstalled 'py311-pyqt5 +webkit' but when I open QGIS the 'DataPlotly'
 plugin error remains:

 {{{
 Couldn't load plugin 'DataPlotly' due to an error when calling its
 classFactory() method

 ModuleNotFoundError: No module named 'PyQt5.QtWebKit'
 Traceback (most recent call last):
   File
 "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
 line 423, in _startPlugin
     plugins[packageName] = package.classFactory(iface)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/Users/lorenzo/Library/Application
 Support/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/__init__.py",
 line 33, in classFactory
     from .data_plotly import DataPlotly
   File
 "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
 line 888, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/Users/lorenzo/Library/Application
 Support/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/data_plotly.py",
 line 32, in
     from DataPlotly.gui.dock import DataPlotlyDockManager
   File
 "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
 line 888, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/Users/lorenzo/Library/Application
 Support/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/gui/dock.py",
 line 19, in
     from DataPlotly.gui.plot_settings_widget import DataPlotlyPanelWidget
   File
 "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
 line 888, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/Users/lorenzo/Library/Application
 Support/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/gui/plot_settings_widget.py",
 line 49, in
     from qgis.PyQt.QtWebKit import QWebSettings
   File
 "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
 line 888, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/qgis/PyQt/QtWebKit.py",
 line 24, in
     from PyQt5.QtWebKit import *
   File
 "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
 line 888, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 ModuleNotFoundError: No module named 'PyQt5.QtWebKit'

 Python version: 3.11.5 (main, Aug 27 2023, 16:04:19) [Clang 14.0.3
 (clang-1403.0.22.14.1)]
 QGIS version: 3.32.2-Lima Lima, exported

 }}}


 It is very difficult to align the Python modules of QGIS plugins with the
 modules installed by MacPorts. For example, another plugin does not load
 because it needs NumPy version 1.24 or lower while MacPorts has 1.25. As
 for QtWebKit which is obsolete for Qt but still present in the QGIS code
 and also used by other plugins.

 Thanks

-- 
Ticket URL: <https://trac.macports.org/ticket/67842#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list