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
No, venvs_site_packages feature is new in 1.4.0-rc0 and later
Description
The dist-info folders are not symlinked to site-packages when using venvs_site_packages=yes
Using Bazel 7.6.1, bzlmod enabled but rules_python used via WORKSPACE, with the following settings:
Using transformers package that checks its dependencies' versions using importlib.metadata, which depends on dist-info of the dependencies, leading to the error below:
π₯ Exception or Error
File "[target].venv/lib/python3.11/site-packages/transformers/__init__.py", line 26, in
from . import dependency_versions_check
File "[target].venv/lib/python3.11/site-packages/transformers/dependency_versions_check.py", line 57, in
require_version_core(deps[pkg])
File "[target].venv/lib/python3.11/site-packages/transformers/utils/versions.py", line 117, in require_version_core
return require_version(requirement, hint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[target].venv/lib/python3.11/site-packages/transformers/utils/versions.py", line 104, in require_version
raise importlib.metadata.PackageNotFoundError(
importlib.metadata.PackageNotFoundError: No package metadata was found for The 'tqdm>=4.27' distribution was not found and is required by this application.
Try: `pip install transformers -U` or `pip install -e '.[dev]'` if you're working with git main
π bug report
Affected Rule
private/py_library.bzl
Is this a regression?
No, venvs_site_packages feature is new in 1.4.0-rc0 and later
Description
The dist-info folders are not symlinked to
site-packages
when usingvenvs_site_packages=yes
Using Bazel 7.6.1, bzlmod enabled but rules_python used via WORKSPACE, with the following settings:
π¬ Minimal Reproduction
Using
transformers
package that checks its dependencies' versions usingimportlib.metadata
, which depends on dist-info of the dependencies, leading to the error below:π₯ Exception or Error
π Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
1.4.0-rc3
The text was updated successfully, but these errors were encountered: