twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.75k stars 2.72k forks source link

cchardet can't install in mac OS 10.14 #227

Closed yuehengwu closed 6 years ago

yuehengwu commented 6 years ago

'pip3 install cchardet' get some problems !

I notice the wrong-log contain 'library not found for -lstdc++',How should I solve the problem in mac OS 10.14 ?

here is log :

... clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated] clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated] ld: library not found for -lstdc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/bin/clang++' failed with exit status 1

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

Command "/Users/test/PycharmProjects/TWINT/venv/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/4d/xnms9dqx1hg681lyf2ht7dtr0000gp/T/pip-install-g79gn1a3/cchardet/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/4d/xnms9dqx1hg681lyf2ht7dtr0000gp/T/pip-record-mq3ir1k2/install-record.txt --single-version-externally-managed --compile --install-headers /Users/test/PycharmProjects/TWINT/venv/bin/../include/site/python3.6/cchardet" failed with error code 1 in /private/var/folders/4d/xnms9dqx1hg681lyf2ht7dtr0000gp/T/pip-install-g79gn1a3/cchardet/

pielco11 commented 6 years ago

Please only submit issues related to Twint

chuqiaoshen commented 5 years ago

twint installation problem with cchardet error.

I have similar problem when I use pip install twint. MacOS Majove, python 3.6.6 anacoda env would you please kindly help us out?

Failed building wheel for cchardet Running setup.py clean for cchardet Failed to build cchardet Installing collected packages: cchardet, twint Running setup.py install for cchardet ... error Complete output from command /Users/catherineshen/anaconda3/envs/airflow/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/gc/nyw3jm5n47d9g9x2fxjv1_tw0000gn/T/pip-install-9c6rdwtu/cchardet/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/gc/nyw3jm5n47d9g9x2fxjv1tw0000gn/T/pip-record-7v95m04/install-record.txt --single-version-externally-managed --compile:

pielco11 commented 5 years ago

I do not really why this is happening. Anyway, googling around I found that some users are reporting this as a solution pip3 install cchardet==1.0.0

cursivemess commented 4 years ago

I do not really why this is happening. Anyway, googling around I found that some users are reporting this as a solution pip3 install cchardet==1.0.0

That did not work for me, I still get the following :

error: command 'gcc' failed with exit status 1

guxi11 commented 4 years ago

https://github.com/TokenMarketNet/smart-contracts/issues/115 works Command: MACOSX_DEPLOYMENT_TARGET=10.13 pip3 install cchardet