-
Notifications
You must be signed in to change notification settings - Fork 41
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
orbax-0.1.8
: Bad package release?
#436
Comments
Hi Andreas, Thanks for the note, and apologies for any confusion! Import statements in actual code can remain unchanged, as orbax functions as a standard Python namespace. This information should be in the error that appears on |
Hi Ayush. Oh, I missed that renaming indeed! This is what I see on a fresh Colab VM when trying to install
And indeed, I see similar error messages when trying to So it seems this is not Thanks, Andreas |
Oh, actually if one things of adding the
|
Though I'm wondering: why push a new This will break lots of other libs that specify For example, the following command breaks: As does the following command: Maybe it would be better to have an empty |
We did seriously consider an empty package dependent on both of the "child" packages, but ended up deciding that a clean break would be better in the long-term, better aligned with precedent from other packages. If a user must pin another package to an older version and for some reason miss the switch to e.g. cc @cpgaffney1 |
When discussing these two options, what argument convinced you that a "clean break" would be the better option? I think the "empty package with child dependencies" options would only have the minor disadvantage that some user that erroneously depends on On the other hand the "clean break" option might result in many breakages (e.g. all cases that need to pin JAX for some reason, like above young-geng/EasyLM#84, or the regular TPU Colab runtimes). These errors are easy to fix, but it still adds an overhead everytime it occurs. |
One factor that we considered was that Since Ultimately, it can be argued that we have taken a less-than-optimal approach by doing this separation rather than an approach like that of the etils library, for example, and I'm definitely receptive to that line of thinking. |
Renaming is always painful :-) It's great though to do the effort and establish a well structured PyPI naming scheme! If we go with the analogy of ^1: Note that everything that follows is an assumption – I didn't actually check if |
tflite-model-maker won't install with pip because of the change mantioned above. what should we do? there is a dependency with flax and the tensorflowjs which breaks lots of packages installation with pypi. what is the solution? |
The latest version of Even the most recent Can you tell us more about your issue? |
Also coming here from trying to install tflite-model-maker. Here's the error in full. I'm not typically working in python so I apologize if this would be a simple version change in the I've tried installing both
|
I would still vote for publishing a new This would effectively solve all these issues, while still pointing new users to the new updated package naming. |
I was able to successfully install |
That may be a happy coincidence, just pushed an orbax release :) (though After some brief discussion, we've decided to have Given that, will close this issue. Please reopen if any concerns arise! |
Quick fix: Use
pip install orbax==0.1.7
until this issue is fixed.Something seems to have gone wrong:
Downloading the package manually and inspecting its contents (from PyPI: https://pypi.org/project/orbax/0.1.8/#files):
It should look something like the previous release:
=> The
orbax-0.1.8
package should probably be yanked, and a new packageorbax-0.1.9
should be released.Ideally, the release process would be automated via Github action, like for example here:
https://github.com/google/flax/blob/main/.github/workflows/pythonpublish.yml
The text was updated successfully, but these errors were encountered: