-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google provider requires leveldb installed in system #15770
Comments
I think it's a good idea. We already have the possibility of adding optional dependencies in providers, so it should be rather easy thing to do maybe you would like to add it @dstandish ?
And
It will be just a matter of adding "plyvel" additional extra and moving plyvel out of the 'google' extra dependencies (+ some documentation).. |
Doesn’t |
They do - but it does not work for MacOS. |
But is macOS a supported production system? I’ve thought it’s only supported as a development platform… Either way, it’s a good idea to split plyvel out anyway. Not every Linux is manylinux and there might be some people having problems with this e.g. on Alpine. |
It's mostly for development convenience. Plyvel is really such a |
Keep in mind this is not just about airflow developers This is about any dag developer that uses mac and virtualenv, and simply has a repo that requires GCP That's a lot of people. As a cluster maintainer, you have to manage dev env setup scripts and documentation. While I might have steps for installing certain odbc drivers to connect to a specific resource, I am generally able to avoid having setup steps where you need to brew install this or that before airflow will even install. You want your minimal setup ideally to be |
Consider me interested. I will try to find a minute to do so. To be clear, you recommend making |
Correct. |
I hit the same problem on linux today. When installing python 3.6 version of airflow for whatever reason plyvel failed to compile :( |
We SHOULD do it. |
I may not be able to get to it this weekend ... Traveling... but will let you know... anyone else please take if you have time |
Until this one's fixed on Mac, it might be worth updating |
Why not - will you make PR for that @javatarz ? I kept on using devel anyway. |
I'd be happy to. Incoming PR! |
Fixes apache#15770 unblocking `./breeze initialize-local-virtualenv` on Mac OSX
Hello guys
Airflow 2.0.2 Thanks! |
You would probably have better luck reaching out to the plyvel maintainers. https://github.com/wbolster/plyvel |
@rodrigo-fss pretty sure that leveldb was made optional in google provider. You might try installing a more recent version of the provider. Which one did you try to install? |
Yeah. As mentioned in #15933 the right solution to your problem is to upgrade to Airflow 2.1+. |
google provider now requires plyvel, which is used by leveldb hook.
to install plyvel, the user needs leveldb headers installed in the system, otherwise it will fail:
the average GCP user may not use leveldb and it seems a little burdernsome to require its installation just to use GCP hooks, when most of them don't need this library.
perhaps there is a way to make this dependency optional?
or perhaps is there a way to install only certain components of a provider?
update
after looking more closely, i see that levelDB isn't a GCP service
it seems to me levelDB might belong as a distinct provider, e.g.
google-gcp
vsgoogle-level
like there is currently with apache and microsoft? @potiuk any thoughts?cc: @mik-laj
related: #14105
The text was updated successfully, but these errors were encountered: