Closed shrey6996 closed 1 year ago
Hi @shrey6996 !
For me, just upgrading numpy
to the latest version and then restarting the runtime worked fine.
Here is a notebook that reproduces it https://colab.research.google.com/drive/1ddqodId2pmpT-qtW0Y93kH0aR2CnqACB?usp=sharing
Does it work for you?
@avidale It works sometimes which is wierd! So I tried it on colab by first running the code without upgrading numpy and I got the above mentioned error. So I upgraded it, restarted the runtime and then it wokrs fine.
But if I first upgrade numpy and then run I get the error "AttributeError: module 'numpy' has no attribute '_no_nep50_warning'"
Yes, the same happens for me.
But it happens even without compress-fasttext
: you can try e.g. just pip install gensim>=4.0.0
and then call from gensim import corpora
, and you'll get the same error. This is because the error is generated somewhere between Gensim, Scipy and Numpy, and I, as a developer of compress-fasttext
, cannot really help it.
I installed using
!pip install compress-fasttext
in colab and it works fine. But when I try to import it viaimport compress_fasttext
it errors out. I tried upgrading the numpy version, building pycocotools as mentioned in various Stack Overflow links but nothing works.