wetterdienst: Conda install fails

I just made a new fresh environment and encountered this error while trying to install using conda.

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
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:/osx-64::__unix==0=0
  - feature:|@/osx-64::__unix==0=0
  - wetterdienst==0.55 -> click[version='>=8.0,<9.0'] -> __unix
  - wetterdienst==0.55 -> click[version='>=8.0,<9.0'] -> __win

Your installed version is: not available

Honestly I have never saw anything like this and it seems pretty cryptic. Any idea what could it be? Local environment or some problem in the requirements?

I can only install wetterdienst up to 0.20.3 in this conda environment.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 26 (26 by maintainers)

Most upvoted comments

Amazing, that seems to also fix some incompatibilities that I had with other packages like basemap, much appreciated.

I think we can close for now

Thank you for your dedication and for finding the root cause. There is not much we can do at Wetterdienst, right? Relaxing the version constraint on timezonefinder will probably not help much, because there just isn’t a Python 3.11 package for it?

Working on it… https://github.com/conda-forge/timezonefinder-feedstock/pull/55 https://github.com/conda-forge/timezonefinder-feedstock/pull/56 https://github.com/conda-forge/timezonefinder-feedstock/pull/57

Apologies that I don’t know too much about the Conda dependency resolver. Would manually installing timezonefinder using pip into the same environment beforehand help in any way? Probably not, because Conda’s dependency resolver would not take that into consideration, or would it?

I would strongly recommend against mixing conda-forge and pip packages. You will get craziness and incompatibility that you really don’t want. It is possible but not a great idea to do this.

@guidocioni, I might be able to help debug if you provide the contents of conda info and conda list.

But the error indicates that in some way your environment is simply not compatible with wetterdienst and its many dependencies. There are 2 things to try. First, please consider using mamba instead of conda as the package solver. Install mamba into your base environment (if it’s not already there), then activate the environment where you want to install wetterdienst and run mamba install wetterdients==0.55. mamba will typically provide a more useful error message about which dependency isn’t working out. Sometimes, it can even solve things that conda can’t.

Second, it is very likely that mamba install... will also fail because your environment simply isn’t compatible with the latest wetterdienst. In general, it isn’t a great idea to keep installing packages into an existing environment. Incompatibilities are almost inevitable over time. Instead, it is much preferable to start fresh if you run into trouble:

mamba create -n <new_environment> python=3.11 wetterdients=0.55 ...

You can include all the packages you’d like to use together. There is a much better chance that the solver will be successful in this case than when you install into an existing environment.

If you really don’t want to create a new environment, one more thing you could try is to first update all the packages in your existing environment:

mamba update --all

Then, again, you might have better luck with mamba install wetterdients=0.55. Bute there’s really no guarantee since even the updated packages may not be compatible.

Yeah I hear you and I know this issue very well, but as a matter of fact I just created this environment 2 days ago so I was surprised in seeing these issues, that usually arise after time as you said, pop up immediately 😄 that’s why I thought something was changed. Honestly I don’t know what the incompatibility is because I haven’t really installed many packages this time and both Python and conda are up to date.

I’ll try to investigate tomorrow but I may just create a new environment all together 😪