-
Notifications
You must be signed in to change notification settings - Fork 709
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
TFX cannot be installed in Colab since Colab runs on Python 3.10 #5897
Comments
We are aware of this issue and working on bumping up the python release to 3.10 for TFX. Meanwhile we tried a workaround of downgrading python version in colab environment but it fails once we restart the notebook. We will update this thread once we have an update. Thank you! |
Meanwhile we are upgrading python support to 3.10, you can try using fallback runtime version to run the TFX tutorials. To enable that, once colab runtime is connected, You can use key combination (Ctrl + Shift + P) and type "Use fallback runtime version" and select it to use Python 3.9.16 version runtime. This is allow you to run TFX examples on fallback runtime. |
Helo @singhniraj08 thanks it works ! how long this fallback runtime is kept by Colab ? |
Wow, I didn't know about this feature. Thank you @singhniraj08! I will try to put out this tip on the tutorials website as well, after checking. |
CC: @rcrowe-google This might be our temporary solution while we are migrating the libraries to Python 3.10. |
As per this issue #colabtools/3572, the the fallback runtime version is available until mid-May. |
We are currently migrating everything, but the timeline is still not very clear. Will update if we find something new. |
any fix / progress about this Python 3.10 error for TFX DV library? |
As a short term fix, this page has instructions for reverting to Python 3.8.3: |
Do we have an update on this issue? |
We are actively working on migration. Unfortunately we cannot give definite ETA, but right now it is our most prioritized item to migrate TFX to Python 3.10. |
Python 3.10 support is introduced in TFX 1.14.0 Release. Simply |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
As Python 3.10 is supported I am closing this issue. |
This issue still happens on colab with runtime Python 3.10.12, I am able to install TFX using pip install tfx. However, uppon importing tfx i get `Using TensorFlow backendImportError Traceback (most recent call last) 4 frames ImportError: cannot import name 'trial' from 'keras_tuner.engine' (/usr/local/lib/python3.10/dist-packages/keras_tuner/engine/init.py) NOTE: If your import is failing due to a missing package, you can To view examples of installing some common dependencies, click the Link to the colab: https://colab.research.google.com/drive/1ap8Gycu7s--mz0VAxp4W2DphAd1HW1yi?usp=sharing |
I am able to replicate this issue and the issue is because of
|
The 1.4.2 release of Keras Tuner is now available on PyPI. Could you see if that fixes the problem for you? |
@rcrowe-google it solved the problem. |
If the bug is related to a specific library below, please raise an issue in the
respective repo directly:
TensorFlow Data Validation Repo
TensorFlow Model Analysis Repo
TensorFlow Transform Repo
TensorFlow Serving Repo
System information
!pip install tfx==1.13.0
Interactive Notebook, Google Cloud, etc):
colab
pip freeze
output):Describe the current behavior
TFX requires python up to 3.9, while colab runs on Python 3.10.
Describe the expected behavior
Be able to install TFX on colab.
Standalone code to reproduce the issue
!pip install tfx==1.13.0
Providing a bare minimum test case or step(s) to reproduce the problem will
greatly help us to debug the issue. If possible, please share a link to
Colab/Jupyter/any notebook.
Name of your Organization (Optional)
Tinyclues / Splio
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem.
If including tracebacks, please include the full traceback. Large logs and files
should be attached.
The text was updated successfully, but these errors were encountered: