You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using the wheel from pypi
~ $ pip install wreq
Collecting wreq
Downloading wreq-0.12.1-cp314-abi3-android_24_arm64_v8a.whl.metadata (9.2 kB)
Downloading wreq-0.12.1-cp314-abi3-android_24_arm64_v8a.whl (4.0 MB)
━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 526.7 kB/s 0:00:07
Installing collected packages: wreq
Successfully installed wreq-0.12.1
~ $ python
Python 3.14.6 (main, Jul 5 2026, 10:35:55) [Clang 21.0.0 (https://android.googlesource.com/toolchain/llvm-project 5e96669f0 on android
Type "help", "copyright", "credits" or "license" for more information.
import wreq
Traceback (most recent call last):
File "", line 1, in
import wreq
File "/data/data/com.termux/files/usr/lib/python3.14/site-packages/wreq/init.py", line 3, in
from .wreq import *
ImportError: dlopen failed: library "libc++_shared.so" not found: needed by /data/data/com.termux/files/usr/lib/python3.14/site-packages/wreq/wreq.abi3.so in namespace (default)
so I build my own wheel with the default cargo. I have to link version specific .so library so the abi3 wheel cannot be compatible with different version of python
then I remove the abi3 tag and build my wheel successfully
but when redirections found, the default 10 hops function improperly
I have to specifically set the redirect policy to follow redirects.
Also the DNS resolution is not compatible with termux
due to the special environment of termux, hickory cannot read the system config and degrade to its default Google dns
Activity
0x676e67 commentedon Sep 25, 2026
Just disable default features during the build like this:
maturin build --release --no-default-features