-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error when trying to install UMEP Plugin in QGIS (MacBookPro) #240
Comments
osr is a common library connected to gdal. Should be present if gdal is functioning proparly. This seems to be a Mac-related issue. @sunt05 , do you have any idea? |
Could be a bug introduced by the upstream package: We might need to fix this by changing @helenwillems Can you please test in the QGIS python console if the following works: If so, then we can try a fix at the UMEP side. Otherwise, it could be that your QGIS installation was not properly done. |
And this comment OSGeo/gdal#3149 (comment) might be useful @biglimp |
@sunt05 I changed import osr (and import ogr) to from osgeo import osr (ogr) and now get the following error message:
|
It looks your QGIS installation is broken. Maybe reinstall QGIS and try again. |
I'll try. |
@helenwillems yes, we'll do once this error is better understood. |
@biglimp it seems I can use both And based on the GDAL API page, the API has long been flavoured as so I think at least we should try to use |
In 3.18 as well (both can be used). Lets change to |
Error also occurs using Ubuntu 20.04 and QGIS v3.18. UMEP installed/loaded when I commented out in UMEP.py: from .UMEPDownloader.umep_downloader import UMEP_Data_Download |
Try now with new version 3.16.1 (development release). https://umep-docs.readthedocs.io/en/latest/Getting_Started.html#installing-development-release-could-be-unstable |
UMEP 3.16.1 opened OK in QGIS 3.18 But "SUEWS Prepare" did not work: AttributeError: module 'time' has no attribute 'clock' 2021-03-05T16:42:14 WARNING Traceback (most recent call last): |
import time Does this mean something? Deprecated Function: time.clock() |
Now works by adding this to book.py: try: and replacing time.clock() with perf_counter as attached, book.py that I used |
@biglimp: really sorry for my stupid questions.., but I am not even successful downloading UMEP from a zip file. and then: I don't know what it means: The main branch at the moment is SuPy-QGIS3. Probably something where I should locate the zip (or the usual folder)?! can you please give me a hint (or two..)? |
No worries. We should make the instructions more clear on our webpage.
Let me know if you have any issues. |
@biglimp: thx for your patient.. When I choose download as zip-file, it gives me no zip file, but a usual folder called "UMEP-SuPy-QGIS3" with subfolders etc. and then when I try to install the UMEP plugin in QGIS from a ZIP, I can't choose this folder "UMEP-SuPy-QGIS3" (prob bc its no zip file?!). I also tried to make a zip from the "UMEP-SuPy-QGIS3" folder on my own, but when I choose that zip-file in QGIS, it gives me the error: "Die ZIP-Datei ist keine gültige QGIS-Pythonerweiterung. Kein Wurzelverzeichnis wurde darin gefunden." like - this zip file is no valid QGIS-python-add-on. No root directory found.. |
Just to confirm, You are clicking on the Download Zip shown in the screendump below? If yes, I cannot really replicate this. I am getting a zip file which works in QGIS Plugin Manager. I attach my zip-file for you to use. |
Yes. Was just the same with your zip-file.. Now I got the problem. It was the automatic unzip function in safari browser that didn't give me the zip-file... Now it works. |
I am also a mac user, new to QGIS and UMEP. I am having a similar issue with the UMEP plug-in install. I've tried re-installing QGIS (v 3.16.4-Hannover) and then installing the UMEP plug-in from the zip file on github. Still not working. Here's the error:
|
@cdbell01 might be useful if you don't have XQuartz installed: |
@sunt05 Thank you for the response.
When I install it from the .zip file, I do not get a specific error message, just a notification that it failed. Did installing from the .zip solve @helenwillems issue? I've tried uninstalling/reinstalling QGIS a few times. |
@cdbell01 For me it works now. But I first did a system upgrade to MacOS Big Sur, then completely deinstalled and reinstalled QGIS 3.16.4 Hannover and then load the UMEP from the .zip file. |
Yes! Got the UMEP plug-in to work after uninstall/reinstall of QGIS and loading the plug in from the .zip file posted to this thread. Not sure what was different about my 5th uninstall/re-install of QGIS 3.16.4 - but happy it's working. Thanks so much everybody - you have an amazing community here. |
glad to see the issue has been resolved. However, here I just want to clarify several points:
Apparently, installing XQuartz did help as the issue here is actually a new one and not related to the one originally reported.
|
@cdbell01 please consider closing this issue if things are working now. thanks! |
@sunt05 I think it is @helenwillems issue to close. Thanks again. |
Specs.: macOS Catalina Version 10.15.3, MacBook Pro (16-inch, 2019)
Anyone an idea what it is about the osr module?
Thx for any suggestions..
cheers Helen
The text was updated successfully, but these errors were encountered: