Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Fetching dependencies assumes python2 #260

Closed
hwright opened this issue Dec 6, 2017 · 3 comments
Closed

Fetching dependencies assumes python2 #260

hwright opened this issue Dec 6, 2017 · 3 comments

Comments

@hwright
Copy link
Contributor

hwright commented Dec 6, 2017

This is a local version of google/containerregistry#42, since we are also making the same assumption in our transitive dependency fetch:

strip_prefix = "httplib2-0.10.3/python2/httplib2/",

@nlopezgi
Copy link
Contributor

nlopezgi commented Dec 2, 2018

is this still an issue? please reopen if so.

@nlopezgi nlopezgi closed this as completed Dec 2, 2018
@aaliddell
Copy link
Contributor

Hi,

Just ran into this today.
When attempting to build a py3_image with python_top set to a python3 runtime and requesting the //...:image.tar:

Traceback (most recent call last):
  File "/home/user/.cache/bazel/_bazel_user/82f3103e4c6586668731eea14e4f1c2e/sandbox/linux-sandbox/11/execroot/project/bazel-out/host/bin/external/io_bazel_rules_docker/container/join_layers.runfiles/io_bazel_rules_docker/container/join_layers.py", line 27, in <module>
    from containerregistry.client import docker_name
  File "/home/user/.cache/bazel/_bazel_user/82f3103e4c6586668731eea14e4f1c2e/sandbox/linux-sandbox/11/execroot/project/bazel-out/host/bin/external/io_bazel_rules_docker/container/join_layers.runfiles/containerregistry/client/__init__.py", line 23, in <module>
    from containerregistry.client import docker_creds_
  File "/home/user/.cache/bazel/_bazel_user/82f3103e4c6586668731eea14e4f1c2e/sandbox/linux-sandbox/11/execroot/project/bazel-out/host/bin/external/io_bazel_rules_docker/container/join_layers.runfiles/containerregistry/client/docker_creds_.py", line 31, in <module>
    import httplib2
  File "/home/user/.cache/bazel/_bazel_user/82f3103e4c6586668731eea14e4f1c2e/sandbox/linux-sandbox/11/execroot/project/bazel-out/host/bin/external/io_bazel_rules_docker/container/join_layers.runfiles/httplib2/__init__.py", line 988
    raise socket.error, msg
                      ^
SyntaxError: invalid syntax

@nlopezgi nlopezgi reopened this Dec 3, 2018
@nlopezgi
Copy link
Contributor

nlopezgi commented Dec 3, 2018

Unfortunately, these rules need python_top to be set to python2. The only sane fixes are:

Closing this issue (again) as these other issues are better to track progress towards fixing the underlying problems.

@nlopezgi nlopezgi closed this as completed Dec 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants