-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 while trying to run python file #4778
Comments
Maybe this link help you,saghul/pycares#78 |
I tried it but still getting the error even though i have commented out getservbyport. |
I figured it out pycare has a new config file for android after 3.0.0 so you have to change config_android instead of config_linux. |
Will you please elaborate it in detail... |
Link to upstream issue isn't detail ? saghul/pycares#78
Because didn't searched. File is in pycares source code. saghul/pycares#78 (comment) well describes what should be done exactly. |
Thanks but after saving the edited "deps/c-ares/src/config_linux/ares_config.h" file in test it still shows the same error don't know why? |
Have you tried to edit deps/c-ares/src/config_android/ares_config.h instead ? |
i changed this file to fix the problem |
Thanks it worked for me |
I have been getting this error while trying to run a python script:
ImportError: dlopen failed: cannot locate symbol "getservbyport_r" referenced by "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pycares/_cares.cpython-38.so"...
I have tried to reinstall cpython and pycare but nothing has worked so far.i have been getting missing module/other errors before this but i have fixed all of them.but i couldn't figure this one nor can find any other problem lime this.
Error is from aiodns -> pycare -> cpython
(I have gevent installed which is the only solution to this problem that i found online)
The text was updated successfully, but these errors were encountered: