Giter Club home page Giter Club logo

Comments (12)

Jufik avatar Jufik commented on June 25, 2024 3

from pycares.

saghul avatar saghul commented on June 25, 2024

This is very weird, I don't think I've seen it before :-/

from pycares.

saghul avatar saghul commented on June 25, 2024

Oh, good to know, thanks!

from pycares.

raveenb avatar raveenb commented on June 25, 2024

this works for me to 3.7.2 has some problem it seems

from pycares.

myndtt avatar myndtt commented on June 25, 2024

I meet the some problem in 3.6 too.

from pycares.

saghul avatar saghul commented on June 25, 2024

Can you paste your error please? I want to see if it's any different.

from pycares.

devanshuDesai avatar devanshuDesai commented on June 25, 2024

Seeing this error on 10.14 too.
` ----------------------------------------
Failed building wheel for pycares
Running setup.py clean for pycares
Failed to build pycares
Installing collected packages: pycares, aiodns, schedule, geographiclib, geopy, twint
Running setup.py install for pycares ... error
Complete output from command /Users/devanshu/miniconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-install-zzfuv_bd/pycares/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-record-sblq5n_n/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/errno.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/_version.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/init.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/utils.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/main.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
running build_ext
generating cffi module 'build/temp.macosx-10.7-x86_64-3.6/_cares.c'
creating build/temp.macosx-10.7-x86_64-3.6
building '_cares' extension
creating build/temp.macosx-10.7-x86_64-3.6/build
creating build/temp.macosx-10.7-x86_64-3.6/build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/deps
creating build/temp.macosx-10.7-x86_64-3.6/deps/c-ares
creating build/temp.macosx-10.7-x86_64-3.6/deps/c-ares/src
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/devanshu/miniconda3/include -arch x86_64 -I/Users/devanshu/miniconda3/include -arch x86_64 -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -I/Users/devanshu/miniconda3/include/python3.6m -Ideps/c-ares/src -Ideps/c-ares/src/config_darwin -c build/temp.macosx-10.7-x86_64-3.6/_cares.c -o build/temp.macosx-10.7-x86_64-3.6/build/temp.macosx-10.7-x86_64-3.6/_cares.o
build/temp.macosx-10.7-x86_64-3.6/_cares.c:2573:55: error: too many arguments to function call, expected 6, have 7
return ares_parse_ptr_reply(x0, x1, x2, x3, x4, x5, x6);
~~~~~~~~~~~~~~~~~~~~ ^~
/Users/devanshu/miniconda3/include/ares.h:581:14: note: 'ares_parse_ptr_reply' declared here
CARES_EXTERN int ares_parse_ptr_reply(const unsigned char *abuf,
^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:2657:59: error: too many arguments to function call, expected 6, have 7
{ result = ares_parse_ptr_reply(x0, x1, x2, x3, x4, x5, x6); }
~~~~~~~~~~~~~~~~~~~~ ^~
/Users/devanshu/miniconda3/include/ares.h:581:14: note: 'ares_parse_ptr_reply' declared here
CARES_EXTERN int ares_parse_ptr_reply(const unsigned char abuf,
^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4316:14: error: no member named 'ttl' in 'struct ares_mx_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_mx_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4332:14: error: no member named 'ttl' in 'struct ares_naptr_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_naptr_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4372:14: error: no member named 'ttl' in 'struct ares_soa_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_soa_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4386:14: error: no member named 'ttl' in 'struct ares_srv_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_srv_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4399:14: error: no member named 'ttl' in 'struct ares_txt_ext'
(void)((p->ttl) | 0); /
check that 'struct ares_txt_ext.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4411:14: error: no member named 'ttl' in 'struct ares_txt_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_txt_reply.ttl' is an integer */
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4666:12: error: no member named 'ttl' in 'ares_mx_reply'
{ "ttl", offsetof(struct ares_mx_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4667:48: error: no member named 'ttl' in 'struct ares_mx_reply'
sizeof(((struct ares_mx_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4690:12: error: no member named 'ttl' in 'ares_naptr_reply'
{ "ttl", offsetof(struct ares_naptr_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4691:51: error: no member named 'ttl' in 'struct ares_naptr_reply'
sizeof(((struct ares_naptr_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4762:12: error: no member named 'ttl' in 'ares_soa_reply'
{ "ttl", offsetof(struct ares_soa_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4763:49: error: no member named 'ttl' in 'struct ares_soa_reply'
sizeof(((struct ares_soa_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4780:12: error: no member named 'ttl' in 'ares_srv_reply'
{ "ttl", offsetof(struct ares_srv_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4781:49: error: no member named 'ttl' in 'struct ares_srv_reply'
sizeof(((struct ares_srv_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4795:12: error: no member named 'ttl' in 'ares_txt_ext'
{ "ttl", offsetof(struct ares_txt_ext, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4796:47: error: no member named 'ttl' in 'struct ares_txt_ext'
sizeof(((struct ares_txt_ext *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4807:12: error: no member named 'ttl' in 'ares_txt_reply'
{ "ttl", offsetof(struct ares_txt_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/Users/devanshu/miniconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-install-zzfuv_bd/pycares/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-record-sblq5n_n/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-install-zzfuv_bd/pycares/
dempred-backend on  master [$!] took 24s
❯ conda install -c conda-forge pycares
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • pycares

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

dempred-backend on  master [$!] took 1m 47s
❯ brew uninstall --ignore-dependencies c-ares
Error: No such keg: /usr/local/Cellar/c-ares
dempred-backend on  master [$!] took 3s
❯ rf kjkdhgd
dempred-backend on  master [$!]
❯ brew install pycares
Updating Homebrew...
Error: No available formula with the name "pycares"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
dempred-backend on  master [$!] took 26s
❯ pi pycares
Collecting pycares
Using cached https://files.pythonhosted.org/packages/85/de/cd46a73e43e206a6ad1e9cf9cc893c3ed1b21caf57f1e0a8d9a119d290eb/pycares-3.0.0.tar.gz
Requirement already satisfied: cffi>=1.5.0 in /Users/devanshu/miniconda3/lib/python3.6/site-packages (from pycares) (1.11.5)
Requirement already satisfied: pycparser in /Users/devanshu/miniconda3/lib/python3.6/site-packages (from cffi>=1.5.0->pycares) (2.19)
Building wheels for collected packages: pycares
Running setup.py bdist_wheel for pycares ... error
Complete output from command /Users/devanshu/miniconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-install-jcr16hpj/pycares/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-wheel-6epkmcjo --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/errno.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/_version.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/init.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/utils.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/main.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
running build_ext
generating cffi module 'build/temp.macosx-10.7-x86_64-3.6/_cares.c'
creating build/temp.macosx-10.7-x86_64-3.6
building '_cares' extension
creating build/temp.macosx-10.7-x86_64-3.6/build
creating build/temp.macosx-10.7-x86_64-3.6/build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/deps
creating build/temp.macosx-10.7-x86_64-3.6/deps/c-ares
creating build/temp.macosx-10.7-x86_64-3.6/deps/c-ares/src
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/devanshu/miniconda3/include -arch x86_64 -I/Users/devanshu/miniconda3/include -arch x86_64 -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -I/Users/devanshu/miniconda3/include/python3.6m -Ideps/c-ares/src -Ideps/c-ares/src/config_darwin -c build/temp.macosx-10.7-x86_64-3.6/_cares.c -o build/temp.macosx-10.7-x86_64-3.6/build/temp.macosx-10.7-x86_64-3.6/_cares.o
build/temp.macosx-10.7-x86_64-3.6/_cares.c:2573:55: error: too many arguments to function call, expected 6, have 7
return ares_parse_ptr_reply(x0, x1, x2, x3, x4, x5, x6);
~~~~~~~~~~~~~~~~~~~~ ^~
/Users/devanshu/miniconda3/include/ares.h:581:14: note: 'ares_parse_ptr_reply' declared here
CARES_EXTERN int ares_parse_ptr_reply(const unsigned char *abuf,
^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:2657:59: error: too many arguments to function call, expected 6, have 7
{ result = ares_parse_ptr_reply(x0, x1, x2, x3, x4, x5, x6); }
~~~~~~~~~~~~~~~~~~~~ ^~
/Users/devanshu/miniconda3/include/ares.h:581:14: note: 'ares_parse_ptr_reply' declared here
CARES_EXTERN int ares_parse_ptr_reply(const unsigned char abuf,
^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4316:14: error: no member named 'ttl' in 'struct ares_mx_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_mx_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4332:14: error: no member named 'ttl' in 'struct ares_naptr_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_naptr_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4372:14: error: no member named 'ttl' in 'struct ares_soa_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_soa_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4386:14: error: no member named 'ttl' in 'struct ares_srv_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_srv_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4399:14: error: no member named 'ttl' in 'struct ares_txt_ext'
(void)((p->ttl) | 0); /
check that 'struct ares_txt_ext.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4411:14: error: no member named 'ttl' in 'struct ares_txt_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_txt_reply.ttl' is an integer */
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4666:12: error: no member named 'ttl' in 'ares_mx_reply'
{ "ttl", offsetof(struct ares_mx_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4667:48: error: no member named 'ttl' in 'struct ares_mx_reply'
sizeof(((struct ares_mx_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4690:12: error: no member named 'ttl' in 'ares_naptr_reply'
{ "ttl", offsetof(struct ares_naptr_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4691:51: error: no member named 'ttl' in 'struct ares_naptr_reply'
sizeof(((struct ares_naptr_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4762:12: error: no member named 'ttl' in 'ares_soa_reply'
{ "ttl", offsetof(struct ares_soa_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4763:49: error: no member named 'ttl' in 'struct ares_soa_reply'
sizeof(((struct ares_soa_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4780:12: error: no member named 'ttl' in 'ares_srv_reply'
{ "ttl", offsetof(struct ares_srv_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4781:49: error: no member named 'ttl' in 'struct ares_srv_reply'
sizeof(((struct ares_srv_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4795:12: error: no member named 'ttl' in 'ares_txt_ext'
{ "ttl", offsetof(struct ares_txt_ext, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4796:47: error: no member named 'ttl' in 'struct ares_txt_ext'
sizeof(((struct ares_txt_ext *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4807:12: error: no member named 'ttl' in 'ares_txt_reply'
{ "ttl", offsetof(struct ares_txt_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'gcc' failed with exit status 1


Failed building wheel for pycares
Running setup.py clean for pycares
Failed to build pycares
Installing collected packages: pycares
Running setup.py install for pycares ... error
Complete output from command /Users/devanshu/miniconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-install-jcr16hpj/pycares/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-record-5u9yoi7u/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/errno.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/_version.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/init.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/utils.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
copying src/pycares/main.py -> build/lib.macosx-10.7-x86_64-3.6/pycares
running build_ext
generating cffi module 'build/temp.macosx-10.7-x86_64-3.6/_cares.c'
creating build/temp.macosx-10.7-x86_64-3.6
building '_cares' extension
creating build/temp.macosx-10.7-x86_64-3.6/build
creating build/temp.macosx-10.7-x86_64-3.6/build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/deps
creating build/temp.macosx-10.7-x86_64-3.6/deps/c-ares
creating build/temp.macosx-10.7-x86_64-3.6/deps/c-ares/src
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/devanshu/miniconda3/include -arch x86_64 -I/Users/devanshu/miniconda3/include -arch x86_64 -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -I/Users/devanshu/miniconda3/include/python3.6m -Ideps/c-ares/src -Ideps/c-ares/src/config_darwin -c build/temp.macosx-10.7-x86_64-3.6/_cares.c -o build/temp.macosx-10.7-x86_64-3.6/build/temp.macosx-10.7-x86_64-3.6/_cares.o
build/temp.macosx-10.7-x86_64-3.6/_cares.c:2573:55: error: too many arguments to function call, expected 6, have 7
return ares_parse_ptr_reply(x0, x1, x2, x3, x4, x5, x6);
~~~~~~~~~~~~~~~~~~~~ ^~
/Users/devanshu/miniconda3/include/ares.h:581:14: note: 'ares_parse_ptr_reply' declared here
CARES_EXTERN int ares_parse_ptr_reply(const unsigned char *abuf,
^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:2657:59: error: too many arguments to function call, expected 6, have 7
{ result = ares_parse_ptr_reply(x0, x1, x2, x3, x4, x5, x6); }
~~~~~~~~~~~~~~~~~~~~ ^~
/Users/devanshu/miniconda3/include/ares.h:581:14: note: 'ares_parse_ptr_reply' declared here
CARES_EXTERN int ares_parse_ptr_reply(const unsigned char abuf,
^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4316:14: error: no member named 'ttl' in 'struct ares_mx_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_mx_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4332:14: error: no member named 'ttl' in 'struct ares_naptr_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_naptr_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4372:14: error: no member named 'ttl' in 'struct ares_soa_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_soa_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4386:14: error: no member named 'ttl' in 'struct ares_srv_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_srv_reply.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4399:14: error: no member named 'ttl' in 'struct ares_txt_ext'
(void)((p->ttl) | 0); /
check that 'struct ares_txt_ext.ttl' is an integer /
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4411:14: error: no member named 'ttl' in 'struct ares_txt_reply'
(void)((p->ttl) | 0); /
check that 'struct ares_txt_reply.ttl' is an integer */
~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4666:12: error: no member named 'ttl' in 'ares_mx_reply'
{ "ttl", offsetof(struct ares_mx_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4667:48: error: no member named 'ttl' in 'struct ares_mx_reply'
sizeof(((struct ares_mx_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4690:12: error: no member named 'ttl' in 'ares_naptr_reply'
{ "ttl", offsetof(struct ares_naptr_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4691:51: error: no member named 'ttl' in 'struct ares_naptr_reply'
sizeof(((struct ares_naptr_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4762:12: error: no member named 'ttl' in 'ares_soa_reply'
{ "ttl", offsetof(struct ares_soa_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4763:49: error: no member named 'ttl' in 'struct ares_soa_reply'
sizeof(((struct ares_soa_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4780:12: error: no member named 'ttl' in 'ares_srv_reply'
{ "ttl", offsetof(struct ares_srv_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4781:49: error: no member named 'ttl' in 'struct ares_srv_reply'
sizeof(((struct ares_srv_reply *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4795:12: error: no member named 'ttl' in 'ares_txt_ext'
{ "ttl", offsetof(struct ares_txt_ext, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4796:47: error: no member named 'ttl' in 'struct ares_txt_ext'
sizeof(((struct ares_txt_ext *)0)->ttl),
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
build/temp.macosx-10.7-x86_64-3.6/_cares.c:4807:12: error: no member named 'ttl' in 'ares_txt_reply'
{ "ttl", offsetof(struct ares_txt_reply, ttl),
^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/Users/devanshu/miniconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-install-jcr16hpj/pycares/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-record-5u9yoi7u/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/j0/8vhbm9ys3dz_mlrctdt87jcr0000gn/T/pip-install-jcr16hpj/pycares/`

from pycares.

saghul avatar saghul commented on June 25, 2024

@devanshuDesai Your error is different. You seem to gave c-ares installed system wide. As the REAME mentions, that's not supported.

from pycares.

1zg12 avatar 1zg12 commented on June 25, 2024

encountered same issue with python 3.7.4 on osx 10.14.6. looks like the pycares 3.0.0 doesn't work well with the in-built c-ares from osx.

from pycares.

hanc00l avatar hanc00l commented on June 25, 2024

I encountered same problem.Uninstall the c-ares by "brew uninstall c-ares" and "pip3 install pycares" ok.

from pycares.

1zg12 avatar 1zg12 commented on June 25, 2024

I encountered same problem.Uninstall the c-ares by "brew uninstall c-ares" and "pip3 install pycares" ok.

same here. just did the same, and worked.

from pycares.

saghul avatar saghul commented on June 25, 2024

Yes, it's documented as not working due to ABI differences.

from pycares.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.