-
Notifications
You must be signed in to change notification settings - Fork 692
puller.par not python 3 compatible #454
Comments
One option could be to switch over to https://github.com/google/go-containerregistry/blob/master/cmd/crane/doc/crane.md but I guess that could be quite an involved process to do in all places. |
I am actually getting an error in the pusher too, but through containerregistry:
I don't know how people have been able to push images with python3 with 0.0.28 release of containerregistry. |
I wrote #481 for using pusher from go-containerregistry. |
Please see the PR that I sent (#490) that should provide a viable solution to avoid to have to make large changes to support this use case. |
There is now also google/containerregistry#109 which should fix the issue. |
can we close this now? I think the path forward now is to migrate to go-containerregistry (#580). Please let me know if you want me to reopen for some reason. |
Can you please help explain why this issue is closed? Is there a current solution to use python3 and rules_docker? |
Hi @dgrnbrg it closed because the plan (as indicated in the comment above) is to migrate to go-containerregistry which will solve this problem. Any reason why you want to keep it open? |
I did not understand until your comment. Thank you for clarifying! |
FWIW if you have multiple versions of python installed, your distro may allow you to select between them with an env var. For example, when I hit this on Gentoo I found I could do Assuming you're determined to not uninstall py3 or fiddle with defaults, another solution would be to add a dir with |
The default python on my system is python3. This caused me to run into bazelbuild/rules_docker#454 when running `bazel build //...`. Update the documentation to indicate that `/usr/bin/env python` must resolve to python2 in order for all of the Bazel commands included in the documentation to work. We can remove this comment after Bazel better supports using python3 as the default system python.
The default python on my system is python3. This caused me to run into bazelbuild/rules_docker#454 when running `bazel build //...`. Update the documentation to indicate that `/usr/bin/env python` must resolve to python2 in order for all of the Bazel commands included in the documentation to work. We can remove this comment after Bazel better supports using python3 as the default system python. It appears from bazelbuild/rules_docker#580 that the `rules_docker` folks hope to merge the fix in mid to late Q1 2019.
Bazel also has a way to select a different Python binary than |
Now that container registry is python3 compatible the next problem seems to be in puller.par. Trying to build a docker image that needs to pull another image we get:
So the issue seems to be in puller.par's httplib2: httplib2/httplib2#29 I wonder if there is a solution around this, or if we really are blocked by that PR/Issue.
The text was updated successfully, but these errors were encountered: