-
assigned issue to
when running from enmapbox/__main__.py, spectral profile import/export dialogs not working
Comments (14)
-
reporter -
- changed status to resolved
resolves
#738Signed-off-by: Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de benjamin.jakimow@geo.hu-berlin.de
→ <<cset d90451ea4844>>
-
reporter at least on my system, running enmapbox/__main__.py is crashing now:
Process finished with exit code -1073740940 (0xC0000374)
-
reporter Looks like the crash we observed earlier in the shared screen session, where we tried to use initAll():
from enmapbox import EnMAPBox, initAll from enmapbox.testing import start_app qgsApp = start_app() initAll() enmapBox = EnMAPBox(None) #enmapBox.openExampleData() qgsApp.exec_()
When skipping the initAll(), the Box is starting, but the import/export dialogs aren’t working.
-
reporter - changed status to open
-
Can you start it from terminal?
Cam you start it from a clean environment (EnMAP Box Repo only, source folders as described in repo docs)? Please list your environment / sys.path -
reporter Ok, I think I can reproduce it, and it is not random as I thought:
At this point:
func.name() is “'format_py“, and when evaluating
QgsExpression.isFunctionName(func.name())
it chrashes:
-
reporter Benjamin, does that help? Or shall we have a shared screen debugging session?
-
Indeed a very good hint. I restructured the registration of QgsExpressionFunctions, for which Python instances have to be stored (of course) and, in this case, got overwritten.
-
- changed status to resolved
refactored QgsExpressionFunction registration resolves
#738→ <<cset 5172e94a916c>>
-
resolves
#738→ <<cset 8ce6921f2998>>
-
refactored QgsExpressionFunction registration resolves
#738→ <<cset 5172e94a916c>>
-
resolves
#738→ <<cset 8ce6921f2998>>
-
reporter Works fine now, thanks!
- Log in to comment