gvellut / FreehandRasterGeoreferencer

QGIS plugin for the interactive georeferencing of rasters
GNU General Public License v2.0
50 stars 13 forks source link

errors on load in QGIS 3.8 on Mac #29

Closed gubuntu closed 5 years ago

gubuntu commented 5 years ago
2019-08-24T17:50:43     WARNING    warning:/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/qgis/utils.py:737: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
              mod = _builtin_import(name, globals, locals, fromlist, level)

             traceback: File "", line 1, in 
              File "/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 354, in startPlugin
              if not _startPlugin(packageName):
              File "/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 334, in _startPlugin
              plugins[packageName] = package.classFactory(iface)
              File "/Users/gavinfleming/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer/__init__.py", line 24, in classFactory
              from .freehandrastergeoreferencer import FreehandRasterGeoreferencer
              File "/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "/Users/gavinfleming/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer/freehandrastergeoreferencer.py", line 24, in 
              from .freehandrastergeoreferencer_layer import (FreehandRasterGeoreferencerLayer,
              File "/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "/Users/gavinfleming/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer/freehandrastergeoreferencer_layer.py", line 16, in 
              from osgeo import gdal
              File "/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/osgeo/__init__.py", line 21, in 
              _gdal = swig_import_helper()
              File "/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/osgeo/__init__.py", line 8, in swig_import_helper
              import imp
              File "/Applications/QGIS3.8.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "/Applications/QGIS3.8.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/imp.py", line 33, in 
              DeprecationWarning, stacklevel=2)
gvellut commented 5 years ago

Thank you for your feedback.

This is only a warning so it shouldn't affect how the plugin runs. Also the issue is inside a library provided by QGIS so there is little I can do in the plugin itself. Anyway, according to PEP 594, it should still run fine until Python 3.10 is released.