3
respostas

problemas instalar o Airflow

problema na instalação do airflow

pip install 'apache-airflow==2.3.2' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.3.2/constraints-3.9.txt"

Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB) Installing collected packages: unicodecsv, text-unidecode, termcolor, tabulate, rfc3986, pytz, PyJWT, lockfile, cron-descriptor, commonmark, colorlog, certifi, blinker, zipp, wrapt, werkzeug, urllib3, typing-extensions, tenacity, sniffio, six, setproctitle, PyYAML, pytzdata, python-slugify, pyrsistent, pyparsing, pygments, pycparser, psutil, pluggy, pathspec, markupsafe, lazy-object-proxy, itsdangerous, inflection, idna, h11, gunicorn, greenlet, graphviz, docutils, dnspython, dill, defusedxml, colorama, click, charset-normalizer, cachelib, Babel, attrs, argcomplete, apispec, apache-airflow-providers-sqlite, apache-airflow-providers-imap, apache-airflow-providers-ftp, WTForms, sqlalchemy, rich, requests, python3-openid, python-dateutil, python-daemon, prison, packaging, Mako, jsonschema, jinja2, importlib-metadata, email-validator, deprecated, clickclick, cffi, cattrs, anyio, swagger-ui-bundle, sqlalchemy-utils, sqlalchemy-jsonfield, python-nvd3, pendulum, marshmallow, markdown, httpcore, flask, cryptography, croniter, apache-airflow-providers-http, alembic, marshmallow-sqlalchemy, marshmallow-oneofschema, marshmallow-enum, httpx, flask-wtf, Flask-SQLAlchemy, flask-session, Flask-OpenID, flask-login, Flask-JWT-Extended, flask-caching, Flask-Babel, connexion, flask-appbuilder, apache-airflow DEPRECATION: unicodecsv is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for unicodecsv ... done DEPRECATION: termcolor is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for termcolor ... done DEPRECATION: cron-descriptor is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for cron-descriptor ... done DEPRECATION: blinker is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for blinker ... done DEPRECATION: dill is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for dill ... done ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

WARNING: There was an error checking the latest version of pip.

3 respostas

pip install 'apache-airflow==2.3.2' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.3.2/constraints-3.9.txt" Collecting apache-airflow==2.3.2

DEPRECATION: termcolor is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for termcolor ... done DEPRECATION: cron-descriptor is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for cron-descriptor ... done DEPRECATION: blinker is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for blinker ... done DEPRECATION: dill is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for dill ... done ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

WARNING: There was an error checking the latest version of pip.

(venv) vinaico@ubuntu:~/Documents/airflowalura$ airflow standalone airflow: command not found

Oii, Vinícius! Tudo bem?

Aparentemente você está com falta de espaço para armazenamento.

A mensagem de erro "[Errno 28] No space left on device" indica que o armazenamento do seu dispositivo está cheio.

Uma sugestão seria você verificar o espaço disponível no seu dispositivo. Se estiver realmente cheio, você pode tentar liberar algum espaço excluindo arquivos que não são mais necessários ou movendo alguns para um dispositivo de armazenamento externo, como um disco rígido ou um serviço de armazenamento em nuvem.

Se você estiver usando uma VM, seria importante alterar para lidar com essa questão.

Depois de liberar espaço suficiente, tente executar o comando de instalação do Airflow novamente. Lembre-se de ativar o ambiente virtual antes de iniciar a instalação, como mostrado na aula:

cd airflowalura
source venv/bin/activate
pip install 'apache-airflow==2.3.2' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.3.2/constraints-3.9.txt"

Se a dúvida persistir, estamos aqui.

Abraços!

Caso este post tenha lhe ajudado, por favor, marcar como solucionado ✓.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software