- edited description
Plugin installation OSError
Issue #829
resolved
Re-installing EnMAPBox (zip) raises Error up to 4 times.
observed on conda installation (windows, macOS)
OSError: could not get source code
Traceback (most recent call last):
File "/Users/jakimowb/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/site-packages/typeguard/__init__.py", line 903, in wrapper
retval = func(*args, **kwargs)
File "/Users/jakimowb/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapboxprocessing/algorithm/fitclassifieralgorithmbase.py", line 44, in initAlgorithm
self.addParameterClassificationDataset(self.P_DATASET, self._DATASET, None, True)
File "/Users/jakimowb/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapboxprocessing/algorithm/fitclassifieralgorithmbase.py", line 48, in defaultCodeAsString
lines = [line[8:] for line in inspect.getsource(self.code).split('\n')][1:-2]
File "/Users/jakimowb/miniconda3/envs/qgis_stable/lib/python3.7/inspect.py", line 973, in getsource
lines, lnum = getsourcelines(object)
File "/Users/jakimowb/miniconda3/envs/qgis_stable/lib/python3.7/inspect.py", line 955, in getsourcelines
lines, lnum = findsource(object)
File "/Users/jakimowb/miniconda3/envs/qgis_stable/lib/python3.7/inspect.py", line 786, in findsource
raise OSError('could not get source code')
OSError: could not get source code
Comments (4)
-
reporter -
Has nothing to do with typeguard, but with the inspect modul. I’ll wrap it into a try-except-block. After a QGIS restart, everything should be fine again.
-
- changed status to resolved
resolves
#829→ <<cset 4f6a8a66f93f>>
-
- changed title to Plugin installation OSError
- changed version to 3.9
- Log in to comment