Bug 277302 - graphics/qgis: runtime error: ModuleNotFoundError: No module named 'grassprovider.grass_plugin'
Summary: graphics/qgis: runtime error: ModuleNotFoundError: No module named 'grassprov...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Rainer Hurling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-25 14:31 UTC by Martin Birgmeier
Modified: 2024-02-26 18:32 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (rhurlin)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2024-02-25 14:31:41 UTC
Scenario:
- FreeBSD stable/14
- ports latest
- Upgrading ports using portmaster
- Upgraded qgis to 3.36.0
- Starting qgis

Result:
- A popup with the following error message is shown:

ModuleNotFoundError: No module named 'grassprovider.grass_plugin' 
Traceback (most recent call last):
  File "/usr/local/share/qgis/python/qgis/utils.py", line 426, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/usr/local/share/qgis/python/plugins/grassprovider/__init__.py", line 24, in classFactory
    from grassprovider.grass_plugin import GrassProviderPlugin
  File "/usr/local/share/qgis/python/qgis/utils.py", line 923, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'grassprovider.grass_plugin'


Python-Version: 3.9.18 (main, Jan 24 2024, 10:41:07) [Clang 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1 
QGIS-Version: 3.36.0-Maidenhead Maidenhead, exported 

Python-Pfad:
/usr/local/share/qgis/python
/users/martin/.local/share/QGIS/QGIS3/profiles/default/python
/users/martin/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/local/share/qgis/python/plugins
/usr/local/lib/python39.zip
/usr/local/lib/python3.9
/usr/local/lib/python3.9/lib-dynload
/usr/local/lib/python3.9/site-packages
/users/martin/.local/share/QGIS/QGIS3/profiles/default/python
/users/martin/.local/share/QGIS/QGIS3/profiles/default/python/plugins/shapetools/ext-libs
/users/martin/.local/share/QGIS/QGIS3/profiles/default/python/plugins/Beeline/libs

Expected result:
- qgis should start without this error message

-- Martin
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-02-25 19:39:19 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d742499aa382925e338595ff0e68c8fecbcb068

commit 0d742499aa382925e338595ff0e68c8fecbcb068
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2024-02-25 19:35:45 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2024-02-25 19:35:45 +0000

    graphics/qgis: Fix plist, bring back grass_plugin

    PR:             277302
    Reported by:    Martin Birgmeier <d8zNeCFG@aon.at>

 graphics/qgis/Makefile  |   1 +
 graphics/qgis/pkg-plist | 236 ++++++++++++++++++++++++------------------------
 2 files changed, 119 insertions(+), 118 deletions(-)
Comment 2 Rainer Hurling freebsd_committer freebsd_triage 2024-02-25 19:43:40 UTC
Hi Martin,
Many thanks for the detailed report! This is one of those errors that cannot be found easily with the usual tests, but usually only at runtime.

This message comes from the "GRASS GIS provider" plugin. This extension was not installed, when option GRASS8 selected. Some changes in pkg-plist fixes it :)
Comment 3 Martin Birgmeier 2024-02-26 18:32:04 UTC
Hi Rainer,

Thank you for the quick fix!

Best regards, Martin