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

ModuleNotFoundError #3

Open
Swarzox opened this issue May 6, 2024 · 2 comments
Open

ModuleNotFoundError #3

Swarzox opened this issue May 6, 2024 · 2 comments

Comments

@Swarzox
Copy link

Swarzox commented May 6, 2024

Hi there,

I'm trying to use the TopicGPT library in my Python project, but I'm encountering a ModuleNotFoundError when running my code. Here's the relevant part of the error traceback:

Traceback (most recent call last):
File "/path/to/project/main.py", line 9, in
from topicgpt.TopicGPT import TopicGPT
File "/path/to/project/env/lib/python3.12/site-packages/topicgpt/TopicGPT.py", line 14, in
from Clustering import Clustering_and_DimRed
ModuleNotFoundError: No module named 'Clustering'

I'm using Python 3.12 on macOS.

@belider
Copy link

belider commented May 6, 2024

I had the same issue caused by the openai update. From 1.0.0 version embeddings_utils was removed. Import in one of the files was causing error above.

Try:
pip uninstall openai
pip install openai==0.28.1

@lagefreitas
Copy link

hi @belonel ! Thank you for sharing this pip install openai==0.28.1 hint. It worked for me too. But I had to reinstall topicgpt too:

pip uninstall topicgpt
pip uninstall openai
pip install openai==0.28.1
pip install topicgpt

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

3 participants