Skip to content
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

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

Open
Sahil-Chhoker opened this issue Nov 21, 2024 · 3 comments
Open

Comments

@Sahil-Chhoker
Copy link

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
Copy link
Contributor

peterdudfield commented Nov 21, 2024

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

@Sahil-Chhoker
Copy link
Author

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

@peterdudfield
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants