You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError: cannot import name 'S2Pointcloud' from partially initialized module 's2pointcloud' (most likely due to a circular import)
On bazel 6.5.0, we didn't have --incompatible_default_to_explicit_init_py this flag (rules_python 0.31.0)
After setting this flag --incompatible_default_to_explicit_init_py, we have this circular import issue now with any bazel test/run cmd
Which category does this issue belong to?
Python Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Description of the bug:
adding the following line to bazelrc
Will result in circular import errors
On bazel 6.5.0, we didn't have
--incompatible_default_to_explicit_init_py
this flag (rules_python 0.31.0)After setting this flag
--incompatible_default_to_explicit_init_py
, we have this circular import issue now with any bazel test/run cmdWhich category does this issue belong to?
Python Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
rust_python directory
rules/pyo3.bzl
BUILD
rust_python.rs
rust_python_test.py
__init__.py
Which operating system are you running Bazel on?
ubuntu 20.04
What is the output of
bazel info release
?release 6.5.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
I can repro this error with
--incompatible_default_to_explicit_init_py
this flag set on bazel testHave you found anything relevant by searching the web?
n/a
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: