Boa tarde, quando tento executar o twitter_hook ele da a mensagem dizendo que o airflow não está sendo encontrado:
Traceback (most recent call last):
File "twitter_hook.py", line 1, in <module>
from airflow.hooks.http_hook import HttpHook
ModuleNotFoundError: No module named 'airflow'
Tentando um pip install airflow aparece o seguinte texto:
Collecting airflow
Using cached airflow-0.6.tar.gz (1.2 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-knaw4ckx/airflow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-knaw4ckx/airflow/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-install-knaw4ckx/airflow/pip-egg-info
cwd: /tmp/pip-install-knaw4ckx/airflow/
Complete output (13 lines):
running egg_info
creating /tmp/pip-install-knaw4ckx/airflow/pip-egg-info/airflow.egg-info
writing /tmp/pip-install-knaw4ckx/airflow/pip-egg-info/airflow.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-install-knaw4ckx/airflow/pip-egg-info/airflow.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-install-knaw4ckx/airflow/pip-egg-info/airflow.egg-info/top_level.txt
writing manifest file '/tmp/pip-install-knaw4ckx/airflow/pip-egg-info/airflow.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-install-knaw4ckx/airflow/pip-egg-info/airflow.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-install-knaw4ckx/airflow/pip-egg-info/airflow.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-knaw4ckx/airflow/setup.py", line 32, in <module>
raise RuntimeError('Please install package apache-airflow instead of airflow')
RuntimeError: Please install package apache-airflow instead of airflow
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.