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.65k stars 2.72k forks source link

Error installing Twint via Pipenv #845

Open Jacksole opened 3 years ago

Jacksole commented 3 years ago

Issue Template

Please use this template!

Initial Check

If the issue is a request please specify that it is a request in the title (Example: [REQUEST] more features). If this is a question regarding 'twint' please specify that it's a question in the title (Example: [QUESTION] What is x?). Please only submit issues related to 'twint'. Thanks.

Make sure you've checked the following:

Command Ran

pipenv install git+https://github.com/twintproject/twint.git#egg=twint pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint

Description of Issue

I received this message when I attempted to install twint: Installing git+https://github.com/twintproject/twint.git#egg=twint… Error: An error occurred while installing git+https://github.com/twintproject/twint.git#egg=twint! Error text: Collecting twint Cloning https://github.com/twintproject/twint.git to /tmp/pip-install-asznf3an/twint

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Running command git clone -q https://github.com/twintproject/twint.git /tmp/pip-install-asznf3an/twint ERROR: Command errored out with exit status 1: command: /home/username/.local/share/virtualenvs/Twint-AEKrNveo/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-asznf3an/twint/setup.py'"'"'; file='"'"'/tmp/pip-install-asznf3an/twint/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-hku68ijx cwd: /tmp/pip-install-asznf3an/twint/ Complete output (13 lines): Traceback (most recent call last): File "", line 1, in File "/home/username/.local/share/virtualenvs/Twint-AEKrNveo/lib/python3.8/site-packages/setuptools/init.py", line 23, in from setuptools.dist import Distribution File "/home/username/.local/share/virtualenvs/Twint-AEKrNveo/lib/python3.8/site-packages/_virtualenv.py", line 89, in exec_module old(module) File "/home/username/.local/share/virtualenvs/Twint-AEKrNveo/lib/python3.8/site-packages/setuptools/dist.py", line 34, in from setuptools import windows_support File "/home/username/.local/share/virtualenvs/Twint-AEKrNveo/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in import ctypes File "/usr/local/lib/python3.8/ctypes/init.py", line 7, in from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

This is likely caused by a bug in twint. Report this to its maintainers. ✘ Installation Failed

When I ran pipenv install twint

Installing twint… Error: An error occurred while installing twint! Error text: Could not fetch URL https://pypi.org/simple/twint/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/twint/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/twint/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/twint/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/twint/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/twint/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/twint/ ERROR: Could not find a version that satisfies the requirement twint (from -r /tmp/pipenv-6qwl0o3l-requirements/pipenv-zsxiucr1-requirement.txt (line 1)) (from versions: none) ERROR: No matching distribution found for twint (from -r /tmp/pipenv-6qwl0o3l-requirements/pipenv-zsxiucr1-requirement.txt (line 1))

✘ Installation Failed

Obtaining twint from git+https://github.com/twintproject/twint.git@origin/master#egg=twint Cloning https://github.com/twintproject/twint.git (to origin/master) to ./venv/src/twint Collecting aiodns (from twint) Downloading https://files.pythonhosted.org/packages/da/01/8f2d49b441573fd2478833bdba91cf0b853b4c750a1fbb9e98de1b94bb22/aiodns-2.0.0-py2.py3-none-any.whl Collecting aiohttp (from twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/7c/39/7eb5f98d24904e0f6d3edb505d4aa60e3ef83c0a58d6fe18244a51757247/aiohttp-3.6.2-cp36-cp36m-manylinux1_x86_64.whl (1.2MB) 100% |████████████████████████████████| 1.2MB 404kB/s Collecting aiohttp_socks (from twint) Downloading https://files.pythonhosted.org/packages/63/30/ca1cd5bef8eac55bcf350b5cbbc80c32443caebd8e1eb9c15d2ac39554da/aiohttp_socks-0.5.3-py3-none-any.whl Collecting beautifulsoup4 (from twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/66/25/ff030e2437265616a1e9b25ccc864e0371a0bc3adb7c5a404fd661c6f4f6/beautifulsoup4-4.9.1-py3-none-any.whl (115kB) 100% |████████████████████████████████| 122kB 1.1MB/s Collecting cchardet (from twint) Downloading https://files.pythonhosted.org/packages/d3/b9/c82e376881f3894869541fea2d5b79ec8e89517aebad0750d0e800ac5b4b/cchardet-2.1.6-cp36-cp36m-manylinux1_x86_64.whl (241kB) 100% |████████████████████████████████| 245kB 1.3MB/s Collecting elasticsearch (from twint) Downloading https://files.pythonhosted.org/packages/34/4e/8d4190b41c72ee04b03c2404c7ac39e671a95616a6e6a4260d2098f3c7b2/elasticsearch-7.8.0-py2.py3-none-any.whl (188kB) 100% |████████████████████████████████| 194kB 942kB/s Collecting fake-useragent (from twint) Downloading https://files.pythonhosted.org/packages/d1/79/af647635d6968e2deb57a208d309f6069d31cb138066d7e821e575112a80/fake-useragent-0.1.11.tar.gz Collecting geopy (from twint) Downloading https://files.pythonhosted.org/packages/07/e1/9c72de674d5c2b8fcb0738a5ceeb5424941fefa080bfe4e240d0bacb5a38/geopy-2.0.0-py3-none-any.whl (111kB) 100% |████████████████████████████████| 112kB 1.0MB/s Collecting googletransx (from twint) Downloading https://files.pythonhosted.org/packages/27/e1/77cd530afec7944d40c5bdd260bcc111be4012b045c82d4e3ffec90b2a42/googletransx-2.4.2.tar.gz Collecting pandas (from twint) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/a7/f7/2adca20a7fa71b6a32f823bbd83992adeceab1d8bf72992bb7a55c69c19a/pandas-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (10.5MB) 100% |████████████████████████████████| 10.5MB 63kB/s Collecting pysocks (from twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/8d/59/b4572118e098ac8e46e399a1dd0f2d85403ce8bbaad9ec79373ed6badaf9/PySocks-1.7.1-py3-none-any.whl Collecting schedule (from twint) Downloading https://files.pythonhosted.org/packages/57/22/3a709462eb02412bd1145f6e53604f36bba191e3e4e397bea4a718fec38c/schedule-0.6.0-py2.py3-none-any.whl Collecting pycares>=3.0.0 (from aiodns->twint) Downloading https://files.pythonhosted.org/packages/96/bc/1de12c0ea1de6c5454ca8e49479b5af162163b6c274f5302ba93e979d5b6/pycares-3.1.1-cp36-cp36m-manylinux1_x86_64.whl (228kB) 100% |████████████████████████████████| 235kB 1.6MB/s Collecting typing; python_version < "3.7" (from aiodns->twint) Downloading https://files.pythonhosted.org/packages/05/d9/6eebe19d46bd05360c9a9aae822e67a80f9242aabbfc58b641b957546607/typing-3.7.4.3.tar.gz (78kB) 100% |████████████████████████████████| 81kB 1.7MB/s Collecting async-timeout<4.0,>=3.0 (from aiohttp->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl Collecting attrs>=17.3.0 (from aiohttp->twint) Cache entry deserialization failed, entry ignored Using cached https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl Collecting yarl<2.0,>=1.0 (from aiohttp->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/77/9a/2365a077c21c3d711b2367199a81edbe3f362712a05f6437647ca770eab1/yarl-1.5.0-cp36-cp36m-manylinux1_x86_64.whl (257kB) 100% |████████████████████████████████| 266kB 984kB/s Collecting idna-ssl>=1.0; python_version < "3.7" (from aiohttp->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/46/03/07c4894aae38b0de52b52586b24bf189bb83e4ddabfe2e2c8f2419eec6f4/idna-ssl-1.1.0.tar.gz Collecting typing-extensions>=3.6.5; python_version < "3.7" (from aiohttp->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/0c/0e/3f026d0645d699e7320b59952146d56ad7c374e9cd72cd16e7c74e657a0f/typing_extensions-3.7.4.2-py3-none-any.whl Collecting chardet<4.0,>=2.0 (from aiohttp->twint) Cache entry deserialization failed, entry ignored Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting multidict<5.0,>=4.5 (from aiohttp->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/1a/95/f50352b5366e7d579e8b99631680a9e32e1b22adfa1629a8f23b1d22d5e2/multidict-4.7.6-cp36-cp36m-manylinux1_x86_64.whl (148kB) 100% |████████████████████████████████| 153kB 1.2MB/s Collecting soupsieve>1.2 (from beautifulsoup4->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/6f/8f/457f4a5390eeae1cc3aeab89deb7724c965be841ffca6cfca9197482e470/soupsieve-2.0.1-py3-none-any.whl Collecting certifi (from elasticsearch->twint) Cache entry deserialization failed, entry ignored Using cached https://files.pythonhosted.org/packages/5e/c4/6c4fe722df5343c33226f0b4e0bb042e4dc13483228b4718baf286f86d87/certifi-2020.6.20-py2.py3-none-any.whl Collecting urllib3>=1.21.1 (from elasticsearch->twint) Cache entry deserialization failed, entry ignored Using cached https://files.pythonhosted.org/packages/9f/f0/a391d1463ebb1b233795cabfc0ef38d3db4442339de68f847026199e69d7/urllib3-1.25.10-py2.py3-none-any.whl Collecting geographiclib<2,>=1.49 (from geopy->twint) Downloading https://files.pythonhosted.org/packages/8b/62/26ec95a98ba64299163199e95ad1b0e34ad3f4e176e221c40245f211e425/geographiclib-1.50-py3-none-any.whl Collecting requests (from googletransx->twint) Cache entry deserialization failed, entry ignored Using cached https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl Collecting pytz>=2017.2 (from pandas->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/4f/a4/879454d49688e2fad93e59d7d4efda580b783c745fd2ec2a3adf87b0808d/pytz-2020.1-py2.py3-none-any.whl (510kB) 100% |████████████████████████████████| 512kB 587kB/s Collecting python-dateutil>=2.7.3 (from pandas->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB) 100% |████████████████████████████████| 235kB 942kB/s Collecting numpy>=1.15.4 (from pandas->twint) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/22/e7/4b2bdddb99f5f631d8c1de259897c2b7d65dcfcc1e0a6fd17a7f62923500/numpy-1.19.1-cp36-cp36m-manylinux1_x86_64.whl (13.4MB) 100% |████████████████████████████████| 13.4MB 51kB/s Collecting cffi>=1.5.0 (from pycares>=3.0.0->aiodns->twint) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/eb/9c/c6b452e414ea289822f3cc44bdf4822066dc7b947f03eaa2a2b97dda5032/cffi-1.14.1-cp36-cp36m-manylinux1_x86_64.whl (400kB) 100% |████████████████████████████████| 409kB 795kB/s Collecting idna>=2.0 (from yarl<2.0,>=1.0->aiohttp->twint) Cache entry deserialization failed, entry ignored Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl Collecting six>=1.5 (from python-dateutil>=2.7.3->pandas->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl Collecting pycparser (from cffi>=1.5.0->pycares>=3.0.0->aiodns->twint) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB) 100% |████████████████████████████████| 112kB 925kB/s Building wheels for collected packages: fake-useragent, googletransx, typing, idna-ssl Running setup.py bdist_wheel for fake-useragent ... error Complete output from command /home/username/Projects/Github/OSINT/Twint/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-i7lvmxgp/fake-useragent/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 /tmp/tmp3dku19s2pip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for fake-useragent Running setup.py clean for fake-useragent Running setup.py bdist_wheel for googletransx ... error Complete output from command /home/username/Projects/Github/OSINT/Twint/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-i7lvmxgp/googletransx/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 /tmp/tmpbcsg45ttpip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for googletransx Running setup.py clean for googletransx Running setup.py bdist_wheel for typing ... error Complete output from command /home/username/Projects/Github/OSINT/Twint/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-i7lvmxgp/typing/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 /tmp/tmpus336u3gpip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for typing Running setup.py clean for typing Running setup.py bdist_wheel for idna-ssl ... error Complete output from command /home/username/Projects/Github/OSINT/Twint/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-i7lvmxgp/idna-ssl/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 /tmp/tmp9bawyod7pip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for idna-ssl Running setup.py clean for idna-ssl Failed to build fake-useragent googletransx typing idna-ssl Installing collected packages: pycparser, cffi, pycares, typing, aiodns, async-timeout, attrs, idna, multidict, typing-extensions, yarl, idna-ssl, chardet, aiohttp, aiohttp-socks, soupsieve, beautifulsoup4, cchardet, certifi, urllib3, elasticsearch, fake-useragent, geographiclib, geopy, requests, googletransx, pytz, six, python-dateutil, numpy, pandas, pysocks, schedule, twint Running setup.py install for typing ... done Running setup.py install for idna-ssl ... done Running setup.py install for fake-useragent ... done Running setup.py install for googletransx ... done Running setup.py develop for twint Complete output from command /home/username/Projects/Github/OSINT/Twint/venv/bin/python3 -c "import setuptools, tokenize;file='/home/username/Projects/Github/OSINT/Twint/venv/src/twint/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" develop --no-deps --user --prefix=: /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: option --user not recognized

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

Command "/home/username/Projects/Github/OSINT/Twint/venv/bin/python3 -c "import setuptools, tokenize;file='/home/username/Projects/Github/OSINT/Twint/venv/src/twint/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" develop --no-deps --user --prefix=" failed with error code 1 in /home/username/Projects/Github/OSINT/Twint/venv/src/twint/

Environment Details

WSL 1 Ubuntu 18..04

Diksha02 commented 3 years ago

I am getting the same issue. I am trying to install on Windows 10.

Installing git+https://github.com/twintproject/twint.git#egg=twint...
Error:  An error occurred while installing git+https://github.com/twintproject/twint.git#egg=twint!
Error text: Collecting twint
  Cloning https://github.com/twintproject/twint.git to c:\users\diksha nigam\appdata\local\temp\pip-install-frretec9\twint_e52add0647d9479ba591c88da8129417
Collecting aiohttp
  Using cached aiohttp-3.7.3-cp39-cp39-win_amd64.whl (633 kB)
Collecting aiodns
  Using cached aiodns-2.0.0-py2.py3-none-any.whl (4.8 kB)
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting cchardet
  Using cached cchardet-2.1.7-cp39-cp39-win_amd64.whl (115 kB)
Collecting dataclasses
  Using cached dataclasses-0.6-py3-none-any.whl (14 kB)
Collecting elasticsearch
  Using cached elasticsearch-7.10.1-py2.py3-none-any.whl (322 kB)
Collecting pysocks
  Using cached PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting pandas
  Using cached pandas-1.2.1-cp39-cp39-win_amd64.whl (9.3 MB)
Collecting aiohttp_socks
  Using cached aiohttp_socks-0.5.5-py3-none-any.whl (9.1 kB)
Collecting schedule
  Using cached schedule-1.0.0-py2.py3-none-any.whl (9.0 kB)
Collecting geopy
  Using cached geopy-2.1.0-py3-none-any.whl (112 kB)
Collecting fake-useragent
  Using cached fake_useragent-0.1.11-py3-none-any.whl
Collecting googletransx
  Using cached googletransx-2.4.2-py3-none-any.whl
Collecting pycares>=3.0.0
  Using cached pycares-3.1.1.tar.gz (233 kB)
Requirement already satisfied: cffi>=1.5.0 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from pycares>=3.0.0->aiodns->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (1.14.4)
Requirement already satisfied: pycparser in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from cffi>=1.5.0->pycares>=3.0.0->aiodns->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (2.20)
Requirement already satisfied: attrs>=17.3.0 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from aiohttp->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (20.3.0)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from aiohttp->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (5.1.0)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from aiohttp->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (1.6.3)
Requirement already satisfied: typing-extensions>=3.6.5 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from aiohttp->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (3.7.4.3)
Requirement already satisfied: async-timeout<4.0,>=3.0 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from aiohttp->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (3.0.1)
Requirement already satisfied: chardet<4.0,>=2.0 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from aiohttp->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (3.0.4)
Requirement already satisfied: idna>=2.0 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from yarl<2.0,>=1.0->aiohttp->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (2.10)
Requirement already satisfied: python-socks[asyncio]>=1.0.1 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from aiohttp_socks->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (1.2.0)
Requirement already satisfied: soupsieve>1.2 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from beautifulsoup4->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (2.1)
Requirement already satisfied: certifi in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from elasticsearch->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (2020.12.5)
Requirement already satisfied: urllib3<2,>=1.21.1 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from elasticsearch->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (1.26.3)
Collecting geographiclib<2,>=1.49
  Using cached geographiclib-1.50-py3-none-any.whl (38 kB)
Requirement already satisfied: requests in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from googletransx->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (2.25.1)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from pandas->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (2.8.1)
Requirement already satisfied: pytz>=2017.3 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from pandas->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (2021.1)
Collecting numpy>=1.16.5
  Using cached numpy-1.20.0-cp39-cp39-win_amd64.whl (13.7 MB)
Requirement already satisfied: six>=1.5 in c:\users\diksha nigam\.virtualenvs\twint-1urpsopn\lib\site-packages (from python-dateutil>=2.7.3->pandas->twint->-r c:\users\diksha nigam\appdata\local\temp\pipenv-j0u836zm-requirements\pipenv-b07n3r6o-requirement.txt (line 1)) (1.15.0)
Building wheels for collected packages: twint, pycares
  Building wheel for twint (setup.py): started
  Building wheel for twint (setup.py): finished with status 'done'
  Created wheel for twint: filename=twint-2.1.21-py3-none-any.whl size=39032 sha256=94a44a54693f2c30514ed62d9a9f8da03b7f4d84b7057769ebda7aa5bc43696c
  Stored in directory: C:\Users\Diksha Nigam\AppData\Local\Temp\pip-ephem-wheel-cache-ah38_qg0\wheels\0a\0f\af\9446ff4dfa9536d5e4f5a8b1e77fd9ef4f34694d3e30b7da57
  Building wheel for pycares (setup.py): started
  Building wheel for pycares (setup.py): finished with status 'error'
  Running setup.py clean for pycares
Successfully built twint
Failed to build pycares
Installing collected packages: pycares, numpy, geographiclib, aiohttp, schedule, pysocks, pandas, googletransx, geopy, fake-useragent, elasticsearch, dataclasses, cchardet, beautifulsoup4, aiohttp-socks, aiodns, twint
    Running setup.py install for pycares: started
    Running setup.py install for pycares: finished with status 'error'

  Running command git clone -q https://github.com/twintproject/twint.git 'C:\Users\Diksha Nigam\AppData\Local\Temp\pip-install-frretec9\twint_e52add0647d9479ba591c88da8129417'
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Diksha Nigam\.virtualenvs\twint-1UrpSOpN\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Diksha Nigam\\AppData\\Local\\Temp\\pip-install-frretec9\\pycares_285e10b8de3249a2a9b8539978e4b7ab\\setup.py'"'"'; __file__='"'"'C:\\Users\\Diksha Nigam\\AppData\\Local\\Temp\\pip-install-frretec9\\pycares_285e10b8de3249a2a9b8539978e4b7ab\\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 'C:\Users\Diksha Nigam\AppData\Local\Temp\pip-wheel-hsglj_em'
       cwd: C:\Users\Diksha Nigam\AppData\Local\Temp\pip-install-frretec9\pycares_285e10b8de3249a2a9b8539978e4b7ab\
  Complete output (19 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\pycares
  copying src\pycares\errno.py -> build\lib.win-amd64-3.9\pycares
  copying src\pycares\utils.py -> build\lib.win-amd64-3.9\pycares
  copying src\pycares\_version.py -> build\lib.win-amd64-3.9\pycares
  copying src\pycares\__init__.py -> build\lib.win-amd64-3.9\pycares
  copying src\pycares\__main__.py -> build\lib.win-amd64-3.9\pycares
  warning: build_py: byte-compiling is disabled, skipping.

  running build_ext
  generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_cares.c'
  creating build\temp.win-amd64-3.9
  creating build\temp.win-amd64-3.9\Release
  building '_cares' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for pycares
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Diksha Nigam\.virtualenvs\twint-1UrpSOpN\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Diksha Nigam\\AppData\\Local\\Temp\\pip-install-frretec9\\pycares_285e10b8de3249a2a9b8539978e4b7ab\\setup.py'"'"'; __file__='"'"'C:\\Users\\Diksha Nigam\\AppData\\Local\\Temp\\pip-install-frretec9\\pycares_285e10b8de3249a2a9b8539978e4b7ab\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Diksha Nigam\AppData\Local\Temp\pip-record-h50xau0e\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Diksha Nigam\.virtualenvs\twint-1UrpSOpN\include\site\python3.9\pycares'
         cwd: C:\Users\Diksha Nigam\AppData\Local\Temp\pip-install-frretec9\pycares_285e10b8de3249a2a9b8539978e4b7ab\
    Complete output (19 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.9
    creating build\lib.win-amd64-3.9\pycares
    copying src\pycares\errno.py -> build\lib.win-amd64-3.9\pycares
    copying src\pycares\utils.py -> build\lib.win-amd64-3.9\pycares
    copying src\pycares\_version.py -> build\lib.win-amd64-3.9\pycares
    copying src\pycares\__init__.py -> build\lib.win-amd64-3.9\pycares
    copying src\pycares\__main__.py -> build\lib.win-amd64-3.9\pycares
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_cares.c'
    creating build\temp.win-amd64-3.9
    creating build\temp.win-amd64-3.9\Release
    building '_cares' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Diksha Nigam\.virtualenvs\twint-1UrpSOpN\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Diksha Nigam\\AppData\\Local\\Temp\\pip-install-frretec9\\pycares_285e10b8de3249a2a9b8539978e4b7ab\\setup.py'"'"'; __file__='"'"'C:\\Users\\Diksha Nigam\\AppData\\Local\\Temp\\pip-install-frretec9\\pycares_285e10b8de3249a2a9b8539978e4b7ab\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Diksha Nigam\AppData\Local\Temp\pip-record-h50xau0e\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Diksha Nigam\.virtualenvs\twint-1UrpSOpN\include\site\python3.9\pycares' Check the logs for full command output.

Installation Failed
plufz commented 2 years ago

Did you manage to solve this? I have the same issue.

0xSimbo commented 2 years ago

I'm having the same issue, did anyone find a workaround or different library?