generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Description
What happened?
On 1.6.0 with Cursor (0.47.5) and the normal Python extension (2024.12.3), when I try to point my IDE to a generated venv, it fails to recognize the venv and use the associated Python interpreter due to this error:
2025-06-11 21:23:30.117 [info] > ./.examples+py_venv+venv/bin/python -I ~/.cursor/extensions/ms-python.python-2024.12.3-linux-x64/python_files/get_output_via_markers.py ~/.cursor/extensions/ms-python.python-2024.12.3-linux-x64/python_files/interpreterInfo.py
2025-06-11 21:23:30.120 [error] [Error: Command failed: /home/ambyld/Workspace/rules_py/.examples+py_venv+venv/bin/python -I /home/ambyld/.cursor/extensions/ms-python.python-2024.12.3-linux-x64/python_files/get_output_via_markers.py /home/ambyld/.cursor/extensions/ms-python.python-2024.12.3-linux-x64/python_files/interpreterInfo.py
Error: × $VIRTUAL_ENV was unbound! A venv must be activated
╰─▶ environment variable not found
help: The activate script should be available as "/home/ambyld/.cache/
bazel/_bazel_ambyld/5f6624201d25ed052fce55277d2ae465/execroot/
aspect_rules_py/bazel-out/k8-fastbuild/bin/examples/py_venv/.venv/
bin/activate"
This is working fine on 1.4.0. Perhaps related to the issue #590 was addressing?
Version
Development (host) and target OS/architectures:
Output of bazel --version:
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:
Language(s) and/or frameworks involved:
How to reproduce
Any other information?
No response
Metadata
Metadata
Assignees
Labels
No labels