-
Notifications
You must be signed in to change notification settings - Fork 756
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
Errors in Deploy Notebook #970
Comments
…ixes #970. PiperOrigin-RevId: 427769392
…ixes #970. PiperOrigin-RevId: 427769392
…ixes #970. PiperOrigin-RevId: 427769392
Thanks @adarob for trying to fix this. However, I am still unable to run this notebook. For some reason (even if the google-research clone seem to be OK). It is still unable to import the module. I am getting:
|
@adarob First, I am getting these errors when installing t5 in my Colab ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
yellowbrick 1.3.post1 requires numpy<1.20,>=1.16.0, but you have numpy 1.21.5 which is incompatible.
datascience 0.10.6 requires folium==0.2.1, but you have folium 0.8.3 which is incompatible.
albumentations 0.1.12 requires imgaug<0.2.7,>=0.2.5, but you have imgaug 0.2.9 which is incompatible. But the install continues despite these errors. Next cell crashes complaining first about a missing folder, then about the missing module. I am able to get around this by adding this code to the second cell: if not os.path.isdir(saved_model_dir):
os.mkdir(saved_model_dir)
%env PYTHONPATH="/content/google-research/:/content/google-research/t5_closed_book_qa:${PYTHONPATH}" Now the model is saved (For my use case this is sufficient). However, the next cell crashes with the following error: RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd As you see from the pip install log at the top of this posts, there are some numpy-version conflicts. My guess is that this is related but I have not digged any deeper into this. |
Sorry about that. I'm adding in your python path fix. The second error seems more like a Colab bug. |
PiperOrigin-RevId: 427994742
PiperOrigin-RevId: 427994742
PiperOrigin-RevId: 430044853
When running the deploy Notebook, I keep getting this error:
I am getting the same errors trying to do this from the command line, but reproducing in the Notebook is easier.
The text was updated successfully, but these errors were encountered: