openclimatefix / analysis-dashboard

This is a Streamlit app for the OCF team that reports database statistics
MIT License
2 stars 6 forks source link

I am having problems in installation while setting up the project. #226

Open Sahil-Chhoker opened 1 week ago

Sahil-Chhoker commented 1 week ago

Unable to install package pygrib. Error contains: eccodes not found which I installed using conda. Microsoft Visual C++ 14.0 or greater is required. which also I have installed. --proof: image

Here is the complete error:

Building wheels for collected packages: pygrib
  Building wheel for pygrib (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pygrib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      eccodes not found, build may fail...
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-311\pygrib
      copying src\pygrib\__init__.py -> build\lib.win-amd64-cpython-311\pygrib
      running build_ext
      <string>:18: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************

      !!
      C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-mn706q2z\overlay\Lib\site-packages\Cython\Compiler\Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: C:\Users\Lenovo\AppData\Local\Temp\pip-install-oyr7x6e1\pygrib_df6a9faaa73c4c9989f7dd1248ac782d\src\pygrib\_pygrib.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      warning: src\pygrib\_pygrib.pyx:358:12: Unreachable code
      Compiling src/pygrib/_pygrib.pyx because it changed.
      [1/1] Cythonizing src/pygrib/_pygrib.pyx
      building 'pygrib._pygrib' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pygrib
Failed to build pygrib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pygrib)
peterdudfield commented 1 week ago

Try removing geopandas and see if that works? I must admit, I have only installed in on a Mac

Sahil-Chhoker commented 6 days ago

@peterdudfield Thanks for taking time to propose a solution to my issue but it still gives the same error.

peterdudfield commented 5 days ago

you could run this in docker? Some other solutions here - https://stackoverflow.com/questions/35640117/installing-pygrib-package