[MacPorts] #60207: cannot import cartopy : libgeos_c image not found

MacPorts noreply at macports.org
Thu Mar 19 19:58:27 UTC 2020


#60207: cannot import cartopy : libgeos_c image not found
----------------------------+------------------------
 Reporter:  bernard-giroux  |      Owner:  (none)
     Type:  defect          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:  2.6.2
 Keywords:                  |       Port:  py-cartopy
----------------------------+------------------------
 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60207>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list