Closed biglimp closed 1 year ago
There is already a try / catch statement but that returns an import error (https://github.com/UMEP-dev/UMEP-processing/blob/64173c7aaec8f3d98c40ce0194f5db4eef2d0384/functions/URock/H2gisConnection.py#L24).
We might remove the ImportError and pass since the user should normally got a message if the installation of the packages failed ?
Otherwise maybe it is possible to stop the program and inform the user at the end of the installation of all needed libraries that it is needed to restart QGIS before to use UMEP ? Not sure this can work.
pass didn't work. I am not sure how to stop the program.
Why is this happening? Is jaydebeapi dependent on something else as no other import is problematic when missing libs are installed using umep-reqs, e.g. numba and supy?
If you just except pass you get the same error ? Have you reload the plugin after that and also QGIS ?
Yes, same error. I used a fresh computer in our studentlab so I do not have admin rights. As a work around we can inform users that they will see an error message but this will go away if the restart QGIS. One issue is that the plugin is not activated then so you need to open Manage and Install Plugins and tick in the tool to make it work.
I tried to restart QGIS but it is still the same error.
Hi all, I've encountered this same error from locate_py(), due I think to the fact that my system doesn't have a value for os.environ["PYTHONHOME"], but instead has os.environ["PYTHONPATH"].
Thank you for sharing @bweeding. Have you tried modifying the locate_py to see if the error disappear ?
It's on my to do list haha!
I have pushed a new version with the modifications for those willing to have a try: https://github.com/j3r3m1/UMEP-processing/archive/refs/heads/main.zip
I just checked on my laptop by commenting out the code of locate_py() and setting the function to just return my local python path and QGIS loaded without error messages.
I have pushed a new version with the modifications for those willing to have a try: https://github.com/j3r3m1/UMEP-processing/archive/refs/heads/main.zip
Ah the issue for me was in urock_processing_main. Is that deprecated now?
ha ha yes it's getting quite old now, URock is in UMEP since April 2023
This pops up when Installing UMEP for the first time. After restarting QGIS this error message goes away.
Is there anyway of including a try statement to get rid of this?