-
Notifications
You must be signed in to change notification settings - Fork 697
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
can't install package cartopy
#85
Comments
Yes, there seem to be a few problems here:
I think this is a complete recipe:
LMK if that doesn't get you unstuck. (I'll keep this open for the first issue until I know more.) |
oic -- the "freeze before cython is installed" was actually "craig is too impatient to wait for output to start appearing". so the remaining issue here was cartopy install instructions; the above seems to work, and I'll add them to the install snippets. @swnesbitt LMK if you're still blocked. |
We've seen external users get confused trying to install cartopy, since the website doesn't really have install instructions, eg #85. This CL just adds a snippet with install instructions, and adds it to the list of imports we offer pointers for. RELNOTES: n/a Build log: https://console.cloud.google.com/gcr/builds/35109215-56ad-4dcd-8311-cb89dd6713f7?project=colab-datalab Pushed docker image: gcr.io/colab-datalab/datalab:auto-188827433-2018-03-12T22-13-15-342061983-07-00 PiperOrigin-RevId: 188931623
I'm having trouble installing Cartopy with the same test as above. The error printed in colab is: Geometry must be a Point or LineString and the error in the log is: python3: geos_ts_c.cpp:3991: int GEOSCoordSeq_getSize_r(GEOSContextHandle_t, const geos::geom::CoordinateSequence*, unsigned int*): Assertion `0 != cs' failed. |
See SciTools/cartopy#1346 (comment):
|
No luck:
produces the same error.
|
Had to install one more
|
I recently hit issues with this too, specifically the issue @jrieffel mentioned, which I was I was able to resolve by following the advice from SciTools/cartopy#871. In case it's useful to others my install is: # not using `python-cartopy` package as it doesn't include all build dependencies
!apt-get install libproj-dev proj-bin proj-data
!apt-get install libgeos-dev
# shapely needs to be reinstalled to use the same geos install as cartopy (https://github.com/SciTools/cartopy/issues/871)
!pip uninstall -y shapely
!pip install --no-binary shapely shapely
!pip install cartopy This then produces output with something like: import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1, projection=ccrs.PlateCarree())
ax.set_extent([80, 170, -45, 30], crs=ccrs.PlateCarree())
ax.stock_img()
ax.add_feature(cfeature.LAND)
ax.add_feature(cfeature.COASTLINE)
plt.show() |
I tried installing Scitools'
cartopy
packageand the installer reports errors.
The text was updated successfully, but these errors were encountered: