-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: cannot use py_venv
#331
Comments
Do you have the toolchain setup? https://github.com/aspect-build/rules_py/blob/main/e2e/use_release/MODULE.bazel#L8-L10 It's missing from the setup on the releases page, will add. |
I'm not able to reproduce.
The fact that the error references rules_rust suggests that you're doing something unusual. As you can see from "Dependency Graph" on https://registry.bazel.build/modules/aspect_rules_py/0.7.1 there is no dependency from rules_py to rules_rust, only a devDependency. |
@mattem the toolchain declaration is provided by the rules_py module here: |
Hi! I found the same issue in one repo I'm working on when trying to build it on a Windows machine. I was able to reproduce it with this minimal project: https://github.com/jgsogo/rules_py-331
This is an "old" computer running Windows 10. |
@jgsogo rules_py doesn't publish / support windows yet, this is expected. Consider donating to the project if you would like to fund Windows support, #237 (comment) |
oh |
Closing as this falls in the "windows isn't supported" category, repro works as expected on supported platforms. |
Oops, wasn't aware of that. Thanks anyway :) |
What happened?
I've just added
bazel_dep(name = "aspect_rules_py", version = "0.7.1")
to make a venv, in a project where there already wasrules_python
with pip and so on: was working well.But I'm unable to declare a
py_venv
:I tried to untangle the code to find the dependency chain, but I'm out of luck.
Version
Development (host) and target OS/architectures: windows amd64
Output of
bazel --version
: bazel 7.1.1Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:bazel_dep(name = "aspect_rules_py", version = "0.7.1")
bazel_dep(name = "rules_python", version = "0.31.0")
Language(s) and/or frameworks involved: N/A
How to reproduce
Simply put
and build it.
Any other information?
I'm migrating to bzlmod: my WORKSPACE is empty.
The text was updated successfully, but these errors were encountered: