-
-
Notifications
You must be signed in to change notification settings - Fork 652
Closed
Description
🐞 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: 1.7.0
Description
A simple py_library trying to use tensorflow-datasets as generated by pip.parse fails as below with a circular dependency error.
I understand this might be an upstream error, but considering the simplest possible repro fails, and given this wasn't a problem on 1.7.0, filing this bug here to at least understand how the new rules_python version triggered the problem.
🔬 Minimal Reproduction
See repro at https://github.com/faximan/tfds_bug_repro
$ bazel --version
bazel 8.5.1
$ bazel build //:tfds
ERROR: /home/alexanderfaxa/.cache/bazel/_bazel_alexanderfaxa/3f41e18692031c7873c3a89d819ed61c/external/rules_python++pip+tfds_pip_deps/tensorflow_datasets/BUILD.bazel:5:12: in alias rule @@rules_python++pip+tfds_pip_deps//tensorflow_datasets:pkg: cycle in dependency graph:
//:tfds (c5c171101b26aaaa46afb6c1101587724450fc2447cb97ced43593e790c16a43)
//:tfds (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
@@rules_python++pip+tfds_pip_deps//tensorflow_datasets:tensorflow_datasets (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
.-> @@rules_python++pip+tfds_pip_deps//tensorflow_datasets:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
| @@rules_python++pip+tfds_pip_deps_311_tensorflow_datasets//:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
| @@rules_python++pip+tfds_pip_deps//etils:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
| @@rules_python++pip+tfds_pip_deps_311_etils//:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
`-- @@rules_python++pip+tfds_pip_deps//tensorflow_datasets:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
🔥 Exception or Error
ERROR: /home/alexanderfaxa/.cache/bazel/_bazel_alexanderfaxa/3f41e18692031c7873c3a89d819ed61c/external/rules_python++pip+tfds_pip_deps/tensorflow_datasets/BUILD.bazel:5:12: in alias rule @@rules_python++pip+tfds_pip_deps//tensorflow_datasets:pkg: cycle in dependency graph:
//:tfds (c5c171101b26aaaa46afb6c1101587724450fc2447cb97ced43593e790c16a43)
//:tfds (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
@@rules_python++pip+tfds_pip_deps//tensorflow_datasets:tensorflow_datasets (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
.-> @@rules_python++pip+tfds_pip_deps//tensorflow_datasets:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
| @@rules_python++pip+tfds_pip_deps_311_tensorflow_datasets//:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
| @@rules_python++pip+tfds_pip_deps//etils:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
| @@rules_python++pip+tfds_pip_deps_311_etils//:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
`-- @@rules_python++pip+tfds_pip_deps//tensorflow_datasets:pkg (e8494724f8baac23aca058d3505bda14b53b5306128c401b729b89c7aeb7b13c)
🌍 Your Environment
Operating System:
Linux
Output of bazel version:
8.5.1
Rules_python version:
1.8.0
Anything else relevant?
I tried with export RULES_PYTHON_ENABLE_PIPSTAR=0 but same result, so that's not the culprit.
Metadata
Metadata
Assignees
Labels
No labels