Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cartopy and Basemap wheels are broken on macOS #99

Open
daniviga opened this issue Jun 19, 2018 · 1 comment
Open

Cartopy and Basemap wheels are broken on macOS #99

daniviga opened this issue Jun 19, 2018 · 1 comment
Assignees

Comments

@daniviga
Copy link
Contributor

daniviga commented Jun 19, 2018

It complains about libgeos and goes into segfault

To reproduce:

pip install http://ftp.openquake.org/wheelhouse/macos/py35/Shapely-1.6.4.post1-cp35-cp35m-macosx_10_9_intel.macosx_10_9_x86_64.whl
pip install http://ftp.openquake.org/wheelhouse/macos/py35/matplotlib-2.1.2-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
pip install http://cdn.ftp.openquake.net/wheelhouse/macos/py35/Cartopy-0.16.0-cp35-cp35m-macosx_10_6_intel.whl
import cartopy.crs as ccrs
import matplotlib.pyplot as plt

ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines()

plt.show()
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap as Basemap

llon, ulon, llat, ulat = (94.0000,142.0000, -11.986, 8.0000)
m = Basemap(llon,llat,ulon,ulat,projection='merc')
@daniviga
Copy link
Contributor Author

daniviga commented Jun 20, 2018

That's a DLL hell:

SciTools/cartopy#805
SciTools/cartopy#738
shapely/shapely#416
shapely/shapely#553

Shapely is altering libgeos' symbols on the fly causing segfaults when another code is loading the original library.

@daniviga daniviga changed the title Cartopy wheel is broken on macOS Cartopy and Basemap wheels are broken on macOS Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant