Skip to content

some bugs on termux #609

Closed
Closed

Description

@SaintInta

termux 0.119.0 beta3
python 3.14.6-1

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

  1. 0x676e67 commented on Sep 25, 2026

    @0x676e67
    Owner

    Just disable default features during the build like this: maturin build --release --no-default-features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions