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

Error saving file #340

Open
bgunasekera opened this issue Jul 12, 2023 · 3 comments
Open

Error saving file #340

bgunasekera opened this issue Jul 12, 2023 · 3 comments

Comments

@bgunasekera
Copy link

Hi,

If I import tensorflow_hub before importing top2vec I cannot save models and get the error
TypeError: 'NoneType' object is not iterable

Importing top2vec before tensorflow_hub allows me to save models perfectly without any errors.

top2vec Version: 1.0.29
tensorflow-hub Version: 0.13.0

@bgunasekera bgunasekera changed the title Error saving file: Error saving file Jul 12, 2023
@zhengliyu17
Copy link

same issue on Python=3.10 and top2vec=1.0.29

But how exactly can you import top2vec before tensorflow_hub, please, @bgunasekera ?

@bgunasekera
Copy link
Author

Change

import tensorflow_hub as tf
import top2vec as Top2Vec

to

import top2vec as Top2Vec
import tensorflow_hub as tf

@zhengliyu17
Copy link

Change

import tensorflow_hub as tf import top2vec as Top2Vec

to

import top2vec as Top2Vec import tensorflow_hub as tf

Thank you bgunasekera! Sadly this does not solve my problem. However I managed to solve it by changing the model saving package used from joblib to pickle.

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

No branches or pull requests

2 participants