matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
780 stars 392 forks source link

Compatibility with pyproj 2 #458

Closed sscherfke closed 5 years ago

sscherfke commented 5 years ago

basemap is not yet compatible with pyproj 2.* (which uses proj.4 v6):

...
    from mpl_toolkits.basemap import Basemap, Polygon
.../lib/python3.7/site-packages/mpl_toolkits/basemap/__init__.py:152: in <module>
    epsgf = open(os.path.join(pyproj.pyproj_datadir,'epsg'))
E   AttributeError: module 'pyproj' has no attribute 'pyproj_datadir'
huisaddison commented 5 years ago

Yes, it looks like some people are working on a fix at https://github.com/matplotlib/basemap/pull/454

I was able to continue using basemap by reverting pyproj to version 1.9.6

WeatherGod commented 5 years ago

closed by #454