Dialog error when adding a new layer after having another one already added
When a layer has been added, and we go back to georaster dialog, python stack trace
2022-06-16T08:42:51 WARNING warning:C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\PyQt5\uic\objcreator.py:152: DeprecationWarning: 'U' mode is deprecated
plugin = open(filename, 'rU')
traceback: File "", line 1, in
File "C:/PROGRA~1/QGIS3~1.18/apps/qgis/./python\qgis\utils.py", line 355, in startPlugin
if not _startPlugin(packageName):
File "C:/PROGRA~1/QGIS3~1.18/apps/qgis/./python\qgis\utils.py", line 335, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/OlivierDubois/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\oscars-georaster-qgis-plugin\__init__.py", line 35, in classFactory
from .oscars_georaster_plugin import ogeoraster
File "C:/PROGRA~1/QGIS3~1.18/apps/qgis/./python\qgis\utils.py", line 799, 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 "C:/Users/OlivierDubois/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\oscars-georaster-qgis-plugin\oscars_georaster_plugin.py", line 31, in
from .oscars_georaster_dialog import ogeorasterDialog
File "C:/PROGRA~1/QGIS3~1.18/apps/qgis/./python\qgis\utils.py", line 799, 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 "C:/Users/OlivierDubois/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\oscars-georaster-qgis-plugin\oscars_georaster_dialog.py", line 42, in
os.path.dirname(__file__), 'oscars_georaster_dialog.ui'))
File "C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\PyQt5\uic\__init__.py", line 198, in loadUiType
winfo = compiler.UICompiler().compileUi(uifile, code_string, from_imports, resource_suffix, import_from)
File "C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\PyQt5\uic\Compiler\compiler.py", line 53, in __init__
qtproxies.QtWidgets, CompilerCreatorPolicy())
File "C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\PyQt5\uic\uiparser.py", line 177, in __init__
self.factory = QObjectCreator(creatorPolicy)
File "C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\PyQt5\uic\objcreator.py", line 85, in __init__
if self.load_plugin(filename, plugin_globals, plugin_locals):
File "C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\PyQt5\uic\objcreator.py", line 152, in load_plugin
plugin = open(filename, 'rU')
and
2022-06-16T09:17:13 WARNING Traceback (most recent call last):
File "C:/Users/OlivierDubois/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\oscars-georaster-qgis-plugin\oscars_georaster_plugin.py", line 243, in run
IndexError: list index out of range