GithubHelp home page GithubHelp logo

conda-forge / cartopy-feedstock Goto Github PK

View Code? Open in Web Editor NEW
4.0 7.0 16.0 379 KB

A conda-smithy repository for cartopy.

License: BSD 3-Clause "New" or "Revised" License

Shell 43.33% Python 25.58% Batchfile 31.09%

cartopy-feedstock's Introduction

About cartopy-feedstock

Feedstock license: BSD-3-Clause

Home: http://scitools.org.uk/cartopy

Package license: BSD-3-Clause

Summary: A library providing cartographic tools for python

Development: https://github.com/SciTools/cartopy

Documentation: https://scitools.org.uk/cartopy/docs/latest/

Current build status

Azure
VariantStatus
linux_64_numpy1.22python3.9.____73_pypy variant
linux_64_numpy2.0python3.10.____cpython variant
linux_64_numpy2.0python3.11.____cpython variant
linux_64_numpy2.0python3.12.____cpython variant
linux_64_numpy2.0python3.9.____cpython variant
linux_aarch64_numpy1.22python3.9.____73_pypy variant
linux_aarch64_numpy2.0python3.10.____cpython variant
linux_aarch64_numpy2.0python3.11.____cpython variant
linux_aarch64_numpy2.0python3.12.____cpython variant
linux_aarch64_numpy2.0python3.9.____cpython variant
linux_ppc64le_numpy1.22python3.9.____73_pypy variant
linux_ppc64le_numpy2.0python3.10.____cpython variant
linux_ppc64le_numpy2.0python3.11.____cpython variant
linux_ppc64le_numpy2.0python3.12.____cpython variant
linux_ppc64le_numpy2.0python3.9.____cpython variant
osx_64_numpy1.22python3.9.____73_pypy variant
osx_64_numpy2.0python3.10.____cpython variant
osx_64_numpy2.0python3.11.____cpython variant
osx_64_numpy2.0python3.12.____cpython variant
osx_64_numpy2.0python3.9.____cpython variant
osx_arm64_numpy2.0python3.10.____cpython variant
osx_arm64_numpy2.0python3.11.____cpython variant
osx_arm64_numpy2.0python3.12.____cpython variant
osx_arm64_numpy2.0python3.9.____cpython variant
win_64_numpy1.22python3.9.____73_pypy variant
win_64_numpy2.0python3.10.____cpython variant
win_64_numpy2.0python3.11.____cpython variant
win_64_numpy2.0python3.12.____cpython variant
win_64_numpy2.0python3.9.____cpython variant

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing cartopy

Installing cartopy from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, cartopy can be installed with conda:

conda install cartopy

or with mamba:

mamba install cartopy

It is possible to list all of the versions of cartopy available on your platform with conda:

conda search cartopy --channel conda-forge

or with mamba:

mamba search cartopy --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search cartopy --channel conda-forge

# List packages depending on `cartopy`:
mamba repoquery whoneeds cartopy --channel conda-forge

# List dependencies of `cartopy`:
mamba repoquery depends cartopy --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge anaconda.org channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating cartopy-feedstock

If you would like to improve the cartopy recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/cartopy-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

cartopy-feedstock's People

Contributors

akrherz avatar beckermr avatar chilipp avatar conda-forge-admin avatar conda-forge-curator[bot] avatar djhoese avatar dopplershift avatar gepcel avatar github-actions[bot] avatar jakirkham avatar lbdreyer avatar marqh avatar ocefpaf avatar pelson avatar regro-cf-autotick-bot avatar xhochy avatar xylar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cartopy-feedstock's Issues

Problem with geos dependency when using cartopy feedstock

I'm seeing a somewhat familiar problem when using anaconda to install cartopy on OSX. Here are some basic steps that can be used to reproduce the problem. I've never been able to figure out why it is so hard for cartopy to link to libgeos but its not working here.

joes-air:~$conda create -n test_cartopy python=3.4
...
joes-air:~$source activate test_cartopy
...
(test_cartopy)joes-air:~$  conda install -c conda-forge cartopy=0.14.2
...
(test_cartopy)joes-air:~$ which python
/Users/jhamman/anaconda/envs/test_cartopy/bin/python
(test_cartopy)joes-air:~$ **python**
Python 3.4.4 |Continuum Analytics, Inc.| (default, Jan  9 2016, 17:30:09) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cartopy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jhamman/anaconda/envs/test_cartopy/lib/python3.4/site-packages/cartopy/__init__.py", line 24, in <module>
    import shapely.speedups
  File "/Users/jhamman/anaconda/envs/test_cartopy/lib/python3.4/site-packages/shapely/speedups/__init__.py", line 3, in <module>
    from shapely.geometry import linestring, polygon
  File "/Users/jhamman/anaconda/envs/test_cartopy/lib/python3.4/site-packages/shapely/geometry/__init__.py", line 4, in <module>
    from .base import CAP_STYLE, JOIN_STYLE
  File "/Users/jhamman/anaconda/envs/test_cartopy/lib/python3.4/site-packages/shapely/geometry/base.py", line 9, in <module>
    from shapely.coords import CoordinateSequence
  File "/Users/jhamman/anaconda/envs/test_cartopy/lib/python3.4/site-packages/shapely/coords.py", line 8, in <module>
    from shapely.geos import lgeos
  File "/Users/jhamman/anaconda/envs/test_cartopy/lib/python3.4/site-packages/shapely/geos.py", line 72, in <module>
    free = load_dll('c').free
  File "/Users/jhamman/anaconda/envs/test_cartopy/lib/python3.4/site-packages/shapely/geos.py", line 61, in load_dll
    libname, fallbacks or []))
OSError: Could not find lib c or load any of its variants [].

Packaging bug in cartopy=0.14.3=np110py27_3 ?

Could it be there's a packaging bug in cartopy version 0.14.3 build np110py27_3?

We're running into an error in CI, on Travis OSX exclusively:

ERROR: test_location_plot_ortho (obspy.core.tests.test_network.NetworkCartopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/obspy/core/tests/test_network.py", line 348, in test_location_plot_ortho
    color='yellow', label=False, outfile=ic.name)
  File "/Users/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/obspy/core/inventory/network.py", line 489, in plot
    from obspy.imaging.maps import plot_map
  File "/Users/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/obspy/imaging/maps.py", line 44, in <module>
    import cartopy.crs as ccrs
  File "/Users/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/cartopy/__init__.py", line 110, in <module>
    import cartopy.crs
  File "/Users/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/cartopy/crs.py", line 37, in <module>
    import cartopy.trace
ImportError: dlopen(/Users/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/cartopy/trace.so, 2): Library not loaded: @rpath/libgeos_c.1.dylib
  Referenced from: /Users/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/cartopy/trace.so
  Reason: Incompatible library version: trace.so requires version 10.0.0 or later, but libgeos_c.1.dylib provides version 9.0.0

Installed versions are:

cartopy                   0.14.3              np110py27_3    conda-forge
geos                      3.3.3                         0

In CI we first install main dependencies with fixed versions and after that install optional dependencies with --no-update-dependencies option to not change main dependency versions:

$ conda install --no-update-dependencies cartopy || true
Fetching package metadata ...........
Solving package specifications: .
Package plan for installation in environment /Users/travis/miniconda/envs/test-environment:
The following NEW packages will be INSTALLED:
    cartopy: 0.14.3-np110py27_3 conda-forge
    jpeg:    9b-0               conda-forge
    libtiff: 4.0.6-7            conda-forge
    owslib:  0.14.0-py27_0      conda-forge
    pillow:  3.2.0-py27_1       conda-forge
    proj4:   4.9.3-3            conda-forge
    pyepsg:  0.3.1-py27_0       conda-forge
    pyshp:   1.2.10-py27_0      conda-forge
    shapely: 1.5.16-py27_0                 

I checked locally, --no-update-dependencies does show an error if it can not accomodate those installed package versions that it's not able to change, so I think our way of installing optional deps should work..

$ conda install --no-update-dependencies cartopy=0.14.3
Fetching package metadata ...........
Solving package specifications: ....


UnsatisfiableError: The following specifications were found to be in conflict:
  - cartopy 0.14.3*
  - libgdal 2.1.0 0
Use "conda info <package>" to see the dependencies for each package.

Remove matplotlib < 2.0 pin

Can we re-examine the pinning against matplotlib < 2.0? As far as I can tell, the library isn't fundamentally broken with matplotlib. Based on SciTools/cartopy#773, the only changes needed are to a ticker and to make sure linewidth is set properly. I'm willing to make a patch for conda-forge for these changes if that helps.

My issue is that in a month I'm teaching a workshop:

  1. I will not teach new users matplotlib < 2.0 only to have them turn around and adjust in 6 months
  2. CartoPy 0.15.x fixes several bugs I've encountered teaching this very workshop, so using the 0.14.x means I'm walking in with a release with known problems (while the fixes exist in a released version)
  3. On conda-forge, dropping back to 0.14.3 also forces me to use numpy 1.11, which means everything is using numpy 1.11 (though this hasn't YET caused a problem)
  4. I'd really like to not have to explain to new users why we need to use two different channels for packages--the whole point of having conda-forge is so we have one community place.

Offline version of cartopy

@willirath commented on Sun Feb 05 2017

(I'd be happy to provide a PR myself.)

Problem

Cartopy provides a very limited set of feature data (shapefiles et al.) and downloads features to the user cache whenever they are needed. This is usually a good practice, but interferes with people working without permanent internet access (seagoing oceanographers, people in large data-centers who are trapped behind firewalls, someone working on a plane, etc.).

Proposed solution

Create a feedstock which downloads all features upon installation.

To download all features, use (on python2.7)

feature_download.py \
    --output ${CONDA_PREFIX}/lib/python2.7/site-packages/cartopy/data physical \
    gshhs cultural cultural-extra

with feature_download.py from the cartopy repo.

Caveats

Make sure to make use of conda's hard linking across virtual environments?


@jakirkham commented on Sun Feb 05 2017

For future reference, discussion of changes to an individual package should be conducted on the issue tracker of that feedstock. In this case, the cartopy feedstock would be the right place. Am moving this issue over to that feedstock. Please discuss more over there.

Cannot install cartopy on Python 3.8 version via conda-forge

When I tried to install cartopy with python 3.8 and spyder 4.1.2, it is showing the error

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

cartopy -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.8

Conflict in ``conda`` environment when trying to install Cartopy 0.18.0

Issue:

Hi everyone,
I'm encountering this issue a conflict issue and have not been able to resolve it so far.
Important to note is surely that I'm on a IBM Power9 machine, and I have yet to encounter an issue when installing Cartopy from the source code. Also, for the installation of h5py and mpi4py, I have used the following openmpi version openmpi/gcc/4.0.3rc1/64 (not sure if relevant).

Thanks!

Lucas

PS: I didn't knoww about the html details thing. Thanks for teaching me already.


Environment (conda list):
$ conda list

# packages in environment at /home/lsawade/.conda/envs/gcmt3d:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       0_gnu    conda-forge
alabaster                 0.7.12                   pypi_0    pypi
attrs                     19.3.0                   pypi_0    pypi
babel                     2.8.0                    pypi_0    pypi
backcall                  0.1.0                    pypi_0    pypi
ca-certificates           2020.4.5.1           hecc5488_0    conda-forge
cartopy                   0.18.0rc2.dev31-          pypi_0    pypi
certifi                   2020.4.5.1       py37hc8dfbb8_0    conda-forge
chardet                   3.0.4                    pypi_0    pypi
colorama                  0.4.3                    pypi_0    pypi
cycler                    0.10.0                     py_2    conda-forge
cython                    0.29.19                  pypi_0    pypi
decorator                 4.4.2                    pypi_0    pypi
dill                      0.3.1.1                  pypi_0    pypi
docutils                  0.16                     pypi_0    pypi
flake8                    3.8.2                    pypi_0    pypi
freetype                  2.10.2               h33812df_0    conda-forge
future                    0.18.2                   pypi_0    pypi
gcmt3d                    0.0.2                     dev_0    <develop>
geographiclib             1.50                     pypi_0    pypi
geos                      3.7.1                he6710b0_0  
h5py                      2.10.0                   pypi_0    pypi
icu                       64.2                 hb209c28_1    conda-forge
idna                      2.9                      pypi_0    pypi
imagesize                 1.2.0                    pypi_0    pypi
importlib-metadata        1.6.0                    pypi_0    pypi
ipython                   7.15.0                   pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
isodate                   0.6.0                    pypi_0    pypi
jedi                      0.17.0                   pypi_0    pypi
jinja2                    2.11.2                   pypi_0    pypi
joblib                    0.15.1                   pypi_0    pypi
jpeg                      9c                h14c3975_1001    conda-forge
kiwisolver                1.2.0            py37h70ed317_0    conda-forge
krb5                      1.17.1               h41979e3_0    conda-forge
ld_impl_linux-ppc64le     2.34                 h0f24833_4    conda-forge
libblas                   3.8.0               14_openblas    conda-forge
libcblas                  3.8.0               14_openblas    conda-forge
libcurl                   7.69.1               h76d47d4_0    conda-forge
libedit                   3.1.20181209         hc058e9b_0  
libffi                    3.2.1             hb209c28_1007    conda-forge
libgcc-ng                 8.4.0                hdd5993f_6    conda-forge
libgfortran-ng            8.4.0                h822a55f_6    conda-forge
libgomp                   8.4.0                hdd5993f_6    conda-forge
liblapack                 3.8.0               14_openblas    conda-forge
libopenblas               0.3.7                ha38281c_6    conda-forge
libpng                    1.6.37               h151fe60_1    conda-forge
libssh2                   1.9.0                h0e66b82_2    conda-forge
libstdcxx-ng              8.4.0                h822a55f_6    conda-forge
libtiff                   4.1.0                hee46ee4_6    conda-forge
libwebp-base              1.1.0                h6eb9509_3    conda-forge
lxml                      4.5.1                    pypi_0    pypi
lz4-c                     1.9.2                hb209c28_1    conda-forge
markupsafe                1.1.1                    pypi_0    pypi
matplotlib                3.2.1                         0    conda-forge
matplotlib-base           3.2.1            py37h6d5b32b_0    conda-forge
mccabe                    0.6.1                    pypi_0    pypi
more-itertools            8.3.0                    pypi_0    pypi
mpi4py                    3.0.3                    pypi_0    pypi
ncurses                   6.1               hf484d3e_1002    conda-forge
networkx                  2.4                      pypi_0    pypi
nose                      1.3.7                    pypi_0    pypi
numpy                     1.18.4           py37h8edcdf1_0    conda-forge
obspy                     1.2.1                    pypi_0    pypi
openssl                   1.1.1g               h6eb9509_0    conda-forge
owslib                    0.19.2                   pypi_0    pypi
packaging                 20.4                     pypi_0    pypi
parso                     0.7.0                    pypi_0    pypi
pexpect                   4.8.0                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pip                       20.1.1                     py_1    conda-forge
pluggy                    0.13.1                   pypi_0    pypi
proj                      7.0.1                h59a7b90_1  
prompt-toolkit            3.0.5                    pypi_0    pypi
prov                      1.5.3                    pypi_0    pypi
psutil                    5.7.0                    pypi_0    pypi
ptyprocess                0.6.0                    pypi_0    pypi
py                        1.8.1                    pypi_0    pypi
pyasdf                    0.5.1                    pypi_0    pypi
pycmt3d                   0.1.17                    dev_0    <develop>
pycodestyle               2.6.0                    pypi_0    pypi
pyflakes                  2.2.0                    pypi_0    pypi
pyflex                    0.1.5                    pypi_0    pypi
pygments                  2.6.1                    pypi_0    pypi
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyproj                    2.6.1.post1      py37h61f852b_1  
pyshp                     2.1.0                    pypi_0    pypi
pytest                    5.4.2                    pypi_0    pypi
python                    3.7.6           haf90cd5_5_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python_abi                3.7                     1_cp37m    conda-forge
pytz                      2020.1                   pypi_0    pypi
pyyaml                    5.3.1                    pypi_0    pypi
rdflib                    5.0.0                    pypi_0    pypi
readline                  8.0                  hf8c457e_0    conda-forge
requests                  2.23.0                   pypi_0    pypi
scipy                     1.4.1            py37h81caced_3    conda-forge
setuptools                47.1.1           py37hc8dfbb8_0    conda-forge
shapely                   1.7.0                    pypi_0    pypi
six                       1.15.0             pyh9f0ad1d_0    conda-forge
snowballstemmer           2.0.0                    pypi_0    pypi
spaceweight               0.0.1                    pypi_0    pypi
sphinx                    3.0.4                    pypi_0    pypi
sphinx-rtd-theme          0.4.3                    pypi_0    pypi
sphinxcontrib-applehelp   1.0.2                    pypi_0    pypi
sphinxcontrib-devhelp     1.0.2                    pypi_0    pypi
sphinxcontrib-htmlhelp    1.0.3                    pypi_0    pypi
sphinxcontrib-jsmath      1.0.1                    pypi_0    pypi
sphinxcontrib-qthelp      1.0.3                    pypi_0    pypi
sphinxcontrib-serializinghtml 1.1.4                    pypi_0    pypi
sqlalchemy                1.3.17                   pypi_0    pypi
sqlite                    3.31.1               h7b6447c_0  
tk                        8.6.10               h151fe60_0    conda-forge
tornado                   6.0.4            py37h2bd1440_1    conda-forge
traitlets                 4.3.3                    pypi_0    pypi
urllib3                   1.25.9                   pypi_0    pypi
wcwidth                   0.1.9                    pypi_0    pypi
wheel                     0.34.2                     py_1    conda-forge
xz                        5.2.5                h6eb9509_0    conda-forge
zipp                      3.1.0                    pypi_0    pypi
zlib                      1.2.11            h6eb9509_1006    conda-forge
zstd                      1.4.4                h1dc757f_3    conda-forge


Details about conda and system ( conda info ):
$ conda info
     active environment : gcmt3d
    active env location : /home/lsawade/.conda/envs/gcmt3d
            shell level : 2
       user config file : /home/lsawade/.condarc
 populated config files : /home/lsawade/.condarc
          conda version : 4.7.12
    conda-build version : 3.18.9
         python version : 3.7.4.final.0
       virtual packages : __cuda=10.2
       base environment : /usr/licensed/anaconda3/2019.10  (read only)
           channel URLs : https://conda.anaconda.org/conda-forge/linux-ppc64le
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-ppc64le
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-ppc64le
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /usr/licensed/anaconda3/2019.10/pkgs
                          /home/lsawade/.conda/pkgs
       envs directories : /home/lsawade/.conda/envs
                          /usr/licensed/anaconda3/2019.10/envs
               platform : linux-ppc64le
             user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Linux/4.14.0-115.19.1.el7a.ppc64le rhel/7.6 glibc/2.17
                UID:GID : 128891:30014
             netrc file : None
           offline mode : False

Segmentation fault from import cartopy.crs after matplotlib.pyplot

Issue:
Segmentation fault when import cartopy.crs is imported after import matplotlib.pyplot (also reported here: SciTools/cartopy#1524)

It seems this is only an issue when running from the command line and not when running in a Jupyter notebook.

To reproduce...

Created this environment:

conda create -n testCartopy -c conda-forge python=3.7 matplotlib cartopy
conda activate testCartopy

Then run the following (hopefully the faulthandler will print something useful)

import faulthandler
faulthandler.enable()

import matplotlib.pyplot as plt
import cartopy.crs as ccrs

This is the output:

Fatal Python error: Segmentation fault

Current thread 0x00002abd4c326060 (most recent call first):
  File "/p/home/blaylock/anaconda3/envs/testCartopy/lib/python3.7/ctypes/__init__.py", line 364 in __init__
  File "/p/home/blaylock/anaconda3/envs/testCartopy/lib/python3.7/site-packages/shapely/geos.py", line 39 in load_dll
  File "/p/home/blaylock/anaconda3/envs/testCartopy/lib/python3.7/site-packages/shapely/geos.py", line 92 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/p/home/blaylock/anaconda3/envs/testCartopy/lib/python3.7/site-packages/shapely/coords.py", line 8 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/p/home/blaylock/anaconda3/envs/testCartopy/lib/python3.7/site-packages/shapely/geometry/base.py", line 18 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/p/home/blaylock/anaconda3/envs/testCartopy/lib/python3.7/site-packages/shapely/geometry/__init__.py", line 4 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/p/home/blaylock/anaconda3/envs/testCartopy/lib/python3.7/site-packages/cartopy/crs.py", line 32 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/p/home/blaylock/anaconda3/envs/testCartopy/lib/python3.7/site-packages/cartopy/__init__.py", line 107 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "debug_cartopy.py", line 5 in <module>
Segmentation fault

Maybe this provides some additional info...

gdb
(gdb) file python
Reading symbols from /p/home/blaylock/anaconda3/envs/basic/bin/python...done.
(gdb) run debug_cartopy.py
Starting program: /p/home/blaylock/anaconda3/envs/basic/bin/python debug_cartopy.py
Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Try: zypper install -C "debuginfo(build-id)=1b206daf4bd10c39f57644078bad773f8a02b9e8"
Missing separate debuginfo for /lib64/libpthread.so.0
Try: zypper install -C "debuginfo(build-id)=ee481d1b77962a972d43ae9a656f46b79b4a7453"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C "debuginfo(build-id)=70c4ab148421271723d2815a44dbf3aac3ff9015"
Missing separate debuginfo for /lib64/libdl.so.2
Try: zypper install -C "debuginfo(build-id)=d175e6f6e2c3e226b969c42aae541f39289018a0"
Missing separate debuginfo for /lib64/libutil.so.1
Try: zypper install -C "debuginfo(build-id)=aace6a8a0b6b5dfb398fbe5afaace971398182ae"
Missing separate debuginfo for /lib64/librt.so.1
Try: zypper install -C "debuginfo(build-id)=baf5f44e44a3777c9f305f87dd31b3bf608157a4"
Missing separate debuginfo for /lib64/libm.so.6
Try: zypper install -C "debuginfo(build-id)=6d0a9685aa9de88e259cd40ae81316c65faa9186"
Missing separate debuginfo for /usr/lib64/libX11.so.6
Try: zypper install -C "debuginfo(build-id)=71df221db5c73f9ed27f0274ec9e9a3abc74d1e2"
Missing separate debuginfo for /usr/lib64/libXau.so.6
Try: zypper install -C "debuginfo(build-id)=9213680483512b8ae3ff90d914900be4637bb495"
Detaching after fork from child process 26581.

Program received signal SIGSEGV, Segmentation fault.
0x00002aaaaaab6525 in _dl_relocate_object () from /lib64/ld-linux-x86-64.so.2
(gdb)

Other details:

  • There is nothing in my LD_LIBRARY_PATH
  • This works without issue in a Jupyter Notebook
    image

Environment (conda list):
`conda list`
$ conda list
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                      1_llvm    conda-forge
ca-certificates           2020.4.5.1           hecc5488_0    conda-forge
cartopy                   0.17.0          py37h17ca249_1015    conda-forge
certifi                   2020.4.5.1       py37hc8dfbb8_0    conda-forge
cffi                      1.14.0           py37hd463f26_0    conda-forge
chardet                   3.0.4           py37hc8dfbb8_1006    conda-forge
cryptography              2.8              py37hb09aad4_2    conda-forge
cycler                    0.10.0                     py_2    conda-forge
dbus                      1.13.6               he372182_0    conda-forge
expat                     2.2.9                he1b5a44_2    conda-forge
fontconfig                2.13.1            h86ecdb6_1001    conda-forge
freetype                  2.10.1               he06d7ca_0    conda-forge
geos                      3.8.1                he1b5a44_0    conda-forge
gettext                   0.19.8.1          hc5be6a0_1002    conda-forge
glib                      2.64.2               h6f030ca_0    conda-forge
gst-plugins-base          1.14.5               h0935bb2_2    conda-forge
gstreamer                 1.14.5               h36ae1b5_2    conda-forge
icu                       64.2                 he1b5a44_1    conda-forge
idna                      2.9                        py_1    conda-forge
jpeg                      9c                h14c3975_1001    conda-forge
kiwisolver                1.2.0            py37h99015e2_0    conda-forge
krb5                      1.17.1               h2fd8d38_0    conda-forge
ld_impl_linux-64          2.34                 h53a641e_0    conda-forge
libblas                   3.8.0               16_openblas    conda-forge
libcblas                  3.8.0               16_openblas    conda-forge
libclang                  9.0.1           default_hde54327_0    conda-forge
libcurl                   7.69.1               hf7181ac_0    conda-forge
libedit                   3.1.20170329      hf8c457e_1001    conda-forge
libffi                    3.2.1             he1b5a44_1007    conda-forge
libgcc-ng                 9.2.0                h24d8f2e_2    conda-forge
libgfortran-ng            7.3.0                hdf63c60_5    conda-forge
libiconv                  1.15              h516909a_1006    conda-forge
liblapack                 3.8.0               16_openblas    conda-forge
libllvm9                  9.0.1                hc9558a2_0    conda-forge
libopenblas               0.3.9                h5ec1e0e_0    conda-forge
libpng                    1.6.37               hed695b0_1    conda-forge
libssh2                   1.8.2                h22169c7_2    conda-forge
libstdcxx-ng              9.2.0                hdf63c60_2    conda-forge
libtiff                   4.1.0                hc7e4089_6    conda-forge
libuuid                   2.32.1            h14c3975_1000    conda-forge
libwebp-base              1.1.0                h516909a_3    conda-forge
libxcb                    1.13              h14c3975_1002    conda-forge
libxkbcommon              0.10.0               he1b5a44_0    conda-forge
libxml2                   2.9.10               hee79883_0    conda-forge
llvm-openmp               10.0.0               hc9558a2_0    conda-forge
lz4-c                     1.9.2                he1b5a44_0    conda-forge
matplotlib                3.2.1                         0    conda-forge
matplotlib-base           3.2.1            py37h30547a4_0    conda-forge
ncurses                   6.1               hf484d3e_1002    conda-forge
nspr                      4.25                 he1b5a44_0    conda-forge
nss                       3.47                 he751ad9_0    conda-forge
numpy                     1.18.1           py37h8960a57_1    conda-forge
olefile                   0.46                       py_0    conda-forge
openssl                   1.1.1f               h516909a_0    conda-forge
owslib                    0.19.2                     py_1    conda-forge
pcre                      8.44                 he1b5a44_0    conda-forge
pillow                    7.1.1            py37h718be6c_0    conda-forge
pip                       20.0.2                     py_2    conda-forge
proj                      7.0.0                h5a2d94f_2    conda-forge
pthread-stubs             0.4               h14c3975_1001    conda-forge
pycparser                 2.20                       py_0    conda-forge
pyepsg                    0.4.0                      py_0    conda-forge
pykdtree                  1.3.1           py37h03ebfcd_1003    conda-forge
pyopenssl                 19.1.0                     py_1    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyproj                    2.6.0            py37h34dd122_1    conda-forge
pyqt                      5.12.3           py37hcca6a23_1    conda-forge
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
pyshp                     2.1.0                      py_0    conda-forge
pysocks                   1.7.1            py37hc8dfbb8_1    conda-forge
python                    3.7.6           h8356626_5_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python_abi                3.7                     1_cp37m    conda-forge
pytz                      2019.3                     py_0    conda-forge
pyyaml                    5.3.1            py37h8f50634_0    conda-forge
qt                        5.12.5               hd8c4c69_1    conda-forge
readline                  8.0                  hf8c457e_0    conda-forge
requests                  2.23.0             pyh8c360ce_2    conda-forge
scipy                     1.4.1            py37ha3d9a3c_3    conda-forge
setuptools                46.1.3           py37hc8dfbb8_0    conda-forge
shapely                   1.7.0            py37hc88ce51_3    conda-forge
six                       1.14.0                     py_1    conda-forge
sqlite                    3.30.1               hcee41ef_0    conda-forge
tk                        8.6.10               hed695b0_0    conda-forge
tornado                   6.0.4            py37h8f50634_1    conda-forge
urllib3                   1.25.8           py37hc8dfbb8_1    conda-forge
wheel                     0.34.2                     py_1    conda-forge
xorg-libxau               1.0.9                h14c3975_0    conda-forge
xorg-libxdmcp             1.1.3                h516909a_0    conda-forge
xz                        5.2.5                h516909a_0    conda-forge
yaml                      0.2.3                h516909a_0    conda-forge
zlib                      1.2.11            h516909a_1006    conda-forge
zstd                      1.4.4                h6597ccf_3    conda-forge

`conda Info`
$ conda info

     active environment : testCartopy
    active env location : /p/home/blaylock/anaconda3/envs/testCartopy
            shell level : 2
       user config file : /p/home/blaylock/.condarc
 populated config files :
          conda version : 4.8.2
    conda-build version : 3.18.11
         python version : 3.7.6.final.0
       virtual packages : __glibc=2.11.3
       base environment : /p/home/blaylock/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /p/home/blaylock/anaconda3/pkgs
                          /p/home/blaylock/.conda/pkgs
       envs directories : /p/home/blaylock/anaconda3/envs
                          /p/home/blaylock/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Linux/3.0.101-0.47.106.59.1.17833.1.PTF-default suse_linux/11 glibc/2.11.3
                UID:GID : 922916:8708
             netrc file : None
           offline mode : False

Can not install Cartopy and GMT at the same time because of GDAL conflict

Description

Cartopy and GMT are both popular packages for map projections, so it would be good to ensure that these can cohabitate together. Some python packages in fact install both cartopy and gmt, so this is a major nuisance when the two have incompatible dependencies.

When using conda, I have run into several problems in the past, and this appears to be related to GDAL. The most recent version of GMT (6.2.0) appears to require '>=3.3.0,<3.4.0a0', whereas Cartopy (0.19) requires '>=3.1.3,<3.2.0a0'. I am confused as to where the Cartopy gdal dependency comes from, because it is not being installed explicitly by Cartopy (nor could I find it in any of the cartopy depencies either).

Given that many people use both of these packages, the developers of both teams should at least attempt to ensure that one package doesn't break the other. I am in contact with the GMT people and will see what can be done on their end (https://forum.generic-mapping-tools.org/t/can-not-install-both-gmt-and-cartopy-because-of-conda-dependency-conflicts/963).

Code to reproduce

Here is the output when attempting to install gmt 6.2.0 and cartopy using conda with python 3.9. The conflict with gdal is explicit.

$ conda create -n test python=3.9 cartopy gmt=6.2.0

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
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 versions

Package libgdal conflicts for:
gmt=6.2.0 -> gdal[version='>=3.3.0,<3.4.0a0'] -> libgdal[version='3.3.0|3.3.0|3.3.0|3.3.0|3.3.1',build='hd181ca1_1|hd85aa46_2|hd51e85c_3|hd51e85c_1|hd51e85c_0|h9a52621_0']
cartopy -> gdal[version='>=3.1.3,<3.2.0a0'] -> libgdal[version='3.1.2|3.1.2|3.1.2|3.1.2|3.1.2|3.1.3|3.1.3|3.1.4',build='h6ef84d7_0|hd7bf8dc_1|h1f7cb0a_3|h55c8954_6|h0a7a322_9|hc84532a_12|h27e2542_15|hd51e85c_17|hd85aa46_16|hd181ca1_14|h9a52621_13|he0423de_11|h6de91e5_10|h62a8350_8|hbaa4b3a_7|hbdbaf39_5|he1d4179_4|hbb49e5d_2|h7b1ae08_1|hd7bf8dc_0|hd7bf8dc_0|hd7bf8dc_4|h6dfbaa8_3|hea8881a_2|h6dfbaa8_1']

Package python conflicts for:
python=3.9
gmt=6.2.0 -> gdal[version='>=3.3.0,<3.4.0a0'] -> python[version='>=3.6,<3.7.0a0|>=3.9,<3.10.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0']

Package sqlite conflicts for:
cartopy -> proj[version='>=7.2.0,<7.2.1.0a0'] -> sqlite[version='3.13.*|3.20.*|>=3.24.0,<4.0a0|>=3.25.2,<4.0a0|>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.28.0,<4.0a0|>=3.30.1,<4.0a0|>=3.32.3,<4.0a0|>=3.33.0,<4.0a0|>=3.34.0,<4.0a0|>=3.31.1,<4.0a0|>=3.29.0,<4.0a0|>=3.23.1,<4.0a0|>=3.22.0,<4.0a0|>=3.20.1,<4.0a0|>=3.25.1,<4.0a0|>=3.27.2,<4.0a0|>=3.35.4,<4.0a0|>=3.36.0,<4.0a0|>=3.35.5,<4.0a0|>=3.30.0,<4.0a0|3.9.*']
python=3.9 -> sqlite[version='>=3.33.0,<4.0a0|>=3.34.0,<4.0a0|>=3.35.5,<4.0a0|>=3.36.0,<4.0a0|>=3.35.4,<4.0a0']

Package numpy conflicts for:
cartopy -> numpy[version='1.10.*|1.11.*|1.12.*|1.13.*|>=1.11|>=1.14.6,<2.0a0|>=1.16.5,<2.0a0|>=1.16.6,<2.0a0|>=1.17.5,<2.0a0|>=1.18.5,<2.0a0|>=1.19.5,<2.0a0|>=1.19.4,<2.0a0|>=1.19.2,<2.0a0|>=1.9.3,<2.0a0|>=1.8|1.9.*|>=1.11.3,<2.0a0']
cartopy -> matplotlib-base[version='>=1.5.1'] -> numpy[version='1.8.*|>=1.15.1,<2.0a0|>=1.15.4,<2.0a0|>=1.18.1,<2.0a0|>=1.9|>=1.7|>=1.14.1,<2.0a0']

And here is the output when using python 3.8. Here, it is not obvious what the problem is

conda create -n test python=3.8 cartopy gmt=6.2.0

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
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 versions

Package numpy conflicts for:
cartopy -> numpy[version='1.10.*|1.11.*|1.12.*|1.13.*|>=1.11|>=1.14.6,<2.0a0|>=1.16.5,<2.0a0|>=1.16.6,<2.0a0|>=1.17.5,<2.0a0|>=1.18.5,<2.0a0|>=1.19.5,<2.0a0|>=1.19.4,<2.0a0|>=1.19.2,<2.0a0|>=1.9.3,<2.0a0|>=1.8|1.9.*|>=1.11.3,<2.0a0']
cartopy -> matplotlib-base[version='>=1.5.1'] -> numpy[version='1.8.*|>=1.15.1,<2.0a0|>=1.15.4,<2.0a0|>=1.18.1,<2.0a0|>=1.9|>=1.7|>=1.14.1,<2.0a0']

Package libpng conflicts for:
cartopy -> matplotlib-base[version='>=1.5.1'] -> libpng[version='>=1.6.23,<1.7|>=1.6.35,<1.7.0a0|>=1.6.37,<1.7.0a0|>=1.6.36,<1.7.0a0|>=1.6.34,<1.7.0a0|>=1.6.32,<1.7.0a0']
gmt=6.2.0 -> graphicsmagick -> libpng[version='>=1.6.34,<1.7.0a0|>=1.6.35,<1.7.0a0|>=1.6.37,<1.7.0a0']

Package libcxxabi conflicts for:
python=3.8 -> libcxx[version='>=4.0.1'] -> libcxxabi[version='4.0.1|4.0.1|8.0.0|8.0.0|8.0.0|8.0.0|8.0.1',build='hebd6815_0|3|4|0|2|1|hcfea43d_1']
cartopy -> libcxx[version='>=4.0.1'] -> libcxxabi[version='4.0.1|4.0.1|8.0.0|8.0.0|8.0.0|8.0.0|8.0.1',build='hebd6815_0|3|4|0|2|1|hcfea43d_1']

Package python conflicts for:
gmt=6.2.0 -> gdal[version='>=3.3.0,<3.4.0a0'] -> python[version='>=3.6,<3.7.0a0|>=3.9,<3.10.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0']
python=3.8

PROJ 6.1.1 builds for Windows failed

Looking at https://anaconda.org/conda-forge/cartopy/files and the README for appveyor/azure builds, it looks like the win64 builds where cartopy was built against PROJ 6.1.1 failed and no win64 package is available (from the builds that were 12 days ago).

Looking at appveyor it looks like an environment variable wasn't set to use the old PROJ API. Let me know if I'm missing something.

Conda install just loops without ever succeeding

Issue:

Running conda install -c conda-forge cartopy never terminates. Just fails to ever resolve an environment


Environment (conda list):
$ conda list
# packages in environment at /Users/shriphani/miniconda3:
#
# Name                    Version                   Build  Channel
appdirs                   1.4.3                    pypi_0    pypi
appnope                   0.1.0                    pypi_0    pypi
asn1crypto                0.24.0                   py37_0  
atomicwrites              1.3.0                    pypi_0    pypi
attrs                     18.2.0                   pypi_0    pypi
autopep8                  1.4.4                      py_0  
backcall                  0.1.0                    py37_0  
beautifulsoup4            4.7.1                    pypi_0    pypi
black                     18.9b0                   pypi_0    pypi
blas                      2.8                    openblas    conda-forge
bleach                    3.1.0                    py37_0  
boost-cpp                 1.70.0               hd59e818_0    conda-forge
boto                      2.49.0                   py37_0  
boto3                     1.9.82                     py_0  
botocore                  1.12.82                    py_0  
bs4                       0.0.1                    pypi_0    pypi
bz2file                   0.98                     pypi_0    pypi
bzip2                     1.0.6             h1de35cc_1002    conda-forge
ca-certificates           2019.6.16            hecc5488_0    conda-forge
cairo                     1.14.12           h9d4d9ac_1005    conda-forge
certifi                   2019.6.16                py37_1    conda-forge
cffi                      1.11.5           py37h6174b99_1  
cfitsio                   3.430             h50cca31_1002    conda-forge
chardet                   3.0.4                    py37_1  
click                     7.0                      pypi_0    pypi
click-plugins             1.1.1                    pypi_0    pypi
cligj                     0.5.0                    pypi_0    pypi
conda                     4.7.10                   py37_0    conda-forge
conda-env                 2.6.0                         1  
conda-package-handling    1.3.10                   py37_0    conda-forge
coverage                  4.5.3            py37h1de35cc_0    conda-forge
crypto                    1.4.1                    pypi_0    pypi
cryptography              2.5              py37ha12b0ac_0  
cssselect                 1.0.3                    pypi_0    pypi
curl                      7.64.1               h22ea746_0    conda-forge
cvxopt                    1.2.3           py37h18a38e7_202    conda-forge
cycler                    0.10.0                   pypi_0    pypi
cymem                     2.0.2            py37h04f5b5a_0  
cytoolz                   0.9.0.1          py37h1de35cc_1  
dbus                      1.13.6               h90a0687_0  
decorator                 4.3.0                    pypi_0    pypi
descartes                 1.1.0                    pypi_0    pypi
dill                      0.2.8.2                  py37_0  
docutils                  0.14                     py37_0  
dsdp                      5.8               h971f2e1_1203    conda-forge
en-core-web-sm            2.0.0                    pypi_0    pypi
entrypoints               0.3                      py37_0  
exiv2                     0.27.1               ha4feea6_0    conda-forge
expat                     2.2.6                h0a44026_0  
fake-useragent            0.1.11                   pypi_0    pypi
fftw                      3.3.8           nompi_h5c49c53_1105    conda-forge
fiona                     1.8.6                    pypi_0    pypi
fontconfig                2.13.1            h1027ab8_1000    conda-forge
freetype                  2.9.1                hb4e5f40_0  
freexl                    1.0.5             h1de35cc_1002    conda-forge
funcy                     1.11                     pypi_0    pypi
future                    0.17.1                   pypi_0    pypi
gdal                      2.4.1            py37h39889d8_4    conda-forge
gensim                    3.4.0            py37h1de35cc_0  
geojsonio                 0.0.3                    pypi_0    pypi
geopandas                 0.5.1                    pypi_0    pypi
geos                      3.7.1             h0a44026_1000    conda-forge
geotiff                   1.5.1                h83de174_2    conda-forge
gettext                   0.19.8.1             h15daf44_3  
giflib                    5.1.7                h01d97ff_1    conda-forge
github3-py                1.3.0                    pypi_0    pypi
glib                      2.56.2               hd9629dc_0  
glpk                      4.65                 ha8bbb54_2  
gmp                       6.1.2                hb37e062_1  
gsl                       2.5                  ha2d443c_0    conda-forge
hdf4                      4.2.13            hf3c6af0_1002    conda-forge
hdf5                      1.10.5          nompi_h0cbb7df_1100    conda-forge
httplib2                  0.13.0                   py37_0    conda-forge
icu                       58.2                 h4b95b61_1  
idna                      2.7                      py37_0  
intel-openmp              2018.0.3                      0  
ipdb                      0.11                     pypi_0    pypi
ipykernel                 5.1.0            py37h39e3cac_0  
ipython                   6.5.0                    pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
ipython_genutils          0.2.0                    py37_0  
ipywidgets                7.4.2                    py37_0  
jedi                      0.12.1                   pypi_0    pypi
jinja2                    2.10                     py37_0  
jmespath                  0.9.3                    py37_0  
joblib                    0.13.2                   pypi_0    pypi
jpeg                      9c                h1de35cc_1001    conda-forge
json-c                    0.13.1            h1de35cc_1001    conda-forge
jsonschema                2.6.0                    py37_0  
jupyter                   1.0.0                    py37_7  
jupyter_client            5.2.4                    py37_0  
jupyter_console           6.0.0                    py37_0  
jupyter_core              4.4.0                    py37_0  
jwcrypto                  0.6.0                    pypi_0    pypi
kealib                    1.4.10            h6659575_1005    conda-forge
kiwisolver                1.0.1                    pypi_0    pypi
krb5                      1.16.3            hcfa6398_1001    conda-forge
libarchive                3.3.3             h5c473cc_1005    conda-forge
libblas                   3.8.0                8_openblas    conda-forge
libcblas                  3.8.0                8_openblas    conda-forge
libcurl                   7.64.1               h16faf7d_0    conda-forge
libcxx                    4.0.1                h579ed51_0  
libcxxabi                 4.0.1                hebd6815_0  
libdap4                   3.19.1            hae55d67_1000    conda-forge
libedit                   3.1.20170329      hcfe32e1_1001    conda-forge
libffi                    3.2.1                h475c297_4  
libgdal                   2.4.1                hbed8f18_4    conda-forge
libgfortran               3.0.1                h93005f0_2  
libiconv                  1.15                 hdd342a3_7  
libkml                    1.3.0             hed7d534_1010    conda-forge
liblapack                 3.8.0                8_openblas    conda-forge
liblapacke                3.8.0                8_openblas    conda-forge
libnetcdf                 4.6.2             h1a02027_1002    conda-forge
libopenblas               0.3.3                hdc02c5d_3  
libpng                    1.6.37               h2573ce8_0    conda-forge
libpq                     11.3                 h56406e1_0    conda-forge
libsodium                 1.0.16               h3efe00b_0  
libspatialindex           1.9.0                h6de7cb9_1    conda-forge
libspatialite             4.3.0a            he900ada_1028    conda-forge
libssh2                   1.8.2                hcdc9a53_2    conda-forge
libtasn1                  4.13              h1de35cc_1002    conda-forge
libtiff                   4.0.9                hcb84e12_2  
libxml2                   2.9.9                hd80cff7_0    conda-forge
libzip                    1.5.1             h22952d1_1005    conda-forge
llvm-openmp               4.0.1                hcfea43d_1  
lxml                      4.3.2                    pypi_0    pypi
lz4-c                     1.8.3             h6de7cb9_1001    conda-forge
lzo                       2.10              h1de35cc_1000    conda-forge
markupsafe                1.1.1            py37h1de35cc_0  
matplotlib                3.0.2                    pypi_0    pypi
matplotlib-base           3.1.1            py37h3a684a6_1    conda-forge
metis                     5.1.0             h0a44026_1003    conda-forge
mistune                   0.8.4            py37h1de35cc_0  
mkl                       2019.3                      199  
mkl_fft                   1.0.12           py37h01d97ff_1    conda-forge
mkl_random                1.0.4            py37h051e8ed_0    conda-forge
mock                      3.0.5                    py37_0    conda-forge
more-itertools            6.0.0                    pypi_0    pypi
msgpack-numpy             0.4.3.2                  py37_0  
msgpack-python            0.6.1            py37h04f5b5a_1  
munch                     2.3.2                    pypi_0    pypi
murmurhash                1.0.1            py37h0a44026_0  
naked                     0.1.31                   pypi_0    pypi
nbconvert                 5.3.1                    py37_0  
nbformat                  4.4.0                    py37_0  
ncurses                   6.1                  h0a44026_0  
networkx                  2.3                      pypi_0    pypi
ninja                     1.8.2            py37h04f5b5a_1  
nltk                      3.4                      py37_1  
nose2                     0.9.1                      py_0    conda-forge
notebook                  5.7.4                    py37_0  
numexpr                   2.6.9                    pypi_0    pypi
numpy                     1.16.3           py37h926163e_0  
numpy-base                1.16.3           py37ha711998_0  
olefile                   0.46                     py37_0  
openblas                  0.3.6                hd44dcd8_1    conda-forge
opencv-python             4.0.0.21                 pypi_0    pypi
openjpeg                  2.3.1                hc1feee7_0    conda-forge
openssl                   1.1.1c               h01d97ff_0    conda-forge
osmnx                     0.10                     pypi_0    pypi
owslib                    0.18.0                     py_0    conda-forge
pandas                    0.24.1                   pypi_0    pypi
pandoc                    2.2.3.2                       0  
pandocfilters             1.4.2                    py37_1  
parse                     1.12.0                   pypi_0    pypi
parso                     0.3.1                    pypi_0    pypi
pcre                      8.42                 h378b8a2_0  
pexpect                   4.6.0                    py37_0  
pickleshare               0.7.4                    pypi_0    pypi
pillow                    5.3.0            py37hb68e598_0  
pip                       10.0.1                   py37_0  
pixman                    0.34.0            h1de35cc_1003    conda-forge
plac                      0.9.6                    py37_0  
plotly                    3.10.0                     py_0    conda-forge
pluggy                    0.9.0                    pypi_0    pypi
poppler                   0.67.0            hf4bf5f7_1002    conda-forge
poppler-data              0.4.9                         1    conda-forge
postgresql                11.3                 hf10c77c_0    conda-forge
preshed                   2.0.1            py37h0a44026_0  
proj4                     6.1.0                h2cc77ee_2    conda-forge
prometheus_client         0.6.0                    py37_0  
prompt-toolkit            1.0.15                   pypi_0    pypi
prompt_toolkit            2.0.9                    py37_0  
protobuf                  3.6.1                    pypi_0    pypi
psycopg2                  2.8.3            py37h212c5bf_0    conda-forge
ptyprocess                0.6.0                    pypi_0    pypi
pulp                      1.6.9                    pypi_0    pypi
py                        1.8.0                    pypi_0    pypi
pycodestyle               2.5.0                    py37_0  
pycosat                   0.6.3            py37h1de35cc_0  
pycparser                 2.18                     py37_1  
pycrypto                  2.6.1                    pypi_0    pypi
pyee                      6.0.0                    pypi_0    pypi
pyelliptic                1.5.7                    pypi_0    pypi
pygments                  2.2.0                    pypi_0    pypi
pygraphviz                1.5                      pypi_0    pypi
pyldavis                  2.1.2                    pypi_0    pypi
pynacl                    1.3.0                    pypi_0    pypi
pyopenssl                 18.0.0                   py37_0  
pyparsing                 2.3.1                    pypi_0    pypi
pyppeteer                 0.0.25                   pypi_0    pypi
pyproj                    2.2.1            py37h804dea5_0    conda-forge
pyqt                      5.9.2            py37h655552a_2  
pyquery                   1.4.0                    pypi_0    pypi
pyshp                     2.1.0                    pypi_0    pypi
pysocks                   1.6.8                    py37_0  
pytest                    4.3.0                    pypi_0    pypi
python                    3.7.2                haf84260_0  
python-dateutil           2.7.5                    pypi_0    pypi
python-libarchive-c       2.8                   py37_1004    conda-forge
python.app                2                        py37_8  
pytorch                   0.4.1           py37_cuda0.0_cudnn0.0_1    pytorch
pytz                      2018.9                   pypi_0    pypi
pyyaml                    3.13                     pypi_0    pypi
pyzmq                     18.0.0           py37h0a44026_0  
qca                       2.2.1                hc6ac302_2    conda-forge
qgis                      3.8.0            py37hf73719f_0    conda-forge
qjson                     0.9.0             hc6ac302_1005    conda-forge
qscintilla2               2.11.2           py37hc6ac302_0    conda-forge
qt                        5.9.7                h93ee506_2    conda-forge
qtconsole                 4.4.3                    py37_0  
qtkeychain                0.9.1             hc6ac302_1001    conda-forge
qtlocation                5.9.7                h6de7cb9_0    conda-forge
qtserialport              5.9.8                hc6ac302_0    conda-forge
qwt                       6.1.4             hc6ac302_1003    conda-forge
qwtpolar                  1.1.1                hc6ac302_6    conda-forge
readline                  7.0                  h1de35cc_5  
regex                     2018.11.22       py37h1de35cc_0  
requests                  2.22.0                   pypi_0    pypi
requests-html             0.10.0                   pypi_0    pypi
retrying                  1.3.3                      py_2    conda-forge
rtree                     0.8.3                    pypi_0    pypi
ruamel_yaml               0.15.46          py37h1de35cc_0  
s3transfer                0.1.13                   py37_0  
scikit-learn              0.20.2                   pypi_0    pypi
scipy                     1.2.0                    pypi_0    pypi
selenium                  3.141.0                  pypi_0    pypi
send2trash                1.5.0                    py37_0  
setuptools                40.2.0                   py37_0  
shapely                   1.6.4.post2              pypi_0    pypi
shellescape               3.4.1                    pypi_0    pypi
simplegeneric             0.8.1                    pypi_0    pypi
sip                       4.19.8           py37h0a44026_0  
six                       1.11.0                   py37_1  
sklearn                   0.0                      pypi_0    pypi
smart_open                1.8.0                    py37_0  
soupsieve                 1.9.1                    pypi_0    pypi
spacy                     2.0.16           py37h6440ff4_0  
sqlite                    3.28.0               h9721f7c_0    conda-forge
suitesparse               4.5.6             h7019593_1202    conda-forge
tbb                       2019.4               h04f5b5a_0    conda-forge
terminado                 0.8.1                    py37_1  
testpath                  0.4.2                    py37_0  
thinc                     6.12.1          py37h1702cab_1000    conda-forge
tk                        8.6.9             h2573ce8_1002    conda-forge
toml                      0.10.0                   pypi_0    pypi
toolz                     0.9.0                    py37_0  
torchvision               0.2.1                    py37_1    pytorch
tornado                   5.1.1                    pypi_0    pypi
tqdm                      4.31.1                     py_0  
traitlets                 4.3.2                    py37_0  
tzcode                    2019a             h01d97ff_1002    conda-forge
ujson                     1.35             py37h1de35cc_0  
uritemplate               3.0.0                    pypi_0    pypi
urllib3                   1.23                     py37_0  
w3lib                     1.20.0                   pypi_0    pypi
wcwidth                   0.1.7                    pypi_0    pypi
webencodings              0.5.1                    py37_1  
websockets                7.0                      pypi_0    pypi
wheel                     0.31.1                   py37_0  
widgetsnbextension        3.4.2                    py37_0  
wrapt                     1.10.11          py37h1de35cc_2  
xerces-c                  3.2.2             h44e365a_1001    conda-forge
xz                        5.2.4                h1de35cc_4  
yaml                      0.1.7                hc338f04_2  
zeromq                    4.3.1                h0a44026_3  
zlib                      1.2.11               hf3cbc9b_2  
zstd                      1.4.0                ha9f0a20_0    conda-forge


Details about conda and system ( conda info ):
โžœ  infrastructure_dark git:(master) โœ— conda info

     active environment : None
       user config file : /Users/shriphani/.condarc
 populated config files : /Users/shriphani/.condarc
          conda version : 4.7.10
    conda-build version : not installed
         python version : 3.7.2.final.0
       virtual packages :
       base environment : /Users/shriphani/miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/shriphani/miniconda3/pkgs
                          /Users/shriphani/.conda/pkgs
       envs directories : /Users/shriphani/miniconda3/envs
                          /Users/shriphani/.conda/envs
               platform : osx-64
             user-agent : conda/4.7.10 requests/2.22.0 CPython/3.7.2 Darwin/18.6.0 OSX/10.14.5
                UID:GID : 501:20
             netrc file : None
           offline mode : False

Cann't change "linewidth" when adding geometries.

There's a mismatch file between cartopy of conda-forge and cartopy from master repository.

There is a Line 111 in file Lib/site-packages/cartopy/mpl/feature_artist.py :

100        self.set_zorder(1)
111  self._kwargs.setdefault('linewidth', 1.0)
113  self._feature = feature

Which caused an issue that when ax.add_geometries(..., linewidth=0.5), the 'linewidth' arg doesn't work. An example code might be like:

%matplotlib inline
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
from cartopy.io.shapereader import Reader
import cartopy.io.shapereader as shpreader

shpfilename = shpreader.natural_earth(resolution='110m',
                                      category='cultural',
                                      name='admin_0_countries')
shp = Reader(shpfilename)
fig, [ax1, ax2] = plt.subplots(1, 2, figsize=(8,3),
                               subplot_kw={'projection': ccrs.PlateCarree()})
ax1.add_geometries(shp.geometries(), crs=ccrs.PlateCarree(),
                 linewidth=0.1, edgecolor='k')
ax1.set(title='linewidth = 0.1')
ax2.add_geometries(shp.geometries(), crs=ccrs.PlateCarree(),
                 linewidth=10, edgecolor='k')
ax2.set(title='linewidth = 10')
plt.tight_layout()
plt.show()

The result would be:

As the line of code, I don't quite understand, because it seems to only to set linewidth to 1.0 if linewidth is not specified. Not sure what's wrong. I've filed an issue at cartopy.

os: windows 10 x64
python: 3.6.2
cartopy: 0.15.1
matplotlib: 2.0.2
conda: 4.3.27

Python 3.10

Issue:

cartopy can't be installed into Python 3.10 environment, since Python 3.10 builds are not available. conda-forge status page reports -> Migration not solvable:

cartopy (31) Error: not solvable bot CI job: master: ['osx_64_numpy1.21python3.10.____cpython: Encountered problems while solving:\n - package shapely-1.6.4-py27h20de77a_0 requires geos >=3.6.2,<3.6.3.0a0, but none of the providers can be installed\n', 'osx_arm64_numpy1.21python3.10.____cpython: Encountered problems while solving:\n - package shapely-1.7.1-py38h18ef730_5 requires geos >=3.9.1,<3.9.2.0a0, but none of the providers can be installed\n']
Immediate Children: arosics, ecco_v4_py, geoarray, geoschem-gcpy, gmprocess, ilamb, iris, jaws, lagranto, ldcpy, mintpy, monet, mpas_tools, mss, ncplot, obspy, psy-maps, pyshtools, pysumma, seapy, tracktable

shapely is missing only the OSX builds, but this obviously prevents the complete migration for the other OS. Do we have to wait until shapely solves that issue?


Environment (conda list):

# packages in environment at /home/kai/miniconda/envs/py310:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
boost-cpp                 1.74.0               h359cf19_5    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.18.1               h7f98852_0    conda-forge
ca-certificates           2021.10.8            ha878542_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cairo                     1.16.0            ha00ac49_1009    conda-forge
cfitsio                   4.0.0                h9a35b8e_0    conda-forge
curl                      7.80.0               h2574ce0_0    conda-forge
expat                     2.4.1                h9c3ff4c_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.13.1            hba837de_1005    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freetype                  2.10.4               h0708190_1    conda-forge
freexl                    1.0.6                h7f98852_0    conda-forge
geos                      3.10.0               h9c3ff4c_0    conda-forge
geotiff                   1.7.0                h90a4e78_5    conda-forge
gettext                   0.19.8.1          h73d1719_1008    conda-forge
giflib                    5.2.1                h36c2ea0_2    conda-forge
h5py                      3.4.0           nompi_py310he751f51_102    conda-forge
hdf4                      4.2.15               h10796ff_3    conda-forge
hdf5                      1.12.1          nompi_h2750804_101    conda-forge
icu                       69.1                 h9c3ff4c_0    conda-forge
jbig                      2.1               h7f98852_2003    conda-forge
jpeg                      9d                   h36c2ea0_0    conda-forge
json-c                    0.15                 h98cffda_0    conda-forge
kealib                    1.4.14               h87e4c3c_3    conda-forge
krb5                      1.19.2               hcc1bbae_3    conda-forge
lcms2                     2.12                 hddcbb42_0    conda-forge
ld_impl_linux-64          2.36.1               hea4e1c9_2    conda-forge
lerc                      3.0                  h9c3ff4c_0    conda-forge
libblas                   3.9.0           12_linux64_openblas    conda-forge
libcblas                  3.9.0           12_linux64_openblas    conda-forge
libcurl                   7.80.0               h2574ce0_0    conda-forge
libdap4                   3.20.6               hd7c4107_2    conda-forge
libdeflate                1.8                  h7f98852_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 11.2.0              h1d223b6_11    conda-forge
libgdal                   3.4.0                hc0e84f1_2    conda-forge
libgfortran-ng            11.2.0              h69a702a_11    conda-forge
libgfortran5              11.2.0              h5c6108e_11    conda-forge
libglib                   2.70.0               h174f98d_1    conda-forge
libgomp                   11.2.0              h1d223b6_11    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
libkml                    1.3.0             h238a007_1014    conda-forge
liblapack                 3.9.0           12_linux64_openblas    conda-forge
libnetcdf                 4.8.1           nompi_hb3fd0d9_101    conda-forge
libnghttp2                1.43.0               h812cca2_1    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libopenblas               0.3.18          pthreads_h8fe5266_0    conda-forge
libpng                    1.6.37               h21135ba_2    conda-forge
libpq                     13.3                 hd57d9b9_3    conda-forge
librttopo                 1.1.0                h0ad649c_7    conda-forge
libspatialite             5.0.1               hed11718_11    conda-forge
libssh2                   1.10.0               ha56f1ee_2    conda-forge
libstdcxx-ng              11.2.0              he4da1e4_11    conda-forge
libtiff                   4.3.0                h6f004c6_2    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libwebp-base              1.2.1                h7f98852_0    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libxml2                   2.9.12               h885dcf4_1    conda-forge
libzip                    1.8.0                h4de3113_1    conda-forge
libzlib                   1.2.11            h36c2ea0_1013    conda-forge
lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
ncurses                   6.2                  h58526e2_4    conda-forge
nspr                      4.32                 h9c3ff4c_1    conda-forge
nss                       3.72                 hb5efdd6_0    conda-forge
numpy                     1.21.4          py310h57288b1_0    conda-forge
openjpeg                  2.4.0                hb52868f_1    conda-forge
openssl                   1.1.1l               h7f98852_0    conda-forge
pcre                      8.45                 h9c3ff4c_0    conda-forge
pip                       21.3.1             pyhd8ed1ab_0    conda-forge
pixman                    0.40.0               h36c2ea0_0    conda-forge
poppler                   21.10.0              ha39eefc_0    conda-forge
poppler-data              0.4.11               hd8ed1ab_0    conda-forge
postgresql                13.3                 h2510834_3    conda-forge
proj                      8.2.0                h277dcde_0    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
python                    3.10.0          h62f1059_2_cpython    conda-forge
python_abi                3.10                    2_cp310    conda-forge
readline                  8.1                  h46c0cb4_0    conda-forge
setuptools                59.1.1          py310hff52083_0    conda-forge
sqlite                    3.36.0               h9cd32fc_2    conda-forge
tiledb                    2.3.4                he87e0bf_0    conda-forge
tk                        8.6.11               h27826a3_1    conda-forge
tzcode                    2021e                h7f98852_0    conda-forge
tzdata                    2021e                he74cb21_0    conda-forge
wheel                     0.37.0             pyhd8ed1ab_1    conda-forge
xerces-c                  3.2.3                h8ce2273_4    conda-forge
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libice               1.0.10               h7f98852_0    conda-forge
xorg-libsm                1.2.3             hd9c2040_1000    conda-forge
xorg-libx11               1.7.2                h7f98852_0    conda-forge
xorg-libxau               1.0.9                h7f98852_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h7f98852_1    conda-forge
xorg-libxrender           0.9.10            h7f98852_1003    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h7f98852_1002    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
zlib                      1.2.11            h36c2ea0_1013    conda-forge
zstd                      1.5.0                ha95c52a_0    conda-forge


Details about conda and system ( conda info ):

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘
        โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘
        โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘
        โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•

        mamba (0.17.0) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ


     active environment : py310
    active env location : /home/kai/miniconda/envs/py310
            shell level : 1
       user config file : /user/k.muehlbauer/.condarc
 populated config files : /user/k.muehlbauer/.condarc
          conda version : 4.10.3
    conda-build version : not installed
         python version : 3.9.5.final.0
       virtual packages : __linux=5.3.18=0
                          __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/kai/miniconda  (writable)
      conda av data dir : /home/kai/miniconda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/kai/miniconda/pkgs
                          /user/k.muehlbauer/.conda/pkgs
       envs directories : /home/kai/miniconda/envs
                          /user/k.muehlbauer/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.3 requests/2.25.1 CPython/3.9.5 Linux/5.3.18-59.34-default opensuse-leap/15.3 glibc/2.31
                UID:GID : 701:100
             netrc file : /user/k.muehlbauer/.netrc
           offline mode : False

Cartopy crashes Python on OSX

Apparently, importing cartopy 0.15.1, built for conda-forge about a day ago, crashes python. To see the error, run

wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
bash miniconda.sh -p miniconda3 -b
export PATH=`pwd`/miniconda3/bin:$PATH
conda install -c conda-forge cartopy -y
python -c "import cartopy"

The last command prints the following to stdout

Invalid argument (must be a Polygon)
Geometry must be a Point or LineString
Assertion failed: (0 != cs), function GEOSCoordSeq_getSize_r, file geos_ts_c.cpp, line 3797.
Abort trap: 6

This issue has been tried to be solved by PR #35, commit 15c418f, Travis build #79, but unfortunately, although the build was indeed successful, it did not fix it.

problem with goes_c library in Cartopy

Hi,

I am using Anaconda with python 2.7 on a mac OS and I installed the package Cartopy.

However, I notice that when I attempt to use Cartopy (import cartopy), I obtain the following error:

OSError: Could not find lib geos_c or load any of its variants ['/Library/Frameworks/GEOS.framework/Versions/Current/GEOS', '/opt/local/lib/libgeos_c.dylib'].

Now, I've found where this library lives, it's in the path:
/Users/ramosmd/anaconda/lib/libgeos_c.dylib

How do I tell Anaconda to look here for the geos_c library? I've attempted upgrading cartopy and all its dependencies, but it just can't link to the library.

I saw someone had a similar issue from the mac side for this library, and I saw the ticket was closed and there was no resolution on this issue. Any help is appreciated greatly!!!

Best,

Marlon

PIL Packaging Bug

With a vanilla Anaconda python 3.6 distribution on Windows 7, the following install command clobbers something in the PIL module.

conda install -c conda-forge cartopy

When trying to import cartopy.io.img_tiles, an import error then occurs.

import cartopy.io.img_tiles
Traceback (most recent call last):

  File "<ipython-input-106-feb3ede8296d>", line 1, in <module>
    import cartopy.io.img_tiles

  File "C:\Anaconda3\lib\site-packages\cartopy\io\img_tiles.py", line 32, in <module>
    from PIL import Image

  File "C:\Anaconda3\lib\site-packages\PIL\Image.py", line 56, in <module>
    from . import _imaging as core

ImportError: DLL load failed: The specified module could not be found.

This can be fixed with conda upgrade -c conda-forge pillow or conda config --add channels conda-forge, depending if you want to add a channel or not.

I suspect cartopy is expecting pillow 4.3.0 (conda-forge), not 4.2.1 (standard conda)

Cartopy failed installation with conda

Issue: Cartopy install with conda-forge on new Conda installation failure

Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - pkgs/main/osx-64::anaconda==2019.03=py37_0 -> importlib_metadata==0.8=py37_0
  - pkgs/main/osx-64::importlib_metadata==0.8=py37_0
  - pkgs/main/osx-64::path.py==11.5.0=py37_0 -> importlib_metadata[version='>=0.5']

Environment (conda list):
# packages in environment at /Users/gabriel/anaconda3:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0                    py37_0  
alabaster                 0.7.12                   py37_0  
anaconda                  2019.03                  py37_0  
anaconda-client           1.7.2                    py37_0  
anaconda-navigator        1.9.7                    py37_0  
anaconda-project          0.8.2                    py37_0  
appnope                   0.1.0                    py37_0    conda-forge
appscript                 1.1.0            py37h1de35cc_0  
asn1crypto                0.24.0                   py37_0  
astroid                   2.2.5                    py37_0    conda-forge
astropy                   3.1.2            py37h1de35cc_0  
atomicwrites              1.3.0                    py37_1  
attrs                     19.1.0                   py37_1  
babel                     2.6.0                    py37_0  
backcall                  0.1.0                    py37_0  
backports                 1.0                      py37_1  
backports.os              0.1.1                    py37_0  
backports.shutil_get_terminal_size 1.0.0                    py37_2  
basemap                   1.2.0            py37h9622e30_3    conda-forge
beautifulsoup4            4.7.1                    py37_1  
bitarray                  0.8.3            py37h1de35cc_0  
bkcharts                  0.2                      py37_0  
blas                      1.0                         mkl  
bleach                    3.1.0                    py37_0  
blosc                     1.15.0               hd9629dc_0  
bokeh                     1.0.4                    py37_0  
boto                      2.49.0                   py37_0  
bottleneck                1.2.1            py37h1d22016_1  
bzip2                     1.0.6                h1de35cc_5  
ca-certificates           2019.1.23                     0  
certifi                   2019.3.9                 py37_0    conda-forge
cffi                      1.12.2           py37hb5b8e2f_1  
chardet                   3.0.4                    py37_1  
click                     7.0                      py37_0  
cloudpickle               0.8.0                    py37_0  
clyent                    1.2.2                    py37_1  
colorama                  0.4.1                    py37_0  
conda                     4.7.5                    py37_0    conda-forge
conda-build               3.18.6                   py37_0    conda-forge
conda-env                 2.6.0                         1    conda-forge
conda-package-handling    1.3.10                   py37_0    conda-forge
conda-verify              3.1.1                 py37_1000    conda-forge
contextlib2               0.5.5                    py37_0  
cryptography              2.6.1            py37ha12b0ac_0  
curl                      7.64.0               ha441bb4_2  
cycler                    0.10.0                   py37_0  
cython                    0.29.6           py37h0a44026_0  
cytoolz                   0.9.0.1          py37h1de35cc_1  
dask                      1.1.4                    py37_1  
dask-core                 1.1.4                    py37_1  
dbus                      1.13.6               h90a0687_0  
decorator                 4.4.0                    py37_1  
defusedxml                0.5.0                    py37_1  
distributed               1.26.0                   py37_1  
docutils                  0.14                     py37_0  
entrypoints               0.3                      py37_0  
et_xmlfile                1.0.1                    py37_0  
expat                     2.2.6                h0a44026_0  
fastcache                 1.0.2            py37h1de35cc_2  
filelock                  3.0.10                   py37_0  
flask                     1.0.2                    py37_1  
freetype                  2.9.1                hb4e5f40_0  
future                    0.17.1                py37_1000    conda-forge
geos                      3.7.1             h0a44026_1000    conda-forge
get_terminal_size         1.0.0                h7520d66_0  
gettext                   0.19.8.1             h15daf44_3  
gevent                    1.4.0            py37h1de35cc_0    conda-forge
glib                      2.56.2               hd9629dc_0  
glob2                     0.6                      py37_1  
gmp                       6.1.2                hb37e062_1  
gmpy2                     2.0.8            py37h6ef4df4_2  
greenlet                  0.4.15           py37h1de35cc_0  
h5py                      2.9.0            py37h3134771_0  
hdf5                      1.10.4               hfa1e0ec_0  
heapdict                  1.0.0                    py37_2  
html5lib                  1.0.1                    py37_0  
icu                       58.2                 h4b95b61_1  
idna                      2.8                      py37_0  
imageio                   2.5.0                    py37_0    conda-forge
imagesize                 1.1.0                    py37_0  
importlib_metadata        0.8                      py37_0  
intel-openmp              2019.3                      199  
ipykernel                 5.1.0            py37h39e3cac_0  
ipython                   7.4.0            py37h39e3cac_0  
ipython_genutils          0.2.0                    py37_0  
ipywidgets                7.4.2                    py37_0  
isort                     4.3.16                   py37_0  
itsdangerous              1.1.0                    py37_0  
jbig                      2.1                  h4d881f8_0  
jdcal                     1.4                      py37_0  
jedi                      0.13.3                   py37_0    conda-forge
jinja2                    2.10                     py37_0  
jpeg                      9b                   he5867d9_2  
jsonschema                3.0.1                    py37_0    conda-forge
jupyter                   1.0.0                    py37_7  
jupyter_client            5.2.4                    py37_0  
jupyter_console           6.0.0                    py37_0  
jupyter_core              4.4.0                    py37_0  
jupyterlab                0.35.4           py37hf63ae98_0  
jupyterlab_server         0.2.0                    py37_0  
keyring                   18.0.0                   py37_0  
kiwisolver                1.0.1            py37h0a44026_0  
krb5                      1.16.1               hddcf347_7  
lazy-object-proxy         1.3.1            py37h1de35cc_2  
libarchive                3.3.3                h786848e_5  
libcurl                   7.64.0               h051b688_2  
libcxx                    4.0.1                hcfea43d_1  
libcxxabi                 4.0.1                hcfea43d_1  
libedit                   3.1.20181209         hb402a30_0  
libffi                    3.2.1                h475c297_4  
libgfortran               3.0.1                h93005f0_2  
libiconv                  1.15                 hdd342a3_7  
liblief                   0.9.0                h2a1bed3_2  
libpng                    1.6.36               ha441bb4_0  
libsodium                 1.0.16               h3efe00b_0  
libssh2                   1.8.0                ha12b0ac_4  
libtiff                   4.0.10               hcb84e12_2  
libxml2                   2.9.9                hab757c2_0  
libxslt                   1.1.33               h33a18ac_0  
llvmlite                  0.28.0           py37h8c7ce04_0  
locket                    0.2.0                    py37_1  
lxml                      4.3.2            py37hef8c89e_0  
lz4-c                     1.8.1.2              h1de35cc_0  
lzo                       2.10                 h362108e_2  
markupsafe                1.1.1            py37h1de35cc_0    conda-forge
matplotlib                3.0.3            py37h54f8f79_0  
matplotlib-base           3.1.0            py37h3a684a6_1    conda-forge
mccabe                    0.6.1                    py37_1  
mistune                   0.8.4            py37h1de35cc_0  
mkl                       2019.3                      199  
mkl-service               1.1.2            py37hfbe908c_5  
mkl_fft                   1.0.10           py37h5e564d8_0  
mkl_random                1.0.2            py37h27c97d8_0  
more-itertools            6.0.0                    py37_0  
mpc                       1.1.0                h6ef4df4_1  
mpfr                      4.0.1                h3018a27_3  
mpmath                    1.1.0                    py37_0  
msgpack-python            0.6.1            py37h04f5b5a_1  
multipledispatch          0.6.0                    py37_0  
navigator-updater         0.2.1                    py37_0  
nbconvert                 5.4.1                    py37_3  
nbformat                  4.4.0                    py37_0  
ncurses                   6.1                  h0a44026_1  
networkx                  2.2                      py37_1  
nltk                      3.4                      py37_1  
nose                      1.3.7                    py37_2    conda-forge
notebook                  5.7.8                    py37_0    conda-forge
numba                     0.43.1           py37h6440ff4_0  
numexpr                   2.6.9            py37h7413580_0  
numpy                     1.16.2           py37hacdab7b_0  
numpy-base                1.16.2           py37h6575580_0  
numpydoc                  0.8.0                    py37_0  
obspy                     1.1.1            py37h917ab60_0    conda-forge
olefile                   0.46                     py37_0  
openpyxl                  2.6.1                    py37_1  
openssl                   1.1.1b               h1de35cc_1    conda-forge
packaging                 19.0                     py37_0  
pandas                    0.24.2           py37h0a44026_0    conda-forge
pandoc                    2.2.3.2                       0  
pandocfilters             1.4.2                    py37_1  
parso                     0.3.4                    py37_0  
partd                     0.3.10                   py37_1  
path.py                   11.5.0                   py37_0  
pathlib2                  2.3.3                    py37_0  
patsy                     0.5.1                    py37_0  
pcre                      8.43                 h0a44026_0  
pep8                      1.7.1                    py37_0  
pexpect                   4.6.0                    py37_0  
pickleshare               0.7.5                    py37_0  
pillow                    5.4.1            py37hb68e598_0  
pip                       19.0.3                   py37_0  
pkginfo                   1.5.0.1                  py37_0  
pluggy                    0.9.0                    py37_0  
ply                       3.11                     py37_0  
proj4                     4.9.3                h3f1bf9d_7  
prometheus_client         0.6.0                    py37_0  
prompt_toolkit            2.0.9                    py37_0  
psutil                    5.6.1            py37h1de35cc_0  
ptyprocess                0.6.0                    py37_0    conda-forge
py                        1.8.0                    py37_0  
py-lief                   0.9.0            py37h1413db1_2  
pycodestyle               2.5.0                    py37_0  
pycosat                   0.6.3            py37h1de35cc_0  
pycparser                 2.19                     py37_0  
pycrypto                  2.6.1            py37h1de35cc_9  
pycurl                    7.43.0.2         py37ha12b0ac_0  
pyflakes                  2.1.1                    py37_0  
pygments                  2.3.1                    py37_0  
pylint                    2.3.1                    py37_0    conda-forge
pyodbc                    4.0.26           py37h0a44026_0    conda-forge
pyopenssl                 19.0.0                   py37_0    conda-forge
pyparsing                 2.3.1                    py37_0  
pyproj                    1.9.5.1         py37hfb6cdf6_1006    conda-forge
pyqt                      5.9.2            py37h655552a_2  
pyrsistent                0.14.11          py37h1de35cc_0    conda-forge
pyshp                     2.1.0                      py_0    conda-forge
pysocks                   1.6.8                    py37_0  
pytables                  3.5.1            py37h5bccee9_0  
pytest                    4.3.1                    py37_0  
pytest-arraydiff          0.3              py37h39e3cac_0  
pytest-astropy            0.5.0                    py37_0  
pytest-doctestplus        0.3.0                    py37_0  
pytest-openfiles          0.3.2                    py37_0  
pytest-remotedata         0.3.1                    py37_0  
python                    3.7.3                h359304d_0  
python-dateutil           2.8.0                    py37_0  
python-libarchive-c       2.8                      py37_6  
python.app                2                        py37_9  
pytz                      2018.9                   py37_0  
pywavelets                1.0.2            py37h1d22016_0  
pyyaml                    5.1              py37h1de35cc_0    conda-forge
pyzmq                     18.0.0           py37h0a44026_0  
qt                        5.9.7                h468cd18_1  
qtawesome                 0.5.7                    py37_1  
qtconsole                 4.4.3                    py37_0  
qtpy                      1.7.0                    py37_1  
readline                  7.0                  h1de35cc_5  
requests                  2.21.0                   py37_0  
rope                      0.12.0                   py37_0  
ruamel_yaml               0.15.46          py37h1de35cc_0  
scikit-image              0.14.2           py37h0a44026_0  
scikit-learn              0.20.3           py37h27c97d8_0  
scipy                     1.2.1            py37h1410ff5_0  
seaborn                   0.9.0                    py37_0  
send2trash                1.5.0                    py37_0  
setuptools                40.8.0                   py37_0  
shapely                   1.6.4           py37h79c6f3e_1005    conda-forge
simplegeneric             0.8.1                    py37_2  
singledispatch            3.4.0.3                  py37_0  
sip                       4.19.8           py37h0a44026_0  
six                       1.12.0                   py37_0  
snappy                    1.1.7                he62c110_3  
snowballstemmer           1.2.1                    py37_0  
sortedcollections         1.1.2                    py37_0  
sortedcontainers          2.1.0                    py37_0  
soupsieve                 1.8                      py37_0  
sphinx                    1.8.5                    py37_0    conda-forge
sphinxcontrib             1.0                      py37_1  
sphinxcontrib-websupport  1.1.0                    py37_1  
spyder                    3.3.3                    py37_0  
spyder-kernels            0.4.2                    py37_0  
sqlalchemy                1.3.1            py37h1de35cc_0  
sqlite                    3.27.2               ha441bb4_0  
statsmodels               0.9.0            py37h1d22016_0  
sympy                     1.3                      py37_0  
tblib                     1.3.2                    py37_0  
terminado                 0.8.1                    py37_1  
testpath                  0.4.2                    py37_0  
tk                        8.6.8                ha441bb4_0  
toolz                     0.9.0                    py37_0  
tornado                   6.0.2            py37h1de35cc_0  
tqdm                      4.31.1                   py37_1  
traitlets                 4.3.2                    py37_0    conda-forge
unicodecsv                0.14.1                   py37_0  
unixodbc                  2.3.7                h1de35cc_0  
urllib3                   1.24.1                   py37_0  
wcwidth                   0.1.7                    py37_0  
webencodings              0.5.1                    py37_1  
werkzeug                  0.14.1                   py37_0  
wheel                     0.33.1                   py37_0  
widgetsnbextension        3.4.2                    py37_0  
wrapt                     1.11.1           py37h1de35cc_0  
wurlitzer                 1.0.2                    py37_0  
xlrd                      1.2.0                    py37_0  
xlsxwriter                1.1.5                    py37_0  
xlwings                   0.15.4                   py37_0  
xlwt                      1.3.0                    py37_0  
xz                        5.2.4                h1de35cc_4  
yaml                      0.1.7                hc338f04_2  
zeromq                    4.3.1                h0a44026_3  
zict                      0.1.4                    py37_0  
zipp                      0.3.3                    py37_1  
zlib                      1.2.11               h1de35cc_3  
zstd                      1.3.7                h5bba6e5_0  


Details about conda and system ( conda info ):
active environment : base
    active env location : /Users/gabriel/anaconda3
            shell level : 1
       user config file : /Users/gabriel/.condarc
 populated config files : /Users/gabriel/.condarc
          conda version : 4.7.5
    conda-build version : 3.18.6
         python version : 3.7.3.final.0
       virtual packages : 
       base environment : /Users/gabriel/anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/gabriel/anaconda3/pkgs
                          /Users/gabriel/.conda/pkgs
       envs directories : /Users/gabriel/anaconda3/envs
                          /Users/gabriel/.conda/envs
               platform : osx-64
             user-agent : conda/4.7.5 requests/2.21.0 CPython/3.7.3 Darwin/18.5.0 OSX/10.14.4
                UID:GID : 507:20
             netrc file : None
           offline mode : False

UnsatisfiableError with python 3.7 in clean new env

I'm suddenly unable to conda install cartopy. Here's the failed installation, and my conda info:

C:\>conda create -n TEST cartopy
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - cartopy -> geos[version='>=3.7.1,<3.7.2.0a0'] -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.15.26706']
  - cartopy -> matplotlib -> cycler[version='>=0.10'] -> six
  - cartopy -> matplotlib -> freetype=2.6
  - cartopy -> matplotlib -> functools32
  - cartopy -> matplotlib -> numpy=1.11 -> liblapack[version='>=3.8.0,<3.9.0a0'] -> blas=[build=mkl]
  - cartopy -> matplotlib -> numpy=1.11 -> numpy-base==1.11.3=py36hc3f5095_12
  - cartopy -> matplotlib -> pyparsing
  - cartopy -> matplotlib -> pyqt -> python[version='>=3.6,<3.7.0a0'] -> sqlite[version='>=3.26.0,<4.0a0']
  - cartopy -> matplotlib -> pyqt -> qt[version='5.9.*,>=5.9.7,<5.10.0a0'] -> icu[version='>=58.1,<59.0a0']
  - cartopy -> matplotlib -> pyqt -> qt[version='5.9.*,>=5.9.7,<5.10.0a0'] -> jpeg[version='>=9c,<10a']
  - cartopy -> matplotlib -> pyqt -> qt[version='5.9.*,>=5.9.7,<5.10.0a0'] -> libpng[version='>=1.6.35,<1.7.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0']
  - cartopy -> matplotlib -> pyqt -> qt[version='5.9.*,>=5.9.7,<5.10.0a0'] -> openssl[version='>=1.1.1b,<1.1.2a'] -> ca-certificates
  - cartopy -> matplotlib -> pyqt -> sip[version='>=4.19.4,<=4.19.8']
  - cartopy -> matplotlib -> python-dateutil
  - cartopy -> matplotlib -> pytz
  - cartopy -> matplotlib -> setuptools -> certifi[version='>=2016.09']
  - cartopy -> matplotlib -> setuptools -> wincertstore[version='>=0.2']
  - cartopy -> mock
  - cartopy -> nose
  - cartopy -> owslib
  - cartopy -> pillow
  - cartopy -> proj4[version='>=5.2.0,<5.2.1.0a0']
  - cartopy -> pyepsg
  - cartopy -> pykdtree
  - cartopy -> pyshp
  - cartopy -> scipy
  - cartopy -> shapely


Note that strict channel priority may have removed packages required for satisfiability.

C:\>conda info

     active environment : None
            shell level : 0
       user config file : C:\Users\Geoff\.condarc
 populated config files : C:\Users\Geoff\.condarc
          conda version : 4.7.5
    conda-build version : 3.18.6
         python version : 3.7.3.final.0
       virtual packages :
       base environment : c:\Anaconda  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : c:\Anaconda\pkgs
                          C:\Users\Geoff\.conda\pkgs
                          C:\Users\Geoff\AppData\Local\conda\conda\pkgs
       envs directories : c:\Anaconda\envs
                          C:\Users\Geoff\.conda\envs
                          C:\Users\Geoff\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.7.5 requests/2.22.0 CPython/3.7.3 Windows/10 Windows/10.0.18362
          administrator : False
             netrc file : None
           offline mode : False

Can't conda update to or install to Cartopy 0.20.0

I installed cartopy yestarday to my env but it yesterday and only today realized that it did not install the newest versions (0.18.0 is installed, not 0.20.0). This appears to cause issues w/ cfeatures as described on this other thread (#1849) due to the change in servers.

If I try to update it, it says it is up to date.
When I uninstall it, then force install 0.20.0 w/ the conda command below, it gets stuck forever at "Solving environment" after first successfully collecting package metatdata, but then failing with initial frozen solve. I attached a screenshot of such an attempt.

Code to reproduce
conda install -c conda-forge cartopy=0.20.0
OR
conda update cartopy (which updates it to 0.18.0 not the most recent version)

I have also tried "conda config --set channel_priority strict" before, and installing via PyCharms Package manager. The same problem persists.

Would really like some help here. I cannot do my job until I have access cfeature, which when using 0.18.0 are no longer retrievable from the url.

Thanks
Xavier
cartopyerror

regro-cf-autotick-bot erroring with `v0.22` update

Comment:

I know you've all been working hard on release automation ๐Ÿคฉ, so I just wanted to make you aware that the PyPI-to-conda automation isn't currently working.

Cartopy appears in the conda-forge version updates list under the Errored heading, with this text:

2.00 attempts - The recipe did not change in the version migration, a URL did not hash, or there is jinja2 syntax the bot cannot handle!

Please check the URLs in your recipe with version '0.22.0' to make sure they exist!

We also found the following errors:

 - could not hash URL template 'https://pypi.io/packages/source/C/Cartopy/Cartopy-{{ version }}.tar.gz'

Installing Cartopy on linux / docker build fails on import - ImportError: libproj.so.19: cannot open shared object file: No such file or directory

Issue:
hi there @ocefpaf et al... i'm running into some issues with installing cartopy in a linux envt and am not sure whether to post here or on the cartopy GH repo? Essentially when i installed it i get this issue:

Python 3.8.6 | packaged by conda-forge | (default, Oct  7 2020, 19:08:05) 
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cartopy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.8/site-packages/cartopy/__init__.py", line 96, in <module>
    import cartopy.crs
  File "/opt/conda/lib/python3.8/site-packages/cartopy/crs.py", line 36, in <module>
    from cartopy._crs import (CRS, Geodetic, Globe, PROJ4_VERSION,
ImportError: libproj.so.19: cannot open shared object file: No such file or directory

i've tried

and still i'm getting this cannot open shared object file issue. am i missing an important step? i tried to ensure all of the cartopy dependencies were installed but maybe they aren't. if i should post somewhere else please say the word.

  • currently i'm attempting to add proj4 (conda install -c conda-forge proj4 based on a few other threads i read but it seems to be having a hard time installing that / resolving the correct envt versions and has been spinning now for about 10 minutes.
    ANy suggestions on things i could try to get things to resolve correctly would be much appreciated!
(base) root@6526fb7f72d3:/# conda install -c conda-forge proj4
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): | 

Environment (conda list): https://github.com/earthlab/r-python-eds-lessons-env/blob/master/Dockerfile
$ conda list
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
_r-mutex                  1.0.1               anacondar_1    conda-forge
affine                    2.3.0                      py_0    conda-forge
alembic                   1.4.3              pyh9f0ad1d_0    conda-forge
ansiwrap                  0.8.4                      py_0    conda-forge
appdirs                   1.4.3                      py_1    conda-forge
argon2-cffi               20.1.0           py38h1e0a361_2    conda-forge
asn1crypto                1.4.0              pyh9f0ad1d_0    conda-forge
async_generator           1.10                       py_0    conda-forge
attrs                     20.2.0             pyh9f0ad1d_0    conda-forge
autopep8                  1.5.4              pyh9f0ad1d_0    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.1                      py_0    conda-forge
beautifulsoup4            4.9.3              pyhb0f4dca_0    conda-forge
binutils_impl_linux-64    2.35                 h18a2f87_9    conda-forge
binutils_linux-64         2.35                hc3fd857_29    conda-forge
black                     18.5b1                     py_0    conda-forge
bleach                    3.2.1              pyh9f0ad1d_0    conda-forge
blinker                   1.4                        py_1    conda-forge
boost-cpp                 1.72.0               h8e57a91_0    conda-forge
branca                    0.3.1                      py_0    conda-forge
brotlipy                  0.7.0           py38h8df0ef7_1001    conda-forge
bs4                       4.9.3                         0    conda-forge
bwidget                   1.9.14                        0    conda-forge
bzip2                     1.0.8                h516909a_3    conda-forge
ca-certificates           2020.6.20            hecda079_0    conda-forge
cairo                     1.16.0            hcf35c78_1003    conda-forge
cartopy                   0.18.0           py38h172510d_0    conda-forge
cenpy                     1.0.0.post4                py_0    conda-forge
certifi                   2020.6.20        py38h924ce5b_2    conda-forge
cffi                      1.14.3           py38h1bdcb99_1    conda-forge
cfitsio                   3.470                hb60a0a2_2    conda-forge
cftime                    1.2.1            py38hab2c0dc_1    conda-forge
chardet                   3.0.4           py38h924ce5b_1008    conda-forge
chroma-py                 0.1.0.dev1                 py_0    conda-forge
click                     5.1                        py_0    conda-forge
click-plugins             1.1.1                      py_0    conda-forge
cligj                     0.5.0                      py_0    conda-forge
climata                   0.5.0                      py_0    conda-forge
cloudpickle               1.6.0                      py_0    conda-forge
colour                    0.1.5                      py_0    conda-forge
conda                     4.8.5            py38h924ce5b_3    conda-forge
conda-package-handling    1.7.0            py38h8df0ef7_6    conda-forge
contextily                1.0.1                      py_0    conda-forge
cryptography              3.1.1            py38hb23e4d4_1    conda-forge
curl                      7.68.0               hf8cf82a_0    conda-forge
cycler                    0.10.0                     py_2    conda-forge
cytoolz                   0.11.0           py38h1e0a361_1    conda-forge
dask-core                 2.30.0                     py_0    conda-forge
dbus                      1.13.6               he372182_0    conda-forge
decorator                 4.4.2                      py_0    conda-forge
defusedxml                0.6.0                      py_0    conda-forge
deprecated                1.2.10             pyh9f0ad1d_0    conda-forge
descartes                 1.1.0                      py_4    conda-forge
earthpy                   0.9.2                      py_0    conda-forge
elevation                 1.0.6                      py_0    conda-forge
entrypoints               0.3             py38h32f6830_1002    conda-forge
expat                     2.2.9                he1b5a44_2    conda-forge
fasteners                 0.14.1                     py_3    conda-forge
fftw                      3.3.8           nompi_h7f3a6c3_1112    conda-forge
fiona                     1.8.13           py38h033e0f6_1    conda-forge
folium                    0.11.0                     py_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      2.001                hab24e00_0    conda-forge
font-ttf-source-code-pro  2.030                hab24e00_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.13.1            h86ecdb6_1001    conda-forge
fonts-conda-forge         1                             0    conda-forge
freetype                  2.10.3               he06d7ca_0    conda-forge
freexl                    1.0.5             h516909a_1002    conda-forge
fribidi                   1.0.10               h516909a_0    conda-forge
future                    0.18.2           py38h32f6830_2    conda-forge
fuzzywuzzy                0.17.0                     py_0    conda-forge
gcc_impl_linux-64         7.5.0               hd9e1a51_17    conda-forge
gcc_linux-64              7.5.0               he2a3fca_29    conda-forge
gdal                      3.0.4            py38h172510d_3    conda-forge
gdk-pixbuf                2.38.2               h3f25603_5    conda-forge
geocoder                  1.38.1                     py_1    conda-forge
geographiclib             1.50                       py_0    conda-forge
geojson                   2.5.0                      py_0    conda-forge
geopandas                 0.8.1                      py_0    conda-forge
geoplot                   0.4.1                      py_0    conda-forge
geopy                     2.0.0              pyh9f0ad1d_0    conda-forge
geos                      3.8.1                he1b5a44_0    conda-forge
geotiff                   1.5.1                hcbe54f9_9    conda-forge
gettext                   0.19.8.1          hf34092f_1003    conda-forge
gfortran_impl_linux-64    7.5.0               hfca37b7_17    conda-forge
gfortran_linux-64         7.5.0               ha081f1e_29    conda-forge
ghostscript               9.53.3               he1b5a44_1    conda-forge
giflib                    5.2.1                h516909a_2    conda-forge
glib                      2.66.1               he1b5a44_1    conda-forge
gmp                       6.2.0                he1b5a44_3    conda-forge
gobject-introspection     1.66.1           py38h03d966d_1    conda-forge
graphite2                 1.3.13            he1b5a44_1001    conda-forge
graphviz                  2.42.3               h0511662_0    conda-forge
gsl                       2.5                  h294904e_1    conda-forge
gst-plugins-base          1.14.5               h0935bb2_2    conda-forge
gstreamer                 1.14.5               h36ae1b5_2    conda-forge
gxx_impl_linux-64         7.5.0               h7ea4de1_17    conda-forge
gxx_linux-64              7.5.0               h547f3ba_29    conda-forge
harfbuzz                  2.4.0                h9f30f68_3    conda-forge
hdf4                      4.2.13            hf30be14_1003    conda-forge
hdf5                      1.10.5          nompi_h3c11f04_1104    conda-forge
hydrofunctions            0.1.7                      py_1    conda-forge
icu                       64.2                 he1b5a44_1    conda-forge
idna                      2.10               pyh9f0ad1d_0    conda-forge
imagecodecs-lite          2019.12.3        py38hab2c0dc_3    conda-forge
imageio                   2.9.0                      py_0    conda-forge
imagemagick               7.0.10_6        pl526ha9fe49d_0    conda-forge
importlib-metadata        2.0.0                      py_1    conda-forge
importlib_metadata        2.0.0                         1    conda-forge
ipykernel                 5.3.4            py38h1cdfbd6_1    conda-forge
ipython                   7.18.1           py38h1cdfbd6_1    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.5.1              pyh9f0ad1d_1    conda-forge
jbig                      2.1               h516909a_2002    conda-forge
jedi                      0.17.2           py38h32f6830_1    conda-forge
jinja2                    2.11.2             pyh9f0ad1d_0    conda-forge
joblib                    0.17.0                     py_0    conda-forge
jpeg                      9d                   h516909a_0    conda-forge
json-c                    0.13.1            hbfbb72e_1002    conda-forge
jsonschema                3.2.0                      py_2    conda-forge
jupyter                   1.0.0                      py_2    conda-forge
jupyter_client            6.1.7                      py_0    conda-forge
jupyter_console           6.2.0                      py_0    conda-forge
jupyter_core              4.6.3            py38h32f6830_2    conda-forge
jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
kealib                    1.4.13               hec59c27_0    conda-forge
kernel-headers_linux-64   2.6.32              h77966d4_13    conda-forge
kiwisolver                1.2.0            py38hbf85e49_1    conda-forge
krb5                      1.16.4               h2fd8d38_0    conda-forge
lcms2                     2.11                 hbd6801e_0    conda-forge
ld_impl_linux-64          2.35                 h769bd43_9    conda-forge
libblas                   3.8.0               17_openblas    conda-forge
libcblas                  3.8.0               17_openblas    conda-forge
libclang                  9.0.1           default_hde54327_0    conda-forge
libcurl                   7.68.0               hda55be3_0    conda-forge
libdap4                   3.20.4               hd3bb157_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libffi                    3.2.1             he1b5a44_1007    conda-forge
libgcc-devel_linux-64     7.5.0               h42c25f5_17    conda-forge
libgcc-ng                 9.3.0               h5dbcf3e_17    conda-forge
libgdal                   3.0.4                h94bbfbd_3    conda-forge
libgfortran-ng            7.5.0               hae1eefd_17    conda-forge
libgfortran4              7.5.0               hae1eefd_17    conda-forge
libglib                   2.66.1               h0dae87d_1    conda-forge
libgomp                   9.3.0               h5dbcf3e_17    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
libkml                    1.3.0             hd79254b_1012    conda-forge
liblapack                 3.8.0               17_openblas    conda-forge
libllvm9                  9.0.1                he513fc3_1    conda-forge
libnetcdf                 4.7.4           nompi_h9f9fd6a_101    conda-forge
libopenblas               0.3.10          pthreads_hb3c22a3_5    conda-forge
libpng                    1.6.37               hed695b0_2    conda-forge
libpq                     12.2                 hae5116b_0    conda-forge
libpysal                  4.3.0                      py_0    conda-forge
librsvg                   2.50.1               h33a7fed_0    conda-forge
libsodium                 1.0.17               h516909a_0    conda-forge
libspatialindex           1.9.3                he1b5a44_3    conda-forge
libspatialite             4.3.0a            heb269f5_1037    conda-forge
libssh2                   1.9.0                hab1572f_5    conda-forge
libstdcxx-devel_linux-64  7.5.0               h4084dd6_17    conda-forge
libstdcxx-ng              9.3.0               h2ae2ef3_17    conda-forge
libtiff                   4.1.0                hc3755c2_3    conda-forge
libtool                   2.4.6             h516909a_1005    conda-forge
libuuid                   2.32.1            h14c3975_1000    conda-forge
libwebp                   1.0.2                h56121f0_5    conda-forge
libxcb                    1.13              h14c3975_1002    conda-forge
libxkbcommon              0.10.0               he1b5a44_0    conda-forge
libxml2                   2.9.10               hee79883_0    conda-forge
lz4-c                     1.9.2                he1b5a44_3    conda-forge
make                      4.3                  hd18ef5c_1    conda-forge
mako                      1.1.3              pyh9f0ad1d_0    conda-forge
mapboxgl                  0.10.2                     py_1    conda-forge
mapclassify               2.3.0                      py_0    conda-forge
markupsafe                1.1.1            py38h8df0ef7_2    conda-forge
matplotlib                3.3.2            py38h32f6830_1    conda-forge
matplotlib-base           3.3.2            py38h4d1ce4f_1    conda-forge
mercantile                1.1.6              pyh9f0ad1d_0    conda-forge
mistune                   0.8.4           py38h1e0a361_1002    conda-forge
monotonic                 1.5                        py_0    conda-forge
munch                     2.5.0                      py_0    conda-forge
nano                      2.9.8             hddfc1eb_1001    conda-forge
nbclean                   0.3.2              pyh5ca1d4c_0    conda-forge
nbclient                  0.5.1                      py_0    conda-forge
nbconvert                 6.0.7            py38h32f6830_1    conda-forge
nbformat                  5.0.8                      py_0    conda-forge
nbgrader                  0.6.1            py38h32f6830_0    conda-forge
nc-time-axis              1.2.0                      py_1    conda-forge
ncurses                   6.2                  he1b5a44_2    conda-forge
nest-asyncio              1.4.1                      py_0    conda-forge
netcdf4                   1.5.3           nompi_py38heb6102f_103    conda-forge
networkx                  2.5                        py_0    conda-forge
nltk                      3.4.4                      py_0    conda-forge
notebook                  6.1.4            py38h32f6830_1    conda-forge
nspr                      4.29                 he1b5a44_0    conda-forge
nss                       3.57                 he751ad9_0    conda-forge
numpy                     1.19.2           py38hbc27379_1    conda-forge
oauthlib                  3.0.1                      py_0    conda-forge
olefile                   0.46               pyh9f0ad1d_1    conda-forge
openjpeg                  2.3.1                h981e76c_3    conda-forge
openssl                   1.1.1h               h516909a_0    conda-forge
owslib                    0.20.0                     py_0    conda-forge
packaging                 20.4               pyh9f0ad1d_0    conda-forge
palettable                3.3.0                      py_0    conda-forge
pandas                    1.1.3            py38hc5bc63f_2    conda-forge
pandoc                    2.11.0.2             hd18ef5c_0    conda-forge
pandocfilters             1.4.2                      py_1    conda-forge
pango                     1.42.4               h7062337_4    conda-forge
papermill                 2.2.0                      py_1    conda-forge
parso                     0.7.1              pyh9f0ad1d_0    conda-forge
patsy                     0.5.1                      py_0    conda-forge
pcre                      8.44                 he1b5a44_0    conda-forge
perl                      5.26.2            h516909a_1006    conda-forge
pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    8.0.0            py38h9776b28_0    conda-forge
pip                       20.2.3                     py_0    conda-forge
pixman                    0.38.0            h516909a_1003    conda-forge
pkg-config                0.29.2            h516909a_1007    conda-forge
poppler                   0.67.0               h14e79db_8    conda-forge
poppler-data              0.4.9                         1    conda-forge
postgresql                12.2                 hf1211e9_0    conda-forge
proj                      6.3.1                hc80f0dc_1    conda-forge
prometheus_client         0.8.0              pyh9f0ad1d_0    conda-forge
prompt-toolkit            3.0.8                      py_0    conda-forge
prompt_toolkit            3.0.8                         0    conda-forge
pthread-stubs             0.4               h14c3975_1001    conda-forge
ptyprocess                0.6.0                   py_1001    conda-forge
pycodestyle               2.6.0              pyh9f0ad1d_0    conda-forge
pycosat                   0.6.3           py38h8df0ef7_1005    conda-forge
pycparser                 2.20               pyh9f0ad1d_2    conda-forge
pyepsg                    0.4.0                      py_0    conda-forge
pygments                  2.7.1                      py_0    conda-forge
pyjwt                     1.7.1                      py_0    conda-forge
pyopenssl                 19.1.0                     py_1    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyproj                    2.6.0            py38h95a477d_0    conda-forge
pyqt                      5.12.3           py38ha8c2ead_3    conda-forge
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtchart                 5.12                     pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
pyrsistent                0.17.3           py38h1e0a361_1    conda-forge
pysal                     2.1.0                      py_0    conda-forge
pyshp                     2.1.2              pyh9f0ad1d_0    conda-forge
pysocks                   1.7.1            py38h924ce5b_2    conda-forge
python                    3.8.6           h852b56e_0_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python-editor             1.0.4                      py_0    conda-forge
python-levenshtein        0.12.0          py38h1e0a361_1004    conda-forge
python_abi                3.8                      1_cp38    conda-forge
pytz                      2020.1             pyh9f0ad1d_0    conda-forge
pywavelets                1.1.1            py38hab2c0dc_3    conda-forge
pyyaml                    5.3.1            py38h8df0ef7_1    conda-forge
pyzmq                     19.0.1           py38ha71036d_0    conda-forge
qt                        5.12.5               hd8c4c69_1    conda-forge
qtconsole                 4.7.7              pyh9f0ad1d_0    conda-forge
qtpy                      1.9.0                      py_0    conda-forge
r-askpass                 1.1               r35hcdcec82_1    conda-forge
r-assertthat              0.2.1             r35h6115d3f_1    conda-forge
r-backports               1.1.6             r35hcdcec82_1    conda-forge
r-base                    3.5.1             hc461eb7_1012    conda-forge
r-base64enc               0.1_3           r35hcdcec82_1003    conda-forge
r-bh                      1.72.0_3          r35h6115d3f_0    conda-forge
r-bit                     1.1_15.2          r35hcdcec82_0    conda-forge
r-bitops                  1.0_6           r35hcdcec82_1003    conda-forge
r-brew                    1.0_6           r35h6115d3f_1002    conda-forge
r-broom                   0.5.6             r35h6115d3f_0    conda-forge
r-callr                   3.4.3             r35h6115d3f_0    conda-forge
r-class                   7.3_17            r35hcdcec82_0    conda-forge
r-classint                0.4_3             r35h9bbef5b_0    conda-forge
r-cli                     2.0.2             r35h6115d3f_0    conda-forge
r-clipr                   0.7.0             r35h6115d3f_0    conda-forge
r-codetools               0.2_16          r35h6115d3f_1001    conda-forge
r-colorspace              1.4_1             r35hcdcec82_1    conda-forge
r-commonmark              1.7             r35hcdcec82_1001    conda-forge
r-covr                    3.5.0             r35h0357c0b_0    conda-forge
r-cowplot                 1.0.0             r35h6115d3f_1    conda-forge
r-crayon                  1.3.4           r35h6115d3f_1002    conda-forge
r-crosstalk               1.1.0.1           r35h6115d3f_0    conda-forge
r-curl                    4.3               r35hcdcec82_0    conda-forge
r-cyphr                   1.1.0             r35h6115d3f_0    conda-forge
r-data.table              1.12.8            r35hcdcec82_0    conda-forge
r-dbi                     1.1.0             r35h6115d3f_0    conda-forge
r-desc                    1.2.0           r35h6115d3f_1002    conda-forge
r-devtools                2.3.0             r35h6115d3f_0    conda-forge
r-digest                  0.6.25            r35h0357c0b_1    conda-forge
r-dplyr                   0.8.5             r35h0357c0b_0    conda-forge
r-dt                      0.13              r35h6115d3f_0    conda-forge
r-dygraphs                1.1.1.6         r35h6115d3f_1002    conda-forge
r-e1071                   1.7_3             r35h0357c0b_0    conda-forge
r-ellipsis                0.3.0             r35hcdcec82_0    conda-forge
r-evaluate                0.14              r35h6115d3f_1    conda-forge
r-fansi                   0.4.1             r35hcdcec82_0    conda-forge
r-farver                  2.0.3             r35h0357c0b_0    conda-forge
r-ff                      2.2_14.2          r35he1b5a44_0    conda-forge
r-fnn                     1.1.3             r35h0357c0b_1    conda-forge
r-foreign                 0.8_76            r35hcdcec82_0    conda-forge
r-fs                      1.4.1             r35h0357c0b_0    conda-forge
r-generics                0.0.2           r35h6115d3f_1002    conda-forge
r-getpass                 0.2_2           r35h516909a_1003    conda-forge
r-gganimate               1.0.5             r35h6115d3f_0    conda-forge
r-ggforce                 0.3.1             r35h0357c0b_0    conda-forge
r-ggmap                   3.0.0             r35h6115d3f_1    conda-forge
r-ggplot2                 3.3.0             r35h6115d3f_0    conda-forge
r-ggraph                  2.0.2             r35h0357c0b_0    conda-forge
r-ggrepel                 0.8.2             r35h0357c0b_0    conda-forge
r-ggsn                    0.5.0             r35h6115d3f_1    conda-forge
r-ggthemes                4.2.0             r35h6115d3f_1    conda-forge
r-gh                      1.1.0             r35h6115d3f_0    conda-forge
r-git2r                   0.26.1            r35h7253d3a_1    conda-forge
r-glue                    1.4.0             r35hcdcec82_0    conda-forge
r-graphlayouts            0.7.0             r35h0357c0b_0    conda-forge
r-gridextra               2.3             r35h6115d3f_1002    conda-forge
r-gstat                   2.0_5             r35hcdcec82_0    conda-forge
r-gtable                  0.3.0             r35h6115d3f_2    conda-forge
r-hexbin                  1.28.1            r35h9bbef5b_0    conda-forge
r-highr                   0.8               r35h6115d3f_1    conda-forge
r-hms                     0.5.3             r35h6115d3f_0    conda-forge
r-htmltools               0.4.0             r35h0357c0b_0    conda-forge
r-htmlwidgets             1.5.1             r35h6115d3f_0    conda-forge
r-httpuv                  1.5.2             r35h0357c0b_1    conda-forge
r-httr                    1.4.1             r35h6115d3f_1    conda-forge
r-hunspell                3.0             r35h0357c0b_1001    conda-forge
r-igraph                  1.2.5             r35hd626d4e_0    conda-forge
r-ini                     0.3.1           r35h6115d3f_1002    conda-forge
r-intervals               0.15.2            r35h0357c0b_0    conda-forge
r-isoband                 0.2.1             r35h0357c0b_0    conda-forge
r-isocodes                2020.03.16        r35h6115d3f_0    conda-forge
r-janeaustenr             0.1.5           r35h6115d3f_1002    conda-forge
r-jpeg                    0.1_8.1           r35hcdcec82_0    conda-forge
r-jsonlite                1.6.1             r35hcdcec82_0    conda-forge
r-kernsmooth              2.23_17           r35hfa343cc_0    conda-forge
r-knitr                   1.28              r35h6115d3f_0    conda-forge
r-labeling                0.3             r35h6115d3f_1002    conda-forge
r-later                   1.0.0             r35h0357c0b_0    conda-forge
r-lattice                 0.20_41           r35hcdcec82_1    conda-forge
r-latticeextra            0.6_28          r35h6115d3f_1002    conda-forge
r-lazyeval                0.2.2             r35hcdcec82_1    conda-forge
r-leaflet                 2.0.3             r35h6115d3f_0    conda-forge
r-leaflet.providers       1.9.0             r35h6115d3f_0    conda-forge
r-lemon                   0.4.4             r35h6115d3f_0    conda-forge
r-lifecycle               0.2.0             r35h6115d3f_0    conda-forge
r-lubridate               1.7.8             r35h0357c0b_0    conda-forge
r-magick                  2.3               r35h0357c0b_0    conda-forge
r-magrittr                1.5             r35h6115d3f_1002    conda-forge
r-mapdata                 2.3.0           r35hcdcec82_1003    conda-forge
r-maps                    3.3.0           r35hcdcec82_1003    conda-forge
r-maptools                0.9_9             r35hcdcec82_0    conda-forge
r-markdown                1.1               r35hcdcec82_0    conda-forge
r-mass                    7.3_51.6          r35hcdcec82_1    conda-forge
r-matrix                  1.2_18            r35h7fa42b6_2    conda-forge
r-memoise                 1.1.0           r35h6115d3f_1003    conda-forge
r-mgcv                    1.8_31            r35h7fa42b6_0    conda-forge
r-microbenchmark          1.4_7             r35hcdcec82_0    conda-forge
r-mime                    0.9               r35hcdcec82_0    conda-forge
r-munsell                 0.5.0           r35h6115d3f_1002    conda-forge
r-nlme                    3.1_147           r35h9bbef5b_0    conda-forge
r-nlp                     0.2_0             r35h6115d3f_1    conda-forge
r-openssl                 1.4.1             r35he5c4762_0    conda-forge
r-pillar                  1.4.3             r35h6115d3f_0    conda-forge
r-pkgbuild                1.0.7             r35h6115d3f_0    conda-forge
r-pkgconfig               2.0.3             r35h6115d3f_0    conda-forge
r-pkgload                 1.0.2           r35h0357c0b_1001    conda-forge
r-plogr                   0.2.0           r35h6115d3f_1002    conda-forge
r-plotly                  4.9.2.1           r35h6115d3f_0    conda-forge
r-plyr                    1.8.6             r35h0357c0b_0    conda-forge
r-png                     0.1_7           r35hcdcec82_1003    conda-forge
r-polyclip                1.10_0            r35h0357c0b_1    conda-forge
r-praise                  1.0.0           r35h6115d3f_1003    conda-forge
r-prettyunits             1.1.1             r35h6115d3f_0    conda-forge
r-processx                3.4.2             r35hcdcec82_0    conda-forge
r-progress                1.2.2             r35h6115d3f_1    conda-forge
r-promises                1.1.0             r35h0357c0b_0    conda-forge
r-ps                      1.3.2             r35hcdcec82_0    conda-forge
r-purrr                   0.3.4             r35hcdcec82_0    conda-forge
r-r.methodss3             1.8.0             r35h6115d3f_0    conda-forge
r-r.oo                    1.23.0            r35h6115d3f_0    conda-forge
r-r.utils                 2.9.2             r35h6115d3f_0    conda-forge
r-r6                      2.4.1             r35h6115d3f_0    conda-forge
r-raster                  3.1_5             r35h0357c0b_0    conda-forge
r-rastervis               0.47              r35h6115d3f_0    conda-forge
r-rcmdcheck               1.3.3             r35h6115d3f_2    conda-forge
r-rcolorbrewer            1.1_2           r35h6115d3f_1002    conda-forge
r-rcpp                    1.0.4.6           r35h0357c0b_0    conda-forge
r-rcpparmadillo           0.9.870.2.0       r35h51c796c_0    conda-forge
r-rcppeigen               0.3.3.7.0         r35h0357c0b_0    conda-forge
r-rcurl                   1.98_1.2          r35hcdcec82_0    conda-forge
r-readr                   1.3.1           r35h0357c0b_1002    conda-forge
r-rematch2                2.1.2             r35h6115d3f_0    conda-forge
r-remotes                 2.1.1             r35h6115d3f_0    conda-forge
r-reshape2                1.4.4             r35h0357c0b_0    conda-forge
r-rex                     1.2.0             r35h6115d3f_0    conda-forge
r-rgdal                   1.4_8             r35h1ee3119_0    conda-forge
r-rgeos                   0.5_2             r35hb2de1b9_3    conda-forge
r-rgooglemaps             1.4.5.3           r35h6115d3f_0    conda-forge
r-rjson                   0.2.20          r35h0357c0b_1001    conda-forge
r-rjsonio                 1.3_1.4           r35h0357c0b_0    conda-forge
r-rlang                   0.4.5             r35hcdcec82_2    conda-forge
r-rmarkdown               2.1               r35h6115d3f_0    conda-forge
r-roxygen2                7.1.0             r35h0357c0b_0    conda-forge
r-rprojroot               1.3_2           r35h6115d3f_1002    conda-forge
r-rsaga                   1.3.0                     r35_1    conda-forge
r-rstudioapi              0.11              r35h6115d3f_0    conda-forge
r-rtweet                  0.7.0             r35h0357c0b_0    conda-forge
r-rversions               2.0.1             r35h6115d3f_0    conda-forge
r-scales                  1.1.0             r35h6115d3f_0    conda-forge
r-sessioninfo             1.1.1           r35h6115d3f_1001    conda-forge
r-sf                      0.9_2             r35h57f9e99_0    conda-forge
r-shapefiles              0.7               r35h6115d3f_1    conda-forge
r-slam                    0.1_47            r35hc57f18f_1    conda-forge
r-snowballc               0.7.0             r35hcdcec82_0    conda-forge
r-sodium                  1.1             r35hcdcec82_1001    conda-forge
r-sp                      1.4_1             r35hcdcec82_0    conda-forge
r-spacetime               1.2_3             r35h6115d3f_0    conda-forge
r-stopwords               2.0               r35h6115d3f_0    conda-forge
r-stringi                 1.4.6             r35h0e574ca_1    conda-forge
r-stringr                 1.4.0             r35h6115d3f_1    conda-forge
r-sys                     3.3               r35hcdcec82_0    conda-forge
r-testthat                2.3.2             r35h0357c0b_0    conda-forge
r-tibble                  3.0.1             r35hcdcec82_0    conda-forge
r-tidygraph               1.1.2             r35h0357c0b_1    conda-forge
r-tidyr                   1.0.2             r35h0357c0b_0    conda-forge
r-tidyselect              1.0.0             r35h6115d3f_0    conda-forge
r-tidytext                0.2.4             r35h6115d3f_0    conda-forge
r-tinytex                 0.22              r35h6115d3f_0    conda-forge
r-tm                      0.7_7             r35h0357c0b_0    conda-forge
r-tokenizers              0.2.1           r35h0357c0b_1001    conda-forge
r-tweenr                  1.0.1           r35h0357c0b_1001    conda-forge
r-units                   0.6_6             r35h0357c0b_0    conda-forge
r-usethis                 1.6.1             r35h6115d3f_0    conda-forge
r-utf8                    1.1.4           r35hcdcec82_1002    conda-forge
r-vctrs                   0.2.4             r35hcdcec82_0    conda-forge
r-viridis                 0.5.1           r35h6115d3f_1003    conda-forge
r-viridislite             0.3.0           r35h6115d3f_1002    conda-forge
r-webshot                 0.5.2             r35h6115d3f_0    conda-forge
r-whisker                 0.4               r35h6115d3f_0    conda-forge
r-widyr                   0.1.3             r35h6115d3f_0    conda-forge
r-withr                   2.2.0             r35h6115d3f_0    conda-forge
r-xfun                    0.13              r35h6115d3f_0    conda-forge
r-xml2                    1.3.2             r35h0357c0b_0    conda-forge
r-xopen                   1.0.0           r35h6115d3f_1002    conda-forge
r-xts                     0.12_0            r35hcdcec82_0    conda-forge
r-yaml                    2.2.1             r35hcdcec82_0    conda-forge
r-zeallot                 0.1.0           r35h6115d3f_1001    conda-forge
r-zoo                     1.8_7             r35hcdcec82_0    conda-forge
rasterio                  1.1.5            py38h033e0f6_1    conda-forge
rasterstats               0.14.0                     py_0    conda-forge
ratelim                   0.1.6                      py_2    conda-forge
readline                  8.0                  he28a2e2_2    conda-forge
requests                  2.24.0             pyh9f0ad1d_0    conda-forge
requests-oauthlib         1.3.0              pyh9f0ad1d_0    conda-forge
richdem                   0.3.4            py38hb3f55d8_0    conda-forge
rtree                     0.9.4            py38h08f867b_1    conda-forge
ruamel_yaml               0.15.80         py38h8df0ef7_1003    conda-forge
scikit-image              0.17.2           py38hc5bc63f_3    conda-forge
scikit-learn              0.23.2           py38hee58b96_0    conda-forge
scipy                     1.5.2            py38h8c5af15_2    conda-forge
seaborn                   0.11.0                        0    conda-forge
seaborn-base              0.11.0                     py_0    conda-forge
send2trash                1.5.0                      py_0    conda-forge
setuptools                49.6.0           py38h924ce5b_2    conda-forge
shapely                   1.7.1            py38hc7361b7_1    conda-forge
simplejson                3.17.2           py38h1e0a361_1    conda-forge
six                       1.15.0             pyh9f0ad1d_0    conda-forge
snuggs                    1.4.7                      py_0    conda-forge
soupsieve                 2.0.1                      py_1    conda-forge
sqlalchemy                1.3.20           py38h1e0a361_0    conda-forge
sqlite                    3.33.0               h4cf870e_1    conda-forge
statsmodels               0.12.0           py38hab2c0dc_1    conda-forge
suds-jurko                0.6             py38h32f6830_1004    conda-forge
sysroot_linux-64          2.12                h77966d4_13    conda-forge
tbb                       2020.2               hc9558a2_0    conda-forge
tenacity                  6.2.0                      py_1    conda-forge
terminado                 0.9.1            py38h32f6830_1    conda-forge
testpath                  0.4.4                      py_0    conda-forge
textblob                  0.15.3                     py_0    conda-forge
textwrap3                 0.9.2                      py_0    conda-forge
threadpoolctl             2.1.0              pyh5ca1d4c_0    conda-forge
tifffile                  2020.6.3                   py_0    conda-forge
tiledb                    1.7.0                h8efa9f0_4    conda-forge
tk                        8.6.10               hed695b0_1    conda-forge
tktable                   2.10                 h555a92e_3    conda-forge
toml                      0.10.1             pyh9f0ad1d_0    conda-forge
toolz                     0.11.1                     py_0    conda-forge
tornado                   6.0.4            py38h1e0a361_2    conda-forge
tqdm                      4.50.2             pyh9f0ad1d_0    conda-forge
traitlets                 5.0.5                      py_0    conda-forge
tweepy                    3.9.0              pyh9f0ad1d_0    conda-forge
tzcode                    2020a                h516909a_0    conda-forge
udunits2                  2.2.27.6          h4e0c4b3_1001    conda-forge
urllib3                   1.25.10                    py_0    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.35.1             pyh9f0ad1d_0    conda-forge
widgetsnbextension        3.5.1            py38h32f6830_2    conda-forge
wq.core                   1.1.0                      py_0    conda-forge
wq.io                     1.1.0                      py_0    conda-forge
wrapt                     1.12.1           py38h1e0a361_1    conda-forge
xarray                    0.16.1                     py_0    conda-forge
xerces-c                  3.2.2             h8412b87_1004    conda-forge
xlrd                      1.2.0              pyh9f0ad1d_1    conda-forge
xorg-kbproto              1.0.7             h14c3975_1002    conda-forge
xorg-libice               1.0.10               h516909a_0    conda-forge
xorg-libsm                1.2.3             h84519dc_1000    conda-forge
xorg-libx11               1.6.12               h516909a_0    conda-forge
xorg-libxau               1.0.9                h14c3975_0    conda-forge
xorg-libxdmcp             1.1.3                h516909a_0    conda-forge
xorg-libxext              1.3.4                h516909a_0    conda-forge
xorg-libxpm               3.5.13               h516909a_0    conda-forge
xorg-libxrender           0.9.10            h516909a_1002    conda-forge
xorg-libxt                1.1.5             h516909a_1003    conda-forge
xorg-renderproto          0.11.1            h14c3975_1002    conda-forge
xorg-xextproto            7.3.0             h14c3975_1002    conda-forge
xorg-xproto               7.0.31            h14c3975_1007    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
yaml                      0.2.5                h516909a_0    conda-forge
zeromq                    4.3.2                he1b5a44_2    conda-forge
zipp                      3.3.1                      py_0    conda-forge
zlib                      1.2.11            h516909a_1010    conda-forge
zstd                      1.4.5                h6597ccf_2    conda-forge

Details about conda and system ( conda info ):
$ conda info

     active environment : base
    active env location : /opt/conda
            shell level : 1
       user config file : /root/.condarc
 populated config files : /root/.condarc
          conda version : 4.8.5
    conda-build version : not installed
         python version : 3.8.6.final.0
       virtual packages : __glibc=2.24
       base environment : /opt/conda  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /opt/conda/pkgs
                          /root/.conda/pkgs
       envs directories : /opt/conda/envs
                          /root/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.5 requests/2.24.0 CPython/3.8.6 Linux/4.19.76-linuxkit debian/9 glibc/2.24
                UID:GID : 0:0
             netrc file : None
           offline mode : False

also require sciypy again?

Issue: I just tested the new cartopy v0.18.0 py39h32a4312_6. Thanks for adding matplotlib again. However, this does still not seem to be the minimum required packages to create a map/ figure. It at least scipy is also required. So I wonder if scipy should also be added back.

conda create -n cartopy_raw cartopy ipython
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
ax = plt.axes(projection=ccrs.PlateCarree())
ModuleNotFoundError: No module named 'scipy'

Full traceback

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-0c7b41aab6cf> in <module>
----> 1 ax = plt.axes(projection=ccrs.PlateCarree())

~/conda/envs/cartopy_raw/lib/python3.9/site-packages/matplotlib/pyplot.py in axes(arg, **kwargs)
    962 
    963     if arg is None:
--> 964         return subplot(111, **kwargs)
    965     else:
    966         return gcf().add_axes(arg, **kwargs)

~/conda/envs/cartopy_raw/lib/python3.9/site-packages/matplotlib/pyplot.py in subplot(*args, **kwargs)
   1140 
   1141     fig = gcf()
-> 1142     ax = fig.add_subplot(*args, **kwargs)
   1143     bbox = ax.bbox
   1144     axes_to_delete = []

~/conda/envs/cartopy_raw/lib/python3.9/site-packages/matplotlib/figure.py in add_subplot(self, *args, **kwargs)
   1386                 args = tuple(map(int, str(args[0])))
   1387             projection_class, kwargs, key = \
-> 1388                 self._process_projection_requirements(*args, **kwargs)
   1389             ax = self._axstack.get(key)  # search axes with this key in stack
   1390             if ax is not None:

~/conda/envs/cartopy_raw/lib/python3.9/site-packages/matplotlib/figure.py in _process_projection_requirements(self, polar, projection, *args, **kwargs)
   1104             projection_class = projections.get_projection_class(projection)
   1105         elif hasattr(projection, '_as_mpl_axes'):
-> 1106             projection_class, extra_kwargs = projection._as_mpl_axes()
   1107             kwargs.update(**extra_kwargs)
   1108         else:

~/conda/envs/cartopy_raw/lib/python3.9/site-packages/cartopy/crs.py in _as_mpl_axes(self)
    183 
    184     def _as_mpl_axes(self):
--> 185         import cartopy.mpl.geoaxes as geoaxes
    186         return geoaxes.GeoAxes, {'map_projection': self}
    187 

~/conda/envs/cartopy_raw/lib/python3.9/site-packages/cartopy/mpl/geoaxes.py in <module>
     48 import cartopy.mpl.patch as cpatch
     49 from cartopy.mpl.slippy_image_artist import SlippyImageArtist
---> 50 from cartopy.vector_transform import vector_scalar_to_grid
     51 
     52 

~/conda/envs/cartopy_raw/lib/python3.9/site-packages/cartopy/vector_transform.py in <module>
     24 
     25 import numpy as np
---> 26 from scipy.interpolate import griddata
     27 
     28 

ModuleNotFoundError: No module named 'scipy'

Environment (conda list):
$ conda list
# packages in environment at /home/mathause/conda/envs/cartopy_raw:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.1                      py_0    conda-forge
c-ares                    1.17.1               h36c2ea0_0    conda-forge
ca-certificates           2020.12.5            ha878542_0    conda-forge
cartopy                   0.18.0           py39h32a4312_6    conda-forge
certifi                   2020.12.5        py39hf3d152e_0    conda-forge
cycler                    0.10.0                     py_2    conda-forge
decorator                 4.4.2                      py_0    conda-forge
freetype                  2.10.4               he06d7ca_0    conda-forge
geos                      3.8.1                he1b5a44_0    conda-forge
ipython                   7.19.0           py39hef51801_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
jedi                      0.17.2           py39hf3d152e_1    conda-forge
jpeg                      9d                   h516909a_0    conda-forge
kiwisolver                1.3.1            py39h081fc7a_0    conda-forge
krb5                      1.17.2               h926e7f8_0    conda-forge
lcms2                     2.11                 hcbb858e_1    conda-forge
ld_impl_linux-64          2.35.1               hed1e6ac_1    conda-forge
libblas                   3.9.0                3_openblas    conda-forge
libcblas                  3.9.0                3_openblas    conda-forge
libcurl                   7.71.1               hcdd3856_8    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libffi                    3.3                  h58526e2_2    conda-forge
libgcc-ng                 9.3.0               h5dbcf3e_17    conda-forge
libgfortran-ng            7.5.0               hae1eefd_17    conda-forge
libgfortran4              7.5.0               hae1eefd_17    conda-forge
libgomp                   9.3.0               h5dbcf3e_17    conda-forge
liblapack                 3.9.0                3_openblas    conda-forge
libnghttp2                1.41.0               h8cfc5f6_2    conda-forge
libopenblas               0.3.12          pthreads_hb3c22a3_1    conda-forge
libpng                    1.6.37               hed695b0_2    conda-forge
libssh2                   1.9.0                hab1572f_5    conda-forge
libstdcxx-ng              9.3.0               h2ae2ef3_17    conda-forge
libtiff                   4.2.0                hdc55705_0    conda-forge
libwebp-base              1.1.0                h516909a_3    conda-forge
lz4-c                     1.9.2                he1b5a44_3    conda-forge
matplotlib-base           3.3.3            py39h98787fa_0    conda-forge
ncurses                   6.2                  h58526e2_4    conda-forge
numpy                     1.19.4           py39hdbf815f_2    conda-forge
olefile                   0.46               pyh9f0ad1d_1    conda-forge
openssl                   1.1.1i               h7f98852_0    conda-forge
parso                     0.7.1              pyh9f0ad1d_0    conda-forge
pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
pickleshare               0.7.5           py39hde42818_1002    conda-forge
pillow                    8.0.1            py39h397ff4d_0    conda-forge
pip                       20.3.3             pyhd8ed1ab_0    conda-forge
proj                      7.1.1                h966b41f_3    conda-forge
prompt-toolkit            3.0.8              pyha770c72_0    conda-forge
ptyprocess                0.6.0                   py_1001    conda-forge
pygments                  2.7.3              pyhd8ed1ab_0    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyshp                     2.1.2              pyh9f0ad1d_0    conda-forge
python                    3.9.1           hffdb5ce_1_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python_abi                3.9                      1_cp39    conda-forge
readline                  8.0                  he28a2e2_2    conda-forge
setuptools                49.6.0           py39h079e4ff_2    conda-forge
shapely                   1.7.1            py39hfa2dc8b_1    conda-forge
six                       1.15.0             pyh9f0ad1d_0    conda-forge
sqlite                    3.34.0               h74cdb3f_0    conda-forge
tk                        8.6.10               hed695b0_1    conda-forge
tornado                   6.1              py39hbd71b63_0    conda-forge
traitlets                 5.0.5                      py_0    conda-forge
tzdata                    2020d                h516909a_0    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
wheel                     0.36.2             pyhd3deb0d_0    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
zlib                      1.2.11            h516909a_1010    conda-forge
zstd                      1.4.5                h6597ccf_2    conda-forge

Details about conda and system ( conda info ):
$ conda info

Cartopy crashes (again?) on OSX

I'm running into a problem that looks very like a reappearance of the error described in #36 but with, I think, the latest versions of cartopy and shapely. I would be grateful if somebody could take a quick look and let me know if it looks like I'm doing something silly.

The specific error that I'm seeing is that importing cartopy results in an error message and the python interpreter crashes:

Python 3.6.1 |Continuum Analytics, Inc.| (default, Mar 22 2017, 19:25:17) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cartopy
Invalid argument (must be a Polygon)
Geometry must be a Point or LineString
Assertion failed: (0 != cs), function GEOSCoordSeq_getSize_r, file geos_ts_c.cpp, line 3991.
Abort trap: 6

I have a version of geos installed via homebrew and removing this makes this crash go away. However, I more-or-less need that external version of geos because one of the things the python code I'm running does is drive a legacy Fortran application. To compile that I need gmt4, and this needs geos...

The other potential workaround in #36 is to downgrade shapely to 1.5.17. I've tried this too but end up with a different error:

Python 3.6.1 |Continuum Analytics, Inc.| (default, Mar 22 2017, 19:25:17) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cartopy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "//anaconda/envs/lema-foe/lib/python3.6/site-packages/cartopy/__init__.py", line 111, in 
<module>
    import cartopy.feature
  File "//anaconda/envs/lema-foe/lib/python3.6/site-packages/cartopy/feature.py", line 32, in 
<module>
    import cartopy.io.shapereader as shapereader
  File "//anaconda/envs/lema-foe/lib/python3.6/site-packages/cartopy/io/shapereader.py", line 52, in <module>
    import shapefile
ModuleNotFoundError: No module named 'shapefile'

I think this is because the downgrade leaves me with the wrong version of pyshp, but I've not been able to find a more useful older version. Any suggestions?

Some more information on my environment. Output from conda list:

# packages in environment at //anaconda/envs/lema-foe:
#
appnope                   0.1.0                    py36_0  
astropy                   2.0.2            py36h4654939_4  
bleach                    1.5.0                    py36_0  
cartopy                   0.16.0                   py36_0    conda-forge
cycler                    0.10.0                   py36_0  
decorator                 4.0.11                   py36_0  
entrypoints               0.2.2                    py36_1  
freetype                  2.5.5                         2  
geos                      3.6.2                hfc679d8_2    conda-forge
hdf5                      1.8.17                        1  
healpy                    1.11.0                   py36_1    conda-forge
html5lib                  0.999                    py36_0  
icu                       54.1                          0  
ipykernel                 4.6.1                    py36_0  
ipython                   6.0.0                    py36_0  
ipython_genutils          0.2.0                    py36_0  
ipywidgets                6.0.0                    py36_0  
jbig                      2.1                           0  
jinja2                    2.9.6                    py36_0  
jpeg                      9b                            0  
jsonschema                2.6.0                    py36_0  
jupyter                   1.0.0                    py36_3  
jupyter_client            5.0.1                    py36_0  
jupyter_console           5.1.0                    py36_0  
jupyter_core              4.3.0                    py36_0  
libiconv                  1.14                          0  
libpng                    1.6.27                        0  
libtiff                   4.0.6                         3  
libxml2                   2.9.4                         0  
libxslt                   1.1.29                        0  
llvmlite                  0.20.0                   py36_0  
lxml                      3.8.0                    py36_0  
markupsafe                0.23                     py36_2  
matplotlib                2.0.0               np112py36_0  
mistune                   0.7.4                    py36_0  
mkl                       2017.0.1                      0  
nbconvert                 5.1.1                    py36_0  
nbformat                  4.3.0                    py36_0  
nose                      1.3.7                    py36_1  
notebook                  5.0.0                    py36_0  
numba                     0.35.0              np112py36_0  
numexpr                   2.6.2               np112py36_0  
numpy                     1.12.1                   py36_0  
olefile                   0.44                     py36_0  
openssl                   1.0.2k                        1  
owslib                    0.16.0                     py_0    conda-forge
pandocfilters             1.4.1                    py36_0  
path.py                   10.3.1                   py36_0  
pexpect                   4.2.1                    py36_0  
pickleshare               0.7.4                    py36_0  
pillow                    4.2.1                    py36_0  
pip                       9.0.1                    py36_1  
proj4                     4.9.3                         5    conda-forge
prompt_toolkit            1.0.14                   py36_0  
ptyprocess                0.5.1                    py36_0  
py                        1.4.34                   py36_0  
pyepsg                    0.3.2                    py36_0    conda-forge
pygments                  2.2.0                    py36_0  
pyparsing                 2.1.4                    py36_0  
pyproj                    1.9.5.1                  py36_0  
pyqt                      5.6.0                    py36_2  
pyshp                     1.2.12                     py_0    conda-forge
pytables                  3.3.0               np112py36_0  
pytest                    3.2.1                    py36_0  
pytest-runner             2.11.1                   py36_0  
python                    3.6.1                         0  
python-dateutil           2.6.0                    py36_0  
pytz                      2017.2                   py36_0  
pyyaml                    3.12                     py36_0  
pyzmq                     16.0.2                   py36_0  
qt                        5.6.2                         0  
qtconsole                 4.3.0                    py36_0  
readline                  6.2                           2  
requests                  2.14.2                   py36_0  
scipy                     0.19.0              np112py36_0  
setuptools                27.2.0                   py36_0  
shapely                   1.6.4            py36h164cb2d_1    conda-forge
simplegeneric             0.8.1                    py36_1  
sip                       4.18                     py36_0  
six                       1.10.0                   py36_0  
sqlite                    3.13.0                        0  
terminado                 0.6                      py36_0  
testpath                  0.3                      py36_0  
tk                        8.5.18                        0  
tornado                   4.5.1                    py36_0  
traitlets                 4.3.2                    py36_0  
wcwidth                   0.1.7                    py36_0   
wheel                     0.29.0                   py36_0  
widgetsnbextension        2.0.0                    py36_0  
xz                        5.2.2                         1  
yaml                      0.1.6                         0  
zlib                      1.2.8                         3

Output from conda info:

Current conda install:

           platform : osx-64
      conda version : 4.3.4
   conda is private : False
  conda-env version : 4.3.4
conda-build version : 1.8.2
     python version : 2.7.12.final.0
   requests version : 2.12.4
   root environment : //anaconda  (writable)
default environment : //anaconda/envs/lema-foe
   envs directories : //anaconda/envs
      package cache : //anaconda/pkgs
       channel URLs : https://repo.continuum.io/pkgs/free/osx-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/osx-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/osx-64
                      https://repo.continuum.io/pkgs/pro/noarch
                      https://conda.anaconda.org/conda-forge/osx-64
                      https://conda.anaconda.org/conda-forge/noarch
        config file : /Users/earawa/.condarc
       offline mode : False
         user-agent : conda/4.3.4 requests/2.12.4 CPython/2.7.12 Darwin/15.6.0 OSX/10.11.6
            UID:GID : 502:20

Change to point to PyPI

The next time we update for a new version, we should point to the tarball on PyPI (which should be automatically uploaded when the release is tagged now). The github tarball is guaranteed to change between when the release is cut and the next time a commit is made to master (see #53).

Problems installing cartopy 0.18.0b1

From https://gitter.im/SciTools/cartopy

@mymindisopen Feb 14 22:49
... Do I need to build from source in order to try beta or can I do it with conda?

@xylar Feb 17 21:26
@mymindisopen, you can now install cartopy 0.18.0b1 with:

conda install -c conda-forge/label/cartopy_dev cartopy

@mymindisopen 03:00
Thank you, sir. It's weird, I have the same installation of conda on both my PC and laptop. With the command you provide, my PC installs cartopy 0.18.0b1 just fine, but my laptop installs 0.17 with the same command.

@mymindisopen 03:07
(same installation meaning same conda version and same python version)

@mymindisopen 04:33
When I try to specifically

conda install -c conda-forge/label/cartopy_dev cartopy=0.18.0b1

My laptops gives me :

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - cartopy=0.18.0b1 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.7

Although I have the same python version on my PC.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.