Skip to content
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

Recommend 'tensorflow-probability[tf]' extra on tf-keras import failure #1796

Conversation

matthewfeickert
Copy link
Contributor

  • In addition to recommending users install TensorFlow dependencies piecemeal, also recommend using the 'tf' extra to install all required dependencies to use tensorflow-probability with tensorflow.
  • Split this off from the rest of the error message as it is already too long.

As this amends 988f023 tagging @jburnim for review.

* In addition to recommending users install TensorFlow dependencies piecemeal, also
  recommend using the 'tf' extra to install all required dependencies to use
  tensorflow-probability with tensorflow.
* Split this off from the rest of the error message as it is already too long.
@matthewfeickert matthewfeickert force-pushed the fix/suggest-using-extra-in-error-message branch from b3a621d to 4b480b7 Compare March 10, 2024 07:05
@matthewfeickert
Copy link
Contributor Author

Note the pylint errors are not associated with my PR:

$ pylint -j2 --rcfile=testing/pylintrc tensorflow_probability/python/__init__.py
pylint: Command line or configuration file:1: UserWarning: 'StandardError' is not a proper value for the 'overgeneral-exceptions' option. Use fully qualified name (maybe 'builtins.StandardError' ?) instead. This will cease to be checked at runtime when the configuration upgrader is released.
pylint: Command line or configuration file:1: UserWarning: 'Exception' is not a proper value for the 'overgeneral-exceptions' option. Use fully qualified name (maybe 'builtins.Exception' ?) instead. This will cease to be checked at runtime when the configuration upgrader is released.
pylint: Command line or configuration file:1: UserWarning: 'BaseException' is not a proper value for the 'overgeneral-exceptions' option. Use fully qualified name (maybe 'builtins.BaseException' ?) instead. This will cease to be checked at runtime when the configuration upgrader is released.
************* Module tensorflow_probability.python
W4901: 49 _validate_tf_environment: Deprecated module 'distutils.version' [deprecated-module]

-----------------------------------
Your code has been rated at 9.80/10

@copybara-service copybara-service bot merged commit 7baa486 into tensorflow:main Mar 12, 2024
6 of 7 checks passed
@ColCarroll
Copy link
Contributor

thanks for being on top of this, @matthewfeickert !

@matthewfeickert matthewfeickert deleted the fix/suggest-using-extra-in-error-message branch March 12, 2024 16:58
@matthewfeickert
Copy link
Contributor Author

Thank you for the fast review, @ColCarroll! Also thanks to you and the rest of the team for tfp in general!

@ColCarroll
Copy link
Contributor

it was all @jburnim on getting the code in and merged efficiently. i'm just the bearer of gratitude 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants