Skip to content
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

Import error in termux #98

Closed
thewhiteh4t opened this issue May 23, 2021 · 4 comments
Closed

Import error in termux #98

thewhiteh4t opened this issue May 23, 2021 · 4 comments

Comments

@thewhiteh4t
Copy link

thewhiteh4t commented May 23, 2021

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
Copy link

XniceCraft commented Apr 15, 2023

saghul/pycares#78 (comment)

pycares module cause the issue

@adbenitez
Copy link

adbenitez commented Sep 1, 2023

having this issue recently, pycares fails to install

@Happ1ness-dev
Copy link

pycares fails to install

Same here

@Happ1ness-dev
Copy link

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

@saghul saghul closed this as completed Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants