Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when running PRISMA L2D import in batch #584

Closed
danschef opened this issue Aug 31, 2023 · 4 comments · Fixed by #586
Closed

TypeError when running PRISMA L2D import in batch #584

danschef opened this issue Aug 31, 2023 · 4 comments · Fixed by #586
Assignees
Labels
bug Something isn't working
Milestone

Comments

@danschef
Copy link
Contributor

EnMAP-Box 3.13.alpha0
QGIS 3.32.2

When I run the PRISMA L2D import tool in batch processing, I get a TypeError, although I think the parameters are set correctly:

Verarbeite Algorithmus 1/2Algorithmus Import PRISMA L2D product startetEingabeparameter:
{"badBandThreshold":null,"badPixelType":[0],"file":"X:\\PRISMA\\Demmin\\PRS_L2D_STD_20220530102458_20220530102503_0001.he5","outputPrismaL2D_panCube":"","outputPrismaL2D_panErrorMatrix":"","outputPrismaL2D_panGeolocationFields":"","outputPrismaL2D_spectralCube":"X:/HS_ARD/Demmin/PRS_L2D_STD_20220530102458_20220530102503_0001.bsq","outputPrismaL2D_spectralErrorMatrix":"","outputPrismaL2D_spectralGeolocationFields":"","outputPrismaL2D_spectralGeometricFields":"","spectralRegion":0}

Traceback (most recent call last):
File "D:\Programme\mambaforge\envs\enpt_full_dev\Lib\site-packages\typeguard\__init__.py", line 1033, in wrapper
retval = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/danschef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxprocessing\algorithm\importprismal2dalgorithm.py", line 141, in processAlgorithm
filenameSpectralGeolocation = self.parameterAsOutputLayer(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Programme\mambaforge\envs\enpt_full_dev\Lib\site-packages\typeguard\__init__.py", line 1033, in wrapper
retval = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/danschef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxprocessing\enmapalgorithm.py", line 429, in parameterAsOutputLayer
if not isabs(filename):
^^^^^^^^^^^^^^^
File "<frozen ntpath>", line 89, in isabs
TypeError: expected str, bytes or os.PathLike object, not QgsProcessingOutputLayerDefinition

Algorithmus Import PRISMA L2D product gescheitertAusführung nach 0.196 Sekunden gescheitert

Verarbeite Algorithmus 2/2Algorithmus Import PRISMA L2D product startetEingabeparameter:
{"badBandThreshold":null,"badPixelType":[0],"file":"X:\\PRISMA\\Demmin\\PRS_L2D_STD_20220709101510_20220709101515_0001.he5","outputPrismaL2D_panCube":"","outputPrismaL2D_panErrorMatrix":"","outputPrismaL2D_panGeolocationFields":"","outputPrismaL2D_spectralCube":"X:/HS_ARD/Demmin/PRS_L2D_STD_20220709101510_20220709101515_0001.bsq","outputPrismaL2D_spectralErrorMatrix":"","outputPrismaL2D_spectralGeolocationFields":"","outputPrismaL2D_spectralGeometricFields":"","spectralRegion":0}

Traceback (most recent call last):
File "D:\Programme\mambaforge\envs\enpt_full_dev\Lib\site-packages\typeguard\__init__.py", line 1033, in wrapper
retval = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/danschef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxprocessing\algorithm\importprismal2dalgorithm.py", line 141, in processAlgorithm
filenameSpectralGeolocation = self.parameterAsOutputLayer(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Programme\mambaforge\envs\enpt_full_dev\Lib\site-packages\typeguard\__init__.py", line 1033, in wrapper
retval = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/danschef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxprocessing\enmapalgorithm.py", line 429, in parameterAsOutputLayer
if not isabs(filename):
^^^^^^^^^^^^^^^
File "<frozen ntpath>", line 89, in isabs
TypeError: expected str, bytes or os.PathLike object, not QgsProcessingOutputLayerDefinition

Algorithmus Import PRISMA L2D product gescheitertAusführung nach 0.06 Sekunden gescheitert
Stapelverarbeitung nach 0.308 Sekunden abgeschlossen
2 Ausführungen gescheitert. Mehr Details im Protokoll.
@janzandr
Copy link
Contributor

Confirmed

@janzandr janzandr self-assigned this Aug 31, 2023
@janzandr janzandr added the bug Something isn't working label Aug 31, 2023
@janzandr janzandr added this to the 3.13.0 milestone Aug 31, 2023
@janzandr
Copy link
Contributor

@jakimowb can you quickly fix #585?

janzandr added a commit that referenced this issue Aug 31, 2023
@janzandr janzandr linked a pull request Aug 31, 2023 that will close this issue
janzandr added a commit that referenced this issue Aug 31, 2023
@danschef
Copy link
Contributor Author

Thanks @janzandr for the quick fix.

@janzandr
Copy link
Contributor

Is already available here: https://github.com/EnMAP-Box/enmap-box/releases/tag/v3.13-alpha.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants