So everything worked fine with my code and then suddenly the hdbscan was not working anymore, than I re-instaled all packages and now I have a problem with umap.
I did what was suggested here and in other foruns and uninstalled and re-installed both umap-learn and bertopic . I can import umap as import umap or import umap.umap_ as UMAP , the problem is when I import bertopic. I tried:
import bertopicand
import umap.umap_ as UMAPimport bertopicand
import umapimport bertopicand
import umapfrom bertopic import BERTopicand finally:
import umap.umap_ as UMAPfrom bertopic import BERTopicIn all situations, the problem occurs when I'm importing bertopic: ImportError: cannot import name 'UMAP' from 'umap' (unknown location) . I also reboot the machine a several times. I don't think that issue is related to the environment, because I have been using the same environment before when the same code was working: Python 3.10.7 and Visual Code Studio 1.74.3 . The bertopic is version 0.13.0 and umap-learn version 0.5.3