aio-libs / aiodns

Simple DNS resolver for asyncio
https://pypi.python.org/pypi/aiodns
MIT License
532 stars 69 forks source link

Import error in termux #98

Closed thewhiteh4t closed 5 months ago

thewhiteh4t commented 3 years ago

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"...
XniceCraft commented 1 year ago

https://github.com/saghul/pycares/issues/78#issuecomment-445508989

pycares module cause the issue

adbenitez commented 1 year ago

having this issue recently, pycares fails to install

Happ1ness-dev commented 11 months ago

pycares fails to install

Same here

Happ1ness-dev commented 11 months ago

Fixed it by following this: https://github.com/saghul/pycares/issues/78#issuecomment-445508989

Trandaitai1212 commented 4 weeks ago

How to fix Screenshot_20240822-234959