No module named 'enmapboxtestdata'

Issue #699 resolved
Fabian Thiel created an issue

Import statement of enmapboxtestdata in prepareclassificationdatasetfromfilesalgorithm.py` inhibits correct loading of EnMAP-Box provider (as testdata is never installed on fresh install of plugin)

Current development edition Version 3.8.20210830T135528.develop

EnMAPBoxApplication error(s): 
classificationworkflowapp: 
ModuleNotFoundError:No module named 'enmapboxtestdata'
Traceback:
File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\applications.py", line 276, in addApplicationFolder
appModule = importlib.import_module(appPkgName)
File "C:\OSGeo4W\apps\Python39\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 855, in exec_module
File "", line 228, in _call_with_frames_removed
File "C:\Users\thielf54\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\coreapps\classificationworkflowapp\__init__.py", line 4, in 
from classificationworkflowapp.classificationworkflowgui import ClassificationWorkflowGui
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 799, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users\thielf54\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\coreapps\classificationworkflowapp\classificationworkflowgui.py", line 24, in 
from enmapboxprocessing.algorithm.algorithms import algorithms
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 799, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxprocessing\algorithm\algorithms.py", line 47, in 
from enmapboxprocessing.algorithm.prepareclassificationdatasetfromfilesalgorithm import \
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 799, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxprocessing\algorithm\prepareclassificationdatasetfromfilesalgorithm.py", line 12, in 
from enmapboxtestdata import landcover_points, dataset_x_csv, dataset_y1_csv
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 799, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)

Comments (2)

  1. Fabian Thiel reporter

    After installation of the testdata the following error shows up:

    2021-09-10T14:14:45     CRITICAL    Unable to load enmapboxgeoalgorithms.algorithms
                 cannot import name 'dataset_x_csv' from 'enmapboxtestdata' (C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxtestdata\__init__.py)
    

  2. Log in to comment