Skip to content

gazelle plugin is not working with Python 3.11 in 0.27.0 release #1589

@aignas

Description

@aignas

🐞 bug report

Affected Rule

@rules_python_gazelle_plugin//python is broken when used in gazelle_binary with the latest release when using Python 3.11 as the default toolchain.

Is this a regression?

Yes, introduced in #1455.

Description

See https://bazelbuild.slack.com/archives/CA306CEV6/p1700496408567889

🔬 Minimal Reproduction

See https://github.com/aignas/rules_python_repro_gazelle_binary_rule

🔥 Exception or Error

Traceback (most recent call last):
  File "/tmp/Bazel.runfiles_tugoo1fs/runfiles/rules_python_gazelle_plugin/python/__main__.py", line 19, in <module>
    import parse
ModuleNotFoundError: No module named 'parse'
Traceback (most recent call last):
  File "/var/folders/rl/v9dqv4mx1jsgwx81qjy74scc0000gn/T/Bazel.runfiles_o1h0_q7c/runfiles/rules_python_gazelle_plugin/python/__main__.py", line 19, in <module>
    import parse
ModuleNotFoundError: No module named 'parse'
gazelle: ERROR: failed to parse: EOF

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