-
Notifications
You must be signed in to change notification settings - Fork 371
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
Intermittent Access Violation when attempting to plot cartopy GeoAxes #1435
Comments
Basically, there is something wrong with the conda-forge build currently available! I was able to fix this access violation issue by doing the following:
Everything now works as expected. I can also now add a network drive path to the config dictionary in ../cartopy/init.py and it works (previously with the conda-forge install this would never work), so now I am not re-downloading shapefiles to individual user accounts each time I'm plotting naturalearth features. I will leave this open and allow those with better knowledge close it out (with the hopes they'll know how to fix the issue with the conda-forge build). |
I think the problem here was that you had cartopy installed from the conda-forge channel but shapely from defaults. I think the correct solution is to install shapely from conda-forge also since this will guarantee they are using the same version of geos (which is the underlying problem here). |
You also want to ensure that you have
|
This appears to be a conda channel mixup, not a Cartopy issue. |
Description
I started getting an Access violation when attempting to plot a custom map, but was able to replicate using one of the cartopy examples from the documentation. It seems like Cartopy isn't passing something properly through Shapely (that's the module throwing the error); something having to do with the underlying shapefiles needed, perhaps? I assume its throwing a fit because the GeoAxes instance is essentially null/missing somehow. The thing is, this issue is intermittent; I am able to plot anything and everything once I get it to run once. But, when this error gets thrown, no script that calls cartopy will work.
Code to reproduce
Traceback
Full environment definition
Operating system
Windows 10 Enterprise x64, build 1803
Cartopy version
0.17
conda list
pip list
The text was updated successfully, but these errors were encountered: