facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.89k stars 4.71k forks source link

fasttext.__version__ does not return version -- setup.py error? #1267

Open TheTravellingSalesman opened 2 years ago

TheTravellingSalesman commented 2 years ago

Hey there,

Just upgraded from fasttext==0.8.3 to 0.9.2, and noticed that the __version__ dunder method I'd been using before no longer works.

It fails with an attribute error, despite the version being listed in the setup() in setup.py. I also noticed that all of the other attributes besides __name__ fail in the same way.

Is there another way to programmatically access the package version from within a python script, or is this a bug?

TheTravellingSalesman commented 2 years ago

Better yet, if anyone isn't experiencing this error, please let me know 🙂