Opened 5 years ago
Closed 3 years ago
#60207 closed defect (worksforme)
cannot import cartopy : libgeos_c image not found
Reported by: | bernard-giroux (Bernard Giroux) | Owned by: | petrrr |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | ||
Port: | py-cartopy |
Description
I cannot import cartopy. I tried both python 3.7 and 3.8 with same result, on 2 different machines. macport just self updated + outdated packages upgraded as well. The error message is
% python3.8 Python 3.8.2 (default, Feb 27 2020, 19:58:50) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cartopy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cartopy/__init__.py", line 107, in <module> import cartopy.crs File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cartopy/crs.py", line 32, in <module> import shapely.geometry as sgeom File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/shapely/geometry/__init__.py", line 4, in <module> from .base import CAP_STYLE, JOIN_STYLE File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/shapely/geometry/base.py", line 18, in <module> from shapely.coords import CoordinateSequence File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/shapely/coords.py", line 8, in <module> from shapely.geos import lgeos File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/shapely/geos.py", line 112, in <module> _lgeos = CDLL(os.path.join(sys.prefix, 'lib', 'libgeos_c.dylib')) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 373, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/libgeos_c.dylib, 6): image not found
Change History (3)
comment:1 Changed 5 years ago by bernard-giroux (Bernard Giroux)
comment:2 Changed 5 years ago by mf2k (Frank Schima)
Cc: | petr@… removed |
---|---|
Owner: | set to petrrr |
Status: | new → assigned |
comment:3 Changed 3 years ago by reneeotten (Renee Otten)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
with the current version (0.19.0.post1) I do not see this issue and, therefore, assume it has been resolved. I am going to close this ticket; if the problem persists feel free to reopen.
Note: See
TracTickets for help on using
tickets.
libgeos_c.dylib is in /opt/local/lib