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

ImportError: cannot import name 'CombinedTM' #147

Open
vtriv07 opened this issue Jan 15, 2024 · 2 comments
Open

ImportError: cannot import name 'CombinedTM' #147

vtriv07 opened this issue Jan 15, 2024 · 2 comments

Comments

@vtriv07
Copy link

vtriv07 commented Jan 15, 2024

  • Contextualized Topic Models version: 1.4.1
  • Python version: 3.5.2
  • Operating System: macOS - bash

Description

I am trying to run CombinedTM to create topics for a dataset of approximately 45000 messages. I used pip to install the library, and when it didn't work at first, I made sure that I used the most recent version of the library by using the --upgrade flag.
This error is from running CombinedTM as part of a python file, but I also was thrown the same error when trying to use the interpreter.

When I try to upgrade to 2.2.2, I get thrown an error:
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality. Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement contextualized_topic_models==2.2.2 ERROR: No matching distribution found for contextualized_topic_models==2.2.2

What I Did

Traceback (most recent call last):
  File "combinedtm.py", line 1, in <module>
    from contextualized_topic_models.models.ctm import CombinedTM
ImportError: cannot import name 'CombinedTM'
@vinid
Copy link
Contributor

vinid commented Jan 16, 2024

Hello! i wonder if the error could be that you are using an old version of python. Do you have a virtualenv with a more recent one?

@vtriv07
Copy link
Author

vtriv07 commented Jan 31, 2024

I am using python 3.5.2. I do not have a virtualenv.

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