Closed astrojuanlu closed 11 months ago
@astrojuanlu, I think that is probably something to report upstream to https://github.com/apache/airflow/issues They don't have any constraint on httpx: https://github.com/apache/airflow/blob/2.7.2/setup.cfg#L105 It wouldn't be a good idea if we start adding constraints here on conda-forge that don't match the upstream package unless the reason for it is specific to conda-forge.
@astrojuanlu, I just noticed the downgrade of httpcore
. That may very well be the problem, and it may be conda-forge specific. I'll look into it and try to fix httpx if I can.
@astrojuanlu, I looked into this further. HTTPTransport
was added to httpx in 0.17.0:
https://github.com/encode/httpx/releases/tag/0.17.0
So this is unrelated to httpcore
and it seems to be a problem that should be reported upstream as I suggested above. I will put this constraint here with a note, though.
@astrojuanlu, one more update on this. I think the issue is maybe with conda-forge's version of dnspython
. The stack trace you posted seems to suggest that's where the call to httpx
is originating from. I will see if I can fix things there. I likely won't merge #122 unless I can't fix things elsewhere.
Okay, I think the problem was that httpcore
and httpx
were unconstrained in https://github.com/conda-forge/dnspython-feedstock/pull/13
I have now constrained both in: https://github.com/conda-forge/dnspython-feedstock/pull/14
If that doesn't take care of the problem, I will need to patch the old build, too.
@astrojuanlu, sorry this has been all over the place. I believe it is solved now. I ran:
mamba create -y -n test python=3.10 airflow
I now see:
$ mamba list -n test httpx
# packages in environment at /home/xylar/mambaforge/envs/test:
#
# Name Version Build Channel
httpx 0.25.0 pyhd8ed1ab_0 conda-forge
$ mamba list -n test dnspython
# packages in environment at /home/xylar/mambaforge/envs/test:
#
# Name Version Build Channel
dnspython 2.4.2 pyhd8ed1ab_1 conda-forge
Can you check if something similar works for you now? In particular, can you make sure you get the same version and build of dnspython
that I got?
Thanks for the blazing fast response! For consistency I can check again on macOS tomorrow, but at least on Linux I tried the same commands and I get proper versions of everything now 👍🏽
Let me know if this worked on OSX, too.
I confirm it works 👍🏽 Thanks again!
Solution to issue cannot be found in the documentation.
Issue
After
micromamba install -c conda-forge airflow
on a clean Python 3.10 environment, I got an httpx version that was too old, and this madeairflow standalone
fail:Then I did a manual upgrade and this fixed the problem:
Installed packages
Environment info