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

conda installation #3

Open
AnnaWojciechowska opened this issue Jul 10, 2021 · 2 comments
Open

conda installation #3

AnnaWojciechowska opened this issue Jul 10, 2021 · 2 comments

Comments

@AnnaWojciechowska
Copy link

Hello,
I have tried to install the package. I experimented with diffrent ways - starting from recommended conda. I have installed ubuntu 20, new annadonda and followed your instructions. It fails.
I also tried pip install -e, and pip install git+ repo addres, as well as building from the scratch. All versions failed, usually missing headers or iplib which seems been moved to different folder.
Building wgrib2 on other machine worked, same for pywgrib2_s. Seems the issures are with xr version.

base) anna@ubuntu:~/Downloads$ conda install -c yt87 pywgrib2_xr
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

  • feature:/linux-64::__glibc==2.31=0
  • feature:|@/linux-64::__glibc==2.31=0
  • pywgrib2_xr -> libgcc-ng[version='>=9.3.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.31

@yt87
Copy link
Owner

yt87 commented Jul 10, 2021

pywgrib2_xr is built in conda-forge environment. Those errors happen when some dependent packages are installed from the main channel. This is a bug, the following commands fail:

$ conda create -c conda-forge -n pywgrib2 python=3.9
$ conda install -c yt87 pywgrib2_xr

As a workaround, try:

$ conda create -c conda-forge -n pywgrib2 python=3.9
$ conda install -c conda-forge -c yt87 pywgrib2_xr

Or, add conda-forge in to your .condarc:

$ cat ~/.condarc
channel_priority: strict
channels:
  - conda-forge
  - defaults

@AnnaWojciechowska
Copy link
Author

AnnaWojciechowska commented Jul 11, 2021 via email

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