cxcandid / GeorefExtension

Extension to the QGIS Raster Georeferencer Plugin
GNU General Public License v3.0
3 stars 0 forks source link

Test on Linux: Nothing shows up #2

Closed Bernd-Vogelgesang closed 3 months ago

Bernd-Vogelgesang commented 3 months ago

Created new profile. Installed plugin Python Warning:

2024-06-07T08:07:40     WARNING    warning:/home/bernd/.local/share/QGIS/QGIS3/profiles/georeftest/python/plugins/GeorefExtension/GeorefExtension_dialog.py:54: SyntaxWarning: invalid escape sequence '\d'
              regex = QRegExp("[-]{0,1}\d+")

             traceback: File "", line 1, in 
              File "/home/bernd/miniforge3/envs/qgis_3.34/share/qgis/python/pyplugin_installer/installer.py", line 284, in showPluginManagerWhenReady
              iface.pluginManagerInterface().showPluginManager(tabIndex)
              File "", line 1, in 
              File "/home/bernd/miniforge3/envs/qgis_3.34/share/qgis/python/pyplugin_installer/installer.py", line 360, in installPlugin
              if startPlugin(plugin["id"]):
              File "/home/bernd/miniforge3/envs/qgis_3.34/share/qgis/python/qgis/utils.py", line 443, in startPlugin
              if not _startPlugin(packageName):
              File "/home/bernd/miniforge3/envs/qgis_3.34/share/qgis/python/qgis/utils.py", line 423, in _startPlugin
              plugins[packageName] = package.classFactory(iface)
              File "/home/bernd/.local/share/QGIS/QGIS3/profiles/georeftest/python/plugins/GeorefExtension/__init__.py", line 36, in classFactory
              from .GeorefExtension import GeorefExtension
              File "/home/bernd/miniforge3/envs/qgis_3.34/share/qgis/python/qgis/utils.py", line 888, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 1360, in _find_and_load
              File "", line 1331, in _find_and_load_unlocked
              File "", line 935, in _load_unlocked
              File "", line 995, in exec_module
              File "", line 488, in _call_with_frames_removed
              File "/home/bernd/.local/share/QGIS/QGIS3/profiles/georeftest/python/plugins/GeorefExtension/GeorefExtension.py", line 39, in 
              from .GeorefExtension_dialog import GeorefExtensionDialog
              File "/home/bernd/miniforge3/envs/qgis_3.34/share/qgis/python/qgis/utils.py", line 888, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 1360, in _find_and_load
              File "", line 1331, in _find_and_load_unlocked
              File "", line 935, in _load_unlocked
              File "", line 991, in exec_module
              File "", line 1129, in get_code
              File "", line 1059, in source_to_code
              File "", line 488, in _call_with_frames_removed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

QGIS-Version | 3.34.3-Prizren | QGIS-Codezweig | Release 3.34 -- | -- | -- | -- Qt-Version | 5.15.8 Python-Version | 3.12.2 Kompiliert mit GDAL/OGR | 3.8.3 | Läuft mit GDAL/OGR | 3.8.4 PROJ-Version | 9.3.1 EPSG-Registraturdatenbankversion | v10.098 (2023-11-24) GEOS-Version | 3.12.1-CAPI-1.18.1 SQLite-Version | 3.45.1 PDAL-Version | 2.6.3 PostgreSQL-Client-Version | unknown SpatiaLite-Version | 5.1.0 QWT-Version | 6.2.0 QScintilla2-Version | 2.14.1 BS-Version | LMDE 6 (faye)   |   |   |   Aktive Python-Erweiterungen db_manager | 0.1.20 MetaSearch | 0.3.6 grassprovider | 2.12.99 processing | 2.12.99 GeorefExtension | 3.0.5 QGIS-Version 3.34.3-Prizren QGIS-Codezweig [Release 3.34](https://github.com/qgis/QGIS/tree/release-3_34) Qt-Version 5.15.8 Python-Version 3.12.2 Kompiliert mit GDAL/OGR 3.8.3 Läuft mit GDAL/OGR 3.8.4 PROJ-Version 9.3.1 EPSG-Registraturdatenbankversion v10.098 (2023-11-24) GEOS-Version 3.12.1-CAPI-1.18.1 SQLite-Version 3.45.1 PDAL-Version 2.6.3 PostgreSQL-Client-Version unknown SpatiaLite-Version 5.1.0 QWT-Version 6.2.0 QScintilla2-Version 2.14.1 BS-Version LMDE 6 (faye) Aktive Python-Erweiterungen db_manager 0.1.20 MetaSearch 0.3.6 grassprovider 2.12.99 processing 2.12.99 GeorefExtension 3.0.5
cxcandid commented 3 months ago

@Bernd-Vogelgesang thank you for testing!

There is obviously a backslash missing in file /home/bernd/.local/share/QGIS/QGIS3/profiles/georeftest/python/plugins/GeorefExtension/GeorefExtension_dialog.py (line 54). Interestingly, QGIS Windows does not complain about this.

Could you please change the code line to regex = QRegExp("[-]{0,1}\\d+") and try again.

Kind regards, Christoph

Bernd-Vogelgesang commented 3 months ago

errm ... I guess, just changing that line in the .py will not do the trick alone, right? Am still a complete noob about everything pythonic (still have 3 years to jump over that stick until my bucket list deadline expires). Please give me a very short instruction.

cxcandid commented 3 months ago

@Bernd-Vogelgesang have you already made the change in the code line? When you open the QGIS Georeferencer, do you see the new tool bar?

Without having QGIS running on Linux, it's really hard for me to help here.

Bernd-Vogelgesang commented 3 months ago

What I did: Changed that line and saved the GeorefExtension_dialog.py Started-up QGIS.


2024-06-08T14:07:11     INFO    Georeferencer Extension geladen (Paket: GeorefExtension)
2024-06-08T14:07:11     INFO    DB Manager geladen (Paket: db_manager)
2024-06-08T14:07:11     INFO    MetaSearch Catalog Client geladen (Paket: MetaSearch)
2024-06-08T14:07:11     INFO    GRASS GIS provider geladen (Paket: grassprovider)
2024-06-08T14:07:12     INFO    Processing geladen (Paket: processing)

2024-06-08T14:07:11     WARNING    warning:/home/bernd/miniforge3/envs/qgis_3.34/lib/python3.12/site-packages/dateutil/tz/tz.py:37: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
              EPOCH = datetime.datetime.utcfromtimestamp(0)
.....

2024-06-08T14:07:12     INFO    Anwendungsstatus:
             QGIS_PREFIX_PATH: /home/bernd/miniforge3/envs/qgis_3.34
             Präfix: /home/bernd/miniforge3/envs/qgis_3.34
             Erweiterungspfad: /home/bernd/miniforge3/envs/qgis_3.34/lib/qgis/plugins
             Paketdatenpfad: /home/bernd/miniforge3/envs/qgis_3.34/share/qgis
             Aktueller Themenname: default
             Aktueller Themenpfad: /home/bernd/miniforge3/envs/qgis_3.34/share/qgis/resources/themes/default/icons/
             Voreingestellter-Themenpfad: :/images/themes/default/
             SVG-Suchpfads: /home/bernd/miniforge3/envs/qgis_3.34/share/qgis/svg/
              /home/bernd/.local/share/QGIS/QGIS3/profiles/georeftest/svg/
             Benutzer-DB-Pfad: /home/bernd/miniforge3/envs/qgis_3.34/share/qgis/resources/qgis.db
             Auth-DB-Pfad: /home/bernd/.local/share/QGIS/QGIS3/profiles/georeftest/qgis-auth.db

2024-06-08T14:07:12     WARNING    Fehler beim Öffnen des ZIP-Archivs: '/tmp/QGIS3.vMojLN' (Fehlercode: 19)

2024-06-08T14:07:12     WARNING    Open Sans Schriftartinstallation gescheitert

But no traces of icons or toolbars to be found.

cxcandid commented 3 months ago

@Bernd-Vogelgesang I'm very sorry. As long as I do not have a Linux environment for debugging, I am unfortunately dependent on other developers who may be able to help here. I think since there is no error message, the routine simply does not find the Georeferencer dialog box.

Bernd-Vogelgesang commented 3 months ago

ahh, now I understand what you mean: When I open the normal Georeferencer window, there is now a rocket icon in the top right. I was under the assumption that there will be a new icon in the main window.