saghul / pycares

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

Pip install with pycares not working #102

Closed ericHgorski closed 4 years ago

ericHgorski commented 5 years ago

Trying to install pycares as part of a dependency for twint. I am using a virtual enviornment in PyCharm with python version 3.6. When I try to install I get this error:

Command "/Users/Eric/PycharmProjects/TwitterAnalytics/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/c0/65zcr9k533j1z2r8wzrl9bv40000gn/T/pip-install-i2vjx9pj/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/c0/65zcr9k533j1z2r8wzrl9bv40000gn/T/pip-record-jvuu3k2e/install-record.txt --single-version-externally-managed --compile --install-headers /Users/Eric/PycharmProjects/TwitterAnalytics/venv/include/site/python3.6/pycares --user --prefix=" failed with error code 1 in /private/var/folders/c0/65zcr9k533j1z2r8wzrl9bv40000
saghul commented 5 years ago

That doesn't say much, alas. Do you perhaps have a more complete error message? Also, any chance you have c-ares already installed with Homebrew?

saghul commented 4 years ago

No follow-up, closing.

maxmellen commented 3 years ago

Unlinking c-ares from my Homebrew installation did the trick! (brew unlink c-ares) Leaving this here for anyone that might run into the same issue.