Skip to content

Error calling pip_parse in latest releaseΒ #746

@caseyduquettesc

Description

@caseyduquettesc

🐞 bug report

Affected Rule

The issue is caused by the rule: `pip_parse`

Is this a regression?

Yes, the previous version in which this bug was not present was: 0.9.0

Description

Upgrading to rules_python 0.10.0 with our own py_toolchain causes pip_parse to fail when you provide a python_interpreter_target that wasn't generated by rules_python because STANDALONE_INTERPRETER_FILENAME doesn't exist and the code seems to assume it does.

πŸ”¬ Minimal Reproduction

πŸ”₯ Exception or Error


ERROR: An error occurred during the fetch of repository 'py_deps':
   Traceback (most recent call last):
        File "/Users/casey.duquette/Snapchat/Dev/.cache/_bazel_root/b201cbe3bc260ed3896346109ccb8a9c/external/rules_python/python/pip_install/pip_repository.bzl", line 228, column 63, in _pip_repository_impl
                environment = _create_repository_execution_environment(rctx),
        File "/Users/casey.duquette/Snapchat/Dev/.cache/_bazel_root/b201cbe3bc260ed3896346109ccb8a9c/external/rules_python/python/pip_install/pip_repository.bzl", line 151, column 37, in _create_repository_execution_environment
                _maybe_set_xcode_location_cflags(rctx, env)
        File "/Users/casey.duquette/Snapchat/Dev/.cache/_bazel_root/b201cbe3bc260ed3896346109ccb8a9c/external/rules_python/python/pip_install/pip_repository.bzl", line 79, column 18, in _maybe_set_xcode_location_cflags
                rctx.path(Label("@{}//:{}".format(rctx.attr.python_interpreter_target.workspace_name, STANDALONE_INTERPRETER_FILENAME))) and
Error in path: Not a regular file: /Users/casey.duquette/Snapchat/Dev/.cache/_bazel_root/b201cbe3bc260ed3896346109ccb8a9c/external/snap_tool_py_3_10/STANDALONE_INTERPRETER

🌍 Your Environment

Operating System:

  
MacOS 12.4
  

Output of bazel version:

  
Build label: 5.1.1.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed May 4 17:45:51 2022 (1651686351)
Build timestamp: 1651686351
Build timestamp as int: 1651686351
  

(internal fork)

Rules_python version:

  
0.10.0
  

Anything else relevant?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy