Closed tgeng closed 1 month ago
any thoughts? @mattem
gentle ping @mattem @alexeagle
Can you provide more complete reproduction steps? I'm not clear on what the issue is here.
Sure, here is a repro https://github.com/tgeng/pycross_venv_bug_repro
any update on this? i am having the same bug
I'm also hitting the same issue but with airflow via rules_pycross
. My workaround is to set package_collisions = "ignore"
on my binary target(s).
What happened?
When site-packages have conflicts, I am getting a panic like
Looking at the code it seems to me that the following line should be
site-packages
rather than.runefiles/
https://github.com/aspect-build/rules_py/blob/main/py/tools/py/src/pth.rs#L144
Apparently,
tgt
seems to be pointing to the "source" (for example<execroot>/_main/bazel-out/k8-fastbuild/bin/external/some~external~module/some/pypi/package/site-packages/some/python/file.py
), so it won't contain any.runfiles
in the path.Version
Development (host) and target OS/architectures:
Output of
bazel --version
:Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: 0.7.3Language(s) and/or frameworks involved: Python
How to reproduce
Any other information?
No response