add netCDF dependency required by ONNS app

Issue #373 resolved
Andreas Janz created an issue

ModuleNotFoundError: No module named 'netCDF4'

Comments (7)

  1. Benjamin Jakimow

    I expect it, as gdal uses it’s own netCDF lib. Please test it first before you add the netcdf4 dependency to the requirements.txt

  2. Andreas Janz reporter

    Works for me.

    C:\QGIS>pip install netCDF4 --user
    Collecting netCDF4
      Downloading https://files.pythonhosted.org/packages/60/b8/0f894968c6f97e2e6d0b80a888238c492d7538799932dd1ec166e32459df/netCDF4-1.5.3-cp37-cp37m-win_amd64.whl (3.1MB)
         |████████████████████████████████| 3.1MB 1.6MB/s
    Collecting cftime
      Downloading https://files.pythonhosted.org/packages/b5/35/b34a88f7560c88cf46f5a26a2d8a34759208d47eb2ff85cbb79a7d8c8908/cftime-1.1.1.1-cp37-none-win_amd64.whl (213kB)
         |████████████████████████████████| 215kB 6.4MB/s
    Requirement already satisfied: numpy>=1.7 in c:\qgis\apps\python37\lib\site-packages (from netCDF4) (1.17.3)
    Installing collected packages: cftime, netCDF4
      WARNING: The scripts nc3tonc4.exe, nc4tonc3.exe and ncinfo.exe are installed in 'C:\Users\janzandr\AppData\Roaming\Python\Python37\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Successfully installed cftime-1.1.1.1 netCDF4-1.5.3
    
    C:\QGIS>
    

  3. Log in to comment