Replies: 3 comments
-
I tried with the same process with the Goteborg_SWEREF99_1200 dataset and received the same error. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It is solved by choosing extent from layer! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Great that you solved it. How did you select your extent when you got the error? Maybe there is a bug in the system that we need to fix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to generate DSM by DSM Generator but the I got the following Python error:
2022-06-23T13:14:34 WARNING Traceback (most recent call last):
File "C:\Users/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP\DSMGenerator\dsm_generator.py", line 645, in start_progress
dsm_array = np.array(dsm_raster.ReadAsArray().astype(np.float))
AttributeError: 'NoneType' object has no attribute 'ReadAsArray'
I am new user of UMEP with little knwoledge of python. My questions are:

I would appreciate your help!
Here are some other details that might be helpful to figure out this issue
Under Log Messages I have the following tabs:
Python warning
2022-06-23T13:11:49 WARNING warning:D:\PROGRA
1/QGIS321.3/apps/qgis/./python\qgis\utils.py:888: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative usesmod = _builtin_import(name, globals, locals, fromlist, level)
2022-06-23T13:11:49 WARNING warning:D:\PROGRA
1\QGIS321.3\apps\Python39\lib\site-packages\scipy_init_.py:138: UserWarning: A NumPy version >=1.16.5 and warnings.warn(f"A NumPy version >={np_minversion} and ", line 1, inFile "D:\PROGRA
1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 443, in startPluginif not _startPlugin(packageName):
File "D:\PROGRA
1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 423, in startPluginplugins[packageName] = package.classFactory(iface)
File "C:\Users/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP_init.py", line 34, in classFactory
from .UMEP import UMEP
File "D:\PROGRA
1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 888, in _importmod = _builtin_import(name, globals, locals, fromlist, level)
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/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP\UMEP.py", line 33, in
from .ImageMorphParam.image_morph_param import ImageMorphParam
File "D:\PROGRA
1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 888, in _importmod = _builtin_import(name, globals, locals, fromlist, level)
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/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP\ImageMorphParam\image_morph_param.py", line 36, in
from ..Utilities.imageMorphometricParms_v1 import *
File "D:\PROGRA
1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 888, in _importmod = _builtin_import(name, globals, locals, fromlist, level)
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/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP\Utilities\imageMorphometricParms_v1.py", line 28, in
import scipy.ndimage.interpolation as sc
File "D:\PROGRA
1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 888, in _importmod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
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 "D:\PROGRA
1\QGIS321.3\apps\Python39\lib\site-packages\scipy_init.py", line 138, inwarnings.warn(f"A NumPy version >={np_minversion} and
2022-06-23T13:11:52 WARNING warning:C:\Users\Niusha\AppData\Roaming\Python\Python39\site-packages\pandas\core\reshape\merge.py:916: FutureWarning: In a future version, the Index constructor will not infer numeric dtypes when passed object-dtype sequences (matching Series behavior)
key_col = Index(lvals).where(~mask_left, rvals)
2022-06-23T13:14:34 WARNING warning:C:\Users/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP\DSMGenerator\dsm_generator.py:643: DeprecationWarning:
np.float
is a deprecated alias for the builtinfloat
. To silence this warning, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
dem_array = np.array(dem_raster.ReadAsArray().astype(np.float))
General
2022-06-23T13:11:52 INFO UMEP - SuPy Version installed: 2022.4.7
2022-06-23T13:11:56 INFO Application state:
QGIS_PREFIX_PATH env var: D:/PROGRA
1/QGIS321.3/apps/qgisPrefix: D:/PROGRA
1/QGIS321.3/apps/qgisPlugin Path: D:/PROGRA
1/QGIS321.3/apps/qgis/pluginsPackage Data Path: D:/PROGRA
1/QGIS321.3/apps/qgis/.Active Theme Name: default
Active Theme Path: D:/PROGRA
1/QGIS321.3/apps/qgis/./resources/themes\default\icons/Default Theme Path: :/images/themes/default/
SVG Search Paths: D:/PROGRA
1/QGIS321.7/apps/qgis-ltr/./svg/C:/Users/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/svg/
C:/PROGRA
1/QGIS321.7/apps/qgis-ltr/./svg/D:/PROGRA
1/QGIS321.3/apps/qgis/./svg/User DB Path: D:/PROGRA
1/QGIS321.3/apps/qgis/./resources/qgis.dbAuth DB Path: C:/Users/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis-auth.db
Plugins
2022-06-23T13:11:53 INFO Loaded UMEP (package: UMEP)
2022-06-23T13:11:53 INFO Loaded DB Manager (package: db_manager)
2022-06-23T13:11:54 INFO Loaded GRASS GIS provider (package: grassprovider)
2022-06-23T13:11:54 INFO Loaded MetaSearch Catalog Client (package: MetaSearch)
2022-06-23T13:11:55 INFO Loaded Processing (package: processing)
2022-06-23T13:11:56 INFO Loaded SAGA GIS provider (package: sagaprovider)
Messages
2022-06-23T13:14:34 WARNING Python error : An error has occurred while executing Python code: See message log (Python Error) for more details.
Python error
2022-06-23T13:14:34 WARNING Traceback (most recent call last):
File "C:\Users/Niusha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP\DSMGenerator\dsm_generator.py", line 645, in start_progress
dsm_array = np.array(dsm_raster.ReadAsArray().astype(np.float))
AttributeError: 'NoneType' object has no attribute 'ReadAsArray'
Beta Was this translation helpful? Give feedback.
All reactions