[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #WNC-125958]: OSError MetPy



Greetings!

It looks like there's a problem with your install of shapely. How did you 
update cartopy? 

Can you send the output of:

  conda list -n unidata-workshop

Ryan

> Hi everyone,
> 
> I just started back learning python/MetPy using the metpy Monday videos. I
> was able to get pretty far through the videos with no errors about a year
> ago, however now that I am starting back at it again, I get the following
> error when just trying to make a basic map with cartopy...any suggestions?
> My guess is that I may need to roll back my version to what was used back
> in late 2018/early 2019.
> 
> OSError                                   Traceback (most recent call
> last)<ipython-input-2-bc74630199ec> in <module>()      2       3 ---->
> 4 import cartopy.crs as ccrs      5       6 import cartopy.feature as
> cfeat
> ~/miniconda3/envs/unidata-workshop/lib/python3.6/site-packages/cartopy/__init__.py
> in <module>()    105 # Commonly used sub-modules. Imported here to
> provide end-user    106 # convenience.--> 107 import cartopy.crs
> 108 import cartopy.feature  # noqa: F401  (flake8 = unused import)
> ~/miniconda3/envs/unidata-workshop/lib/python3.6/site-packages/cartopy/crs.py
> in <module>()     30      31 import numpy as np---> 32 import
> shapely.geometry as sgeom     33 from shapely.prepared import prep
> 34 import six
> ~/miniconda3/envs/unidata-workshop/lib/python3.6/site-packages/shapely/geometry/__init__.py
> in <module>()      2 """      3 ----> 4 from .base import CAP_STYLE,
> JOIN_STYLE      5 from .geo import box, shape, asShape, mapping      6
> from .point import Point, asPoint
> ~/miniconda3/envs/unidata-workshop/lib/python3.6/site-packages/shapely/geometry/base.py
> in <module>()     15      16 from shapely.affinity import
> affine_transform---> 17 from shapely.coords import CoordinateSequence
> 18 from shapely.errors import WKBReadingError, WKTReadingError
> 19 from shapely.ftools import wraps
> ~/miniconda3/envs/unidata-workshop/lib/python3.6/site-packages/shapely/coords.py
> in <module>()      6 from ctypes import byref, c_double, c_uint      7
> ----> 8 from shapely.geos import lgeos      9 from shapely.topology
> import Validating     10
> ~/miniconda3/envs/unidata-workshop/lib/python3.6/site-packages/shapely/geos.py
> in <module>()    111         _lgeos = load_dll('geos_c',
> fallbacks=alt_paths)    112 --> 113     free = load_dll('c').free
> 114     free.argtypes = [c_void_p]    115     free.restype = None
> ~/miniconda3/envs/unidata-workshop/lib/python3.6/site-packages/shapely/geos.py
> in load_dll(libname, fallbacks, mode)     54         raise OSError(
> 55             "Could not find lib {0} or load any of its variants
> {1}.".format(---> 56                 libname, fallbacks or []))     57
> 58 _lgeos = None
> OSError: Could not find lib c or load any of its variants [].
> 
> 


Ticket Details
===================
Ticket ID: WNC-125958
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.