-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Is it possible to relax the dependency on typing-extension < 4.6.0
#1753
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
thanks for raising -- testing removing this now; assuming it passes, we'll merge the change shortly. |
hm this was not a trivial change -- it's causing some tests to fail. i don't have time to dig in deeply at the moment. |
As a +1 here: I run into the same conflict with the upper bound when using |
Here's the test failure that is blocking this, in case someone wishes to take a look. See also tensorflow/tensorflow#60687 and tensorflow/tensorflow#61387 which ostensibly solved it. Reproduction steps:
diff --git a/required_packages.py b/required_packages.py
index cefd122..7652866 100644
--- a/required_packages.py
+++ b/required_packages.py
@@ -26,7 +26,7 @@ REQUIRED_PACKAGES = [
'cloudpickle>=1.3',
'gast>=0.3.2', # For autobatching
'dm-tree', # For NumPy/JAX backends (hence, also for prefer_static)
- 'typing-extensions<4.6.0', # TODO(b/284106340): Remove this pin
+ 'typing-extensions',
]
if __name__ == '__main__':
With
|
Looks like this is a problem with tensorflow? I think Anyway, maybe the best thing to do is to skip the test for the time being, update the typing-extensions bound that blocks us users, and file a bug with TensorFlow? |
thanks for the reports! this should be removed and pushed. tfp-nightly will get the update tomorrow. |
Fixes #1753 See also tensorflow/tensorflow#60687 and tensorflow/tensorflow#61387 PiperOrigin-RevId: 572657594
Hi, I see there were a few new releases since the commit that solves this issue has been merged. Thanks a lot for the un-pin. Do you know how long it usually takes for a new releases to make it to the colab environment? |
I think it is currently waiting on tensorflow-2.15 getting to colab -- I am not sure on that timing! tensorflow/tensorflow#62412 (comment) is possibly helpful to allow bumping TF and TFP. Sorry for not being more helpful here. |
Thanks a lot @ColCarroll |
I'm using some libraries such as
pydantic
that have conflicts withtensorflow-probability
due totyping-extension
dependency. For example pydantic depends ontyping-extension >= 4.6.1
. Same problem intensorflow
was solved with the new release 2.14The text was updated successfully, but these errors were encountered: