ecmwf / magics-python

Python interface to Magics meteorological plotting package
Apache License 2.0
49 stars 12 forks source link

Can not install magics with conda. #15

Closed NMC-DAVE closed 4 years ago

NMC-DAVE commented 5 years ago

Hi, I use 'conda install -c conda-forge magics' to install magics in anaconda environment. But I always get the following message, which means magics is conflict with other packages (may be cartopy, or iris). So how I can solve this, thanks.

WARNING_ conda.base.context:use_only_tar_bz2(632): Conda is constrained to only using the old .tar.bz2 file format because you have conda-build installed, and it is <3.18.3.  Update or remove conda-build to get smaller downloads and faster extractions.
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - anaconda/linux-64::seaborn==0.9.0=py37_0 -> matplotlib[version='>=1.4.3'] -> pyqt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - anaconda==2019.03=py37_0 -> cairo==1.14.12=h8948797_3 -> glib[version='>=2.56.1,<2.57.0a0']
  - anaconda==2019.03=py37_0 -> importlib_metadata==0.8=py37_0
  - anaconda==2019.03=py37_0 -> pango==1.42.4=h049681c_0
  - cairo
  - conda-forge/linux-64::basemap==1.2.0=py37h673bf1a_2 -> matplotlib[version='>=1.0.0'] -> pyqt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - conda-forge/linux-64::cartopy==0.17.0=py37h0aa2c8f_1004 -> matplotlib -> pyqt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - conda-forge/linux-64::iris==2.2.0=py37_1003 -> cartopy[version='>=0.14'] -> matplotlib -> pyqt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - conda-forge/linux-64::metpy==0.10.0=py37_1001 -> cartopy[version='>=0.15.0'] -> matplotlib -> pyqt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - conda-forge/linux-64::nodejs==11.14.0=he1b5a44_1
  - conda-forge/noarch::jupyterlab-git==0.6.0=py_0 -> nodejs
  - glib
  - gst-plugins-base -> glib[version='>=2.58.3,<3.0a0']
  - gstreamer -> glib[version='>=2.58.3,<3.0a0']
  - harfbuzz -> cairo[version='>=1.16.0,<1.17.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - magics -> cairo[version='>=1.16.0,<1.17.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - magics -> pango[version='>=1.40.14,<1.41.0a0']
  - pango -> cairo[version='>=1.16.0,<1.17.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - pkgs/main/linux-64::anaconda-navigator==1.9.7=py37_0 -> pyqt[version='>=5.6,<6.0a0'] -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - pkgs/main/linux-64::importlib_metadata==0.8=py37_0
  - pkgs/main/linux-64::jupyter==1.0.0=py37_7 -> qtconsole -> pyqt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - pkgs/main/linux-64::matplotlib==3.0.3=py37h5429711_0 -> pyqt=5.9 -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - pkgs/main/linux-64::navigator-updater==0.2.1=py37_0 -> pyqt[version='>=5.6'] -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - pkgs/main/linux-64::path.py==11.5.0=py37_0 -> importlib_metadata[version='>=0.5']
  - pkgs/main/linux-64::pyqt==5.9.2=py37h05f1152_2 -> dbus[version='>=1.13.2,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - pkgs/main/linux-64::qtconsole==4.4.3=py37_0 -> pyqt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - pkgs/main/linux-64::scikit-image==0.14.2=py37he6710b0_0 -> matplotlib[version='>=2.0.0'] -> pyqt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - pkgs/main/linux-64::spyder==3.3.3=py37_0 -> pyqt=5 -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']
  - qt -> dbus[version='>=1.13.6,<2.0a0'] -> glib[version='>=2.58.3,<3.0a0']_
dtip commented 5 years ago

I had a similar problem when trying to install magics alongside cartopy. For me the solution was to create a new anaconda environment and install magics there - but that's because I don't need to use magics and cartopy at the same time.

The problem on my machine looks like it's to do with proj4. Magics is built with proj4 v6 but cartopy is built with proj4 v5.

The problem on your machine looks to be that you have cairo v1.14.12 installed but magics requires cairo v>=1.16. I suspect if you resolve this problem you'll run into the proj4 problem I saw.

The conda logs don't exactly make any of this obvious so I may be chatting a load of rubbish :) Hopefully that helps a bit.

NMC-DAVE commented 5 years ago

Thanks very much. I will try to upgrade cartopy and proj4.

dtip commented 4 years ago

Closing old issues