[MacPorts] #68259: grpc @1.48.4_5 python3.8 fails to import grpc.

MacPorts noreply at macports.org
Wed Sep 27 19:12:36 UTC 2023


#68259: grpc @1.48.4_5 python3.8 fails to import grpc.
----------------------+--------------------
 Reporter:  jhjensen  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  grpc
----------------------+--------------------
 This happens with both python3.8 and python3.10
 I would have tried python3.11, but there are no py311-grpcio py311-grpcio-
 tools ports.

 My mac died last week, and this was working on it.  This is a fresh
 install of macports.

 {{{
 @fll-mp239$ python3.8
 Python 3.8.18 (default, Aug 25 2023, 02:23:15)
 [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import grpc
 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/grpc/__init__.py", line 22, in <module>
     from grpc import _compression
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/grpc/_compression.py", line 15, in <module>
     from grpc._cython import cygrpc
 ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/grpc/_cython/cygrpc.cpython-38-darwin.so, 0x0002): symbol
 not found in flat namespace
 '__ZN4absl12lts_202308026Status16kMovedFromStringE'
 >>> ^D
  /opt
 @fll-mp239$ port installed | grep grpc
   grpc @1.48.4_5 (active)
   grpcurl @1.8.7_0
   grpcurl @1.8.8_0 (active)
   py38-grpcio @1.48.4_5 (active)
   py310-grpcio @1.48.4_5 (active)
   py310-grpcio-tools @1.48.4_5 (active)
  /opt
 }}}

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


More information about the macports-tickets mailing list