question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't install ccxt on macos pycares issue

See original GitHub issue
  • OS: macOS 10.14.3 (18D109)
  • Programming Language version: Python 3.7
  • CCXT version: none, can’t install

i’m getting these errors about pycares during `pip install ccxt’

build/temp.macosx-10.14-x86_64-3.7/_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);
             ~~~~~~~~~~~~~~~~~~~~                         ^~
    /usr/local/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.14-x86_64-3.7/_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.14-x86_64-3.7/_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.14-x86_64-3.7/_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.14-x86_64-3.7/_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.14-x86_64-3.7/_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.14-x86_64-3.7/_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.14-x86_64-3.7/_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.0/include/stddef.h:120:24: note: expanded from macro 'offsetof'
lots of errors with same output and then

 fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    error: command 'clang' failed with exit status 1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

52reactions
Queeqcommented, Mar 30, 2019

Found this solution: https://github.com/saghul/aiodns/issues/55#issuecomment-456330612

uninstall c-ares from /usr/local. pycares depends on the bundled version

Had to force uninstall as there are other dependables (e.g. Wireshark): brew uninstall --ignore-dependencies c-ares and it solved the issue. Wireshark still works though 😃

Also for the note (not sure if related), before removing c-ares, I did xcode-select --install according to the hint here: https://github.com/twintproject/twint/issues/101#issuecomment-390654795

0reactions
kroitorcommented, Mar 30, 2019

@Queeq thanks for the feedback, it will be very helpful to others!

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Can't install ccxt package becouse of pycares error
I wanted to install ccxt package in a virtual environment I have created python3 -m venv venv_cryptofolio. and I encountered an error, ...
Read more >
Install — ccxt 2.4.43 documentation
The easiest way to install the ccxt library is to use builtin package managers: ... The problem with in-browser usage is that the...
Read more >
could not build wheels for pandas, numpy which use pep 517 ...
This seems to be a frequent issue when installing packages with python. First, check to ensure you have activated the virtualenv you think...
Read more >
ERROR: Could not build wheels for yarl, multidict in Python
To solve the error "Could not build wheels for yarl, multidict which use PEP ... --user --upgrade pip # 👇️ Installing directly from...
Read more >
ccxt · PyPI
If you can't find a cryptocurrency exchange in the list above and want it to be added, post a link to it by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found