-
Notifications
You must be signed in to change notification settings - Fork 36
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
Couldn't load plugin 'gis4wrf' due to an error when calling its classFactory() method #105
Comments
Thanks for reporting this. The issue here is:
gis4wrf started the package update process likely after QGIS was updated from 3.2 to 3.4 (in detail, QGIS switched to Python 3.7 from 3.6 which means we need to reinstall package dependencies). Ideally, cftime would not make such faulty releases, but ok, it may happen for various reasons. To prevent such issues we are installing specific known good versions of Python packages, but we don't force the same for the dependencies of these packages. The solution is to pin the version numbers for all the transitive dependencies as well, if they are binary packages (since pure Python packages will not have such issues). As a quick work-around to get you going before we implement a patch, please close QGIS and run the following from a command prompt window: C:\OSGeo4W64\bin\python-qgis.bat -m pip install --prefix C:\Users\liuch\AppData\Local\gis4wrf\python37 f90nml==1.0.2 netCDF4==1.4.2 cftime==1.0.2.1 https://ci.appveyor.com/api/buildjobs/o3ow5itmyi8nhhk2/artifacts/wrf_python-1.1.2-cp37-cp37m-win_amd64.whl Then re-open QGIS. gis4wrf should now be happy and not try to install any packages. |
Note that cftime has now released Windows binary wheels, which resolves this issue and doesn't require the temporary work-around anymore that I mentioned. This means other Windows users won't be affected by this immediate issue for now, but we should still change gis4wrf to pin versions in order to eliminate future problems like that. |
Thank you, the issue can be solved by this. This is a very powerful work, may be some output visualization can give a 3D view. |
@dmey No, let's create a separate issue that deals with improving dependency installation. |
Couldn't load plugin 'gis4wrf' due to an error when calling its classFactory() method
The text was updated successfully, but these errors were encountered: