saghul / pycares

Python interface for c-ares
https://pypi.org/project/pycares/
MIT License
163 stars 74 forks source link

Compile errors when installing on Python 3.9.1 on macOS #136

Closed jml closed 3 years ago

jml commented 3 years ago

Hi!

I'm trying to install pycares on Python 3.9.1 on macOS 11.1. It errors out (see attached log).

I don't think this happens on Linux, because it builds fine in our Docker images.

pycares-install-log.txt

0xHJK commented 3 years ago

try pip install wheel

jml commented 3 years ago

Same.

pycares-install-log-wheel.txt

erikcw commented 3 years ago

Also running into the same issue.

hynek commented 3 years ago

See #139 y'all

jml commented 3 years ago

Here's how I worked around this:

brew uninstall --ignore-dependencies c-ares
pip install pycares
brew install c-ares

YMMV.

fernandofleury commented 3 years ago

@jml That unfortunately didn't do the trick for me. I have the "exact" log error. But maybe I have c-ares installed differently?

ibexnet commented 3 years ago

Anyone has fix the issue? I have the same problem under OSX 10.14 with python 3.9.4 (pip 21.0.1). I already tried to uninstall c-ares via brew but the problem still the same.

I have installed pycares under python2 but I need on python3 and I can't find a solution. Please somebody has any suggestions?

kigawas commented 3 years ago

Anyone has fix the issue? I have the same problem under OSX 10.14 with python 3.9.4 (pip 21.0.1). I already tried to uninstall c-ares via brew but the problem still the same.

I have installed pycares under python2 but I need on python3 and I can't find a solution. Please somebody has any suggestions?

See my patch on #141

ibexnet commented 3 years ago

thanks a lot! you save my time

johnthagen commented 3 years ago

In my case, we had pinned pycares==3.1.1, which doesn't have a Python 3.9 wheel. Updating our pinned version to 4.0.0 fixed the issue.

SpenTappy commented 3 years ago

Thank you @johnthagen! This solved it for me. 3.1.1 was for Python 3.8.