Skip to content

Installation issue: py-grpcio #3392

@adamjstewart

Description

@adamjstewart

Steps to reproduce the issue

> spack spec --reuse py-grpcio
[+]  py-grpcio@1.75.0 build_system=python_pip platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]      ^abseil-cpp@20240722.0~ipo+shared build_system=cmake build_type=Release cxxstd=17 generator=make platform=darwin os=tahoe target=m2 %cxx=apple-clang@17.0.0
[+]          ^cmake@3.31.11~doc+ncurses+ownlibs~qtgui build_system=generic build_type=Release platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]              ^curl@8.15.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs:=shared,static tls:=openssl platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]                  ^nghttp2@1.67.1 build_system=autotools platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]          ^gmake@4.4.1~guile build_system=generic platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[e]      ^apple-clang@17.0.0 build_system=bundle platform=darwin os=tahoe target=aarch64 
[+]      ^c-ares@1.28.1~ipo build_system=cmake build_type=Release generator=make platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]      ^compiler-wrapper@1.0 build_system=generic platform=darwin os=tahoe target=m2 
[+]      ^openssl@3.6.0~docs+shared build_system=generic certs=mozilla platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]          ^ca-certificates-mozilla@2025-08-12 build_system=generic platform=darwin os=tahoe target=m2 
[+]          ^compiler-wrapper@1.0 build_system=generic platform=darwin os=tahoe target=m2 
[+]          ^perl@5.42.0+cpanm+opcode+open+shared+threads build_system=generic platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]              ^berkeley-db@18.1.40+cxx~docs+stl build_system=autotools patches:=26090f4,b231fcc platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]      ^py-cython@3.2.3 build_system=python_pip platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]      ^py-pip@25.1.1 build_system=generic platform=darwin os=tahoe target=m2 
[+]      ^py-setuptools@79.0.1 build_system=generic platform=darwin os=tahoe target=m2 
[+]      ^py-typing-extensions@4.15.0 build_system=python_pip platform=darwin os=tahoe target=m2 
[+]          ^py-flit-core@3.12.0 build_system=python_pip platform=darwin os=tahoe target=m2 
[+]      ^py-wheel@0.45.1 build_system=generic platform=darwin os=tahoe target=m2 
[+]      ^python@3.14.2+bz2+ctypes+dbm~debug~freethreading+libxml2+lzma+optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib+zstd build_system=generic platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[e]          ^apple-libuuid@1353.100.2 build_system=bundle platform=darwin os=tahoe target=aarch64 
[+]          ^bzip2@1.0.8~debug~pic+shared build_system=generic platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]              ^diffutils@3.12 build_system=autotools platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]          ^expat@2.7.3~libbsd build_system=autotools platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]          ^gdbm@1.25 build_system=autotools patches:=cdba23a platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]          ^gettext@0.23.1+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]              ^libiconv@1.18 build_system=autotools libs:=shared,static platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]              ^libxml2@2.13.5~http+pic~python+shared build_system=autotools platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]              ^tar@1.35 build_system=autotools zip=pigz platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]                  ^pigz@2.8 build_system=makefile platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]          ^libffi@3.5.2 build_system=autotools platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]          ^ncurses@6.5-20250705~symlinks+termlib abi=none build_system=autotools patches:=7a351bc platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]          ^pkgconf@2.5.1 build_system=autotools platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]          ^readline@8.3 build_system=autotools patches:=21f0a03 platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]          ^sqlite@3.50.4+column_metadata+fts+rtree build_system=autotools platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]          ^xz@5.6.3~pic build_system=autotools libs:=shared,static platform=darwin os=tahoe target=m2 %c=apple-clang@17.0.0
[+]          ^zstd@1.5.7+programs build_system=makefile compression:=none libs:=shared,static platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]      ^python-venv@1.0 build_system=generic platform=darwin os=tahoe target=m2 
[+]      ^re2@2024-07-02~icu~ipo+pic+shared build_system=cmake build_type=Release generator=make platform=darwin os=tahoe target=m2 %cxx=apple-clang@17.0.0
[+]      ^zlib-ng@2.2.4+compat+new_strategies+opt+pic+shared build_system=autotools platform=darwin os=tahoe target=m2 %c,cxx=apple-clang@17.0.0
[+]          ^gnuconfig@2024-07-27 build_system=generic platform=darwin os=tahoe target=m2 

Error message

Error message
> python3
Python 3.14.2 (main, Feb  3 2026, 14:50:17) [Clang 17.0.0 (clang-1700.6.3.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import grpc
Traceback (most recent call last):
  File "", line 1, in 
    import grpc
  File "/Users/Adam/spack/var/spack/environments/default/.spack-env/view/lib/python3.14/site-packages/grpc/__init__.py", line 22, in 
    from grpc import _compression
  File "/Users/Adam/spack/var/spack/environments/default/.spack-env/view/lib/python3.14/site-packages/grpc/_compression.py", line 20, in 
    from grpc._cython import cygrpc
ImportError: dlopen(/Users/Adam/spack/var/spack/environments/default/.spack-env/view/lib/python3.14/site-packages/grpc/_cython/cygrpc.cpython-314-darwin.so, 0x0002): symbol not found in flat namespace '__ZN4absl12lts_2024072210IsNotFoundERKNS0_6StatusE'

Information on your system

Additional information

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions