You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @glodus,
Packages extra are actually additional optional dependencies to enable optional functionality. Since airflow can connect with different databases, but we do not expect you to have all of them, you have the option of only installing the requirements you need.
The pip calls as documented should work, provided that you have the requirements for the specified packages to install. The reason why we created subpackages is that some packages are tricky to install and require some os level libs and we wanted to make it more modular where you just install what you need.
Note that the ipython project also uses extras_require
@glodus , the setup.py script doesn't install extras_require by default, I looked for switched before to try to make it work but couldn't find any. If you want all dependencies, you can do: pip install -r requirements.txt
Some of the libs in there require os packages to be installed. You could also just follow the documentation and pip install airflow[subpackage]
@mistercrunch@artwr I ran into this issue, too. I struggled until it occurred to me to look at the closed issues. I understand the reason you don't include the dependencies, yagni principle. That said, it might be good to find a way to suppress the warnings. As someone new to Airflow, the warnings were a huge distraction and I do believe they might dissuade others from going further.
Activity
artwr commentedon Jun 12, 2015
Hi @glodus,
Packages extra are actually additional optional dependencies to enable optional functionality. Since airflow can connect with different databases, but we do not expect you to have all of them, you have the option of only installing the requirements you need.
You can see the detail here
mistercrunch commentedon Jun 12, 2015
It's part of setuptools and supported by
pipthough subpackages don't seem to show when usingpip search. You can dig forextras_requirein here for more info: https://pythonhosted.org/setuptools/setuptools.html#declaring-dependenciesFor the full details of the packages and what they include, it's all in here:
https://github.com/airbnb/airflow/blob/master/setup.py#L56
The pip calls as documented should work, provided that you have the requirements for the specified packages to install. The reason why we created subpackages is that some packages are tricky to install and require some os level libs and we wanted to make it more modular where you just install what you need.
Note that the
ipythonproject also uses extras_requireafarbos commentedon Jun 12, 2015
Thanks for the answer, I all ready try the setup.py script but I have still so many warnings :
The setup.py should fix that no ? I try to do
setup.py install.Just like that, don't forget to add a shebang to setup.py (#!/usr/bin/env python2.7).
afarbos commentedon Jun 12, 2015
I fix most of them
pip -r requierements.txt.If I have other question should I open new issues or do you have an ml or something like that?
mistercrunch commentedon Jun 12, 2015
@glodus , the setup.py script doesn't install extras_require by default, I looked for switched before to try to make it work but couldn't find any. If you want all dependencies, you can do:
pip install -r requirements.txtSome of the libs in there require os packages to be installed. You could also just follow the documentation and
pip install airflow[subpackage]statwonk commentedon Jun 14, 2015
@mistercrunch @artwr I ran into this issue, too. I struggled until it occurred to me to look at the closed issues. I understand the reason you don't include the dependencies, yagni principle. That said, it might be good to find a way to suppress the warnings. As someone new to Airflow, the warnings were a huge distraction and I do believe they might dissuade others from going further.
mistercrunch commentedon Jun 14, 2015
#28 addresses the warnings
[TWTR] CP from 1.10+twtr (apache#35)
Feature/update client version 0 3 0 (apache#21)
fix member visibility; fix javadoc; generate from URL (apache#21)
Airflow Upgrade with Cherry-Picks [only] from 1.10.4+twtr (apache#64)
Merge pull request apache#21 from nestjs/renovate/azure-storage-blob-…