saghul/aiodns

Import error in termux

thewhiteh4t opened this issue · 5 comments

aiodns version : v3.0.0
pycares version : v4.0.0

steps to reproduce :

python -c "import aiodns"

Exception :

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/aiodns/__init__.py", line 4, in <module>
    import pycares
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/pycares-4.0.0-py3.9-linux-aarch64.egg/pycares/__init__.py", line 2, in <module>
    from ._cares import ffi as _ffi, lib as _lib
ImportError: dlopen failed: cannot locate symbol "getservbyport_r" referenced by "/data/data/com.termux/files/usr/lib/python3.9/site-packages/pycares-4.0.0-py3.9-linux-aarch64.egg/pycares/_cares.cpython-39.so"...

saghul/pycares#78 (comment)

pycares module cause the issue

having this issue recently, pycares fails to install

pycares fails to install

Same here

Fixed it by following this:
saghul/pycares#78 (comment)