-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[Bug]: Python GRPC Library Error #21272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What is the output of |
|
Thank you for reporting the issue. I can reproduce it in my system and suspect that build system is using bundled abseil-cpp instead of the system one. I'll try to investigate it more. |
Do you have previous version(deb package) of abseil-cpp? |
Those are removed automatically after a new version. Quickly, try to downgrade to 1.66.0 or 1.65.5. You have to downgrade both python-grpcio and libgrpc. |
Related to llvm/llvm-project#102443. In short, clang changed their mangling rules since clang-18, and the symbols exported by abseil-cpp happens to trigger this. Bumping abseil-cpp and their revdeps should resolve this. |
Please install all the debs in https://github.com/termux/termux-packages/actions/runs/10645181804?pr=21303 and test if it works. Thanks! |
It's now working 😀 |
Problem description
Yesterday I have installed this package python-grpcio(version 1.66.1) from official termux-repo.
But when I tried to import this package I got this error.
What steps will reproduce the bug?
ipython Python 3.11.9 (main, Aug 13 2024, 11:27:10) [Clang 18.0.1 (https://android.googlesource.com/toolchain/llvm-project d8003a456 Type 'copyright', 'credits' or 'license' for more information IPython 8.26.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import grpc ----------------------------------------------------------------------ImportError Traceback (most recent call last)Cell In[1], line 1 ----> 1 import grpc File /data/data/com.termux/files/usr/lib/python3.11/site-packages/grpc/__init__.py:22 19 import logging 20 import sys ---> 22 from grpc import _compression 23 from grpc._cython import cygrpc as _cygrpc 24 from grpc._runtime_protos import protos File /data/data/com.termux/files/usr/lib/python3.11/site-packages/grpc/_compression.py:20 17 from typing import Optional 19 import grpc ---> 20 from grpc._cython import cygrpc 21 from grpc._typing import MetadataType 23 NoCompression = cygrpc.CompressionAlgorithm.none ImportError: dlopen failed: cannot locate symbol "_ZN4absl12lts_2024011612log_internal10LogMessagelsIiTnNSt6__ndk19enable_ifIXntsr4absl16HasAbslStringifyIT_EE5valueEiE4typeELi0EEERS2_RKS6_" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/grpc/_cython/cygrpc.cpython-311.so"...
What is the expected behavior?
Few weeks ago , it works perfectly fine in my project .But today I got this error.I tried to build it manually,but also failed .
If somebody could help me, thanks in advance.
System information
The text was updated successfully, but these errors were encountered: