-
-
Notifications
You must be signed in to change notification settings - Fork 593
Recent versions of orbax-checkpoint
fail during import
#2605
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
Comments
orbax-checkpoint
fail at runtimeorbax-checkpoint
fail during import
This is a duplicate of #2156, but the symptoms seem to relate a lot to what has been discussed in https://bazelbuild.slack.com/archives/CA306CEV6/p1738883357196659. The context of the I am not sure what other packages you have, but my suggestion would be to patch the wheel or contribute to #2156. |
Thanks for the fast reply! We do already use Your response sent me on another attempt at investigating though, and I discovered the real problem; google/orbax#1429. They're publishing |
As a workaround you could carry a patch to the wheel to remove the BUILD files. |
Uh oh!
There was an error while loading. Please reload this page.
🐞 bug report
Affected Rule
py_library
,py_binary
,py_test
Is this a regression?
No
Description
We have a monorepo using
rules_python
. During an attempt to bump some of our pypi package versions, many binaries started failing with the following error:Importantly, when we run our binaries without Bazel (we're in the process of migrating, so we still have both options) there is no error. So this issue is specific to bazel and
rules_python
.For context, we have had issues with the
orbax
package in the past, it seems to do some weird things with syspath/modules and my guess is that there is a conflict with the wayrules_python
sets up the virtual environments.🔬 Minimal Reproduction
.bazelversion
:MODULE.bazel
:BUILD.bazel
:requirements.in
:main.py
:🌍 Your Environment
Operating System:
Ubuntu 22.04
Output of
bazel version
:Rules_python version:
1.1.0
Anything else relevant?
The lastest working version of
orbax-checkpoint
is0.10.1
. Versions0.11.1
,0.11.2
,0.11.3
, and0.11.4
have the same error, and versions0.10.2
,0.10.3
, and0.11.0
also fail but with a slightly different error:Commands to run the MRE successfully (without error) outside of Bazel:
uv venv --python 3.11.9 source .venv/bin/activate uv pip sync requirements.txt uv run main.py
The text was updated successfully, but these errors were encountered: