-
Notifications
You must be signed in to change notification settings - Fork 16
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
Pixel Profile: Spectral Library Viewer does not open #488
Comments
I can reproduce it |
@jakimowb I also just ran into this with QGIS 3.30, Python 3.11, EnMAP-Box 3.130-alpha-0, and Windows 11. |
The problem can be reduced to: from qgis.core import QgsMarkerSymbol, QgsSingleSymbolRenderer, QgsFeatureRenderer
symbol = QgsMarkerSymbol.createSimple({'name': 'square', 'color': 'white'})
renderer = QgsSingleSymbolRenderer(symbol)
assert isinstance(renderer, QgsFeatureRenderer) Maybe this is a problem of the conda QGIS / python version? |
Signed-off-by: jakimowb <[email protected]>
I reproduced this with different QGIS versions installed frm conda-forge (
So it looks like a quick-fix would be to pin QGIS to The question is only if this comes from qgis itself or from the conda-forge packaging. |
@danschef maybee it is caused by the python version? Here are my OSGeo results: import sys
from qgis.core import Qgis, QgsMarkerSymbol, QgsSingleSymbolRenderer
print(sys.version)
print(Qgis.versionInt())
symbol = QgsMarkerSymbol.createSimple({'name': 'square', 'color': 'white'})
renderer = QgsSingleSymbolRenderer(symbol)
|
No, I guess it is a packaging issue with the conda-forge builds. QGIS 3.28.8 + Python 3.9.16 from conda-forge also fails. |
Lets see is anyone from the qgis-feedstock maintainers has an idea. |
@jakimowb |
added conda recipes Signed-off-by: jakimowb <[email protected]>
@danschef there are probably many more cases where the conda build fail: conda-forge/qgis-feedstock#346 (comment) |
So far I found these examples
|
smaller fixes
I tested the fixed conda-forge build of QGIS 3.32.1 on Windows and Linux and I can confirm that it fixes this issue here (see conda-forge/qgis-feedstock#346). Version 3.28.9 (should be the stable release) was tested by @SrNetoChan. So, I think we can close this. |
However, it might make sense to update your conda environment files to make sure the right builds are picked. |
For updating qgis ltr, you may need to search for all builds for 3.28.9 conda search qgis=3.28.9 -c conda-forge Choose the one that match your env pinned python (bellow is 3.11) and with a build number 1 suffix (_1) and do something like conda install qgis=3.28.9=py311hf5818de_1 |
closed by #613 (updated conda environments in |
Clicking the Pixel Profile button throws a python error
TypeError: QgsSingleSymbolRenderer(): not enough arguments
and the Spectral Library Viewer does not show up.Steps to reproduce:
conda env create -n enmapbox_full_3.28 -f https://raw.githubusercontent.com/EnMAP-Box/enmap-box/main/.conda/enmapbox_full_3.28.yml
--> Version 3.12.1 Code d96477c01d1Identify pixel profile..
--
Stacktrace
The text was updated successfully, but these errors were encountered: