Skip to content

Unable to get bazel 7 py_proto_library example working outside of rules_python dir #1935

@Ryang20718

Description

@Ryang20718

🐞 bug report

Affected Rule

Bazel 7.1.2 + rules_python 0.32.2 seems to be unable to import python proto libraries

Description

I've created a minimal repro here https://github.com/Ryang20718/bazel_rules_python_proto/tree/main

git clone https://github.com/Ryang20718/bazel_rules_python_proto.git
cd bazel_rules_python_proto
USE_BAZEL_VERSION=7.1.2 bazelisk test //foxglove:all --noenable_bzlmod --announce_rc -s --sandbox_debug

will result in failures. however, the same exact directory structure inside the example folder of rules_python will succeed

git clone https://github.com/Ryang20718/bazel_rules_python_proto.git
cd bazel_rules_python_proto/rules_python_working/examples/py_proto_library
USE_BAZEL_VERSION=7.1.2 bazelisk test //foxglove:all --noenable_bzlmod --announce_rc -s --sandbox_debug

I've been staring at differences for days, but I'm unsure of what could possibly be the difference?

🌍 Your Environment

Operating System:

ubuntu 20.04

Output of bazel version:
7.1.2
Rules_python version:

0.32.2

Metadata

Metadata

Assignees

No one assigned

    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