anoopkunchukuttan / indic_nlp_library

Resources and tools for Indian language Natural Language Processing
http://anoopkunchukuttan.github.io/indic_nlp_library/
MIT License
546 stars 158 forks source link

installation of latest version not working correctly #47

Closed m-sean closed 3 years ago

m-sean commented 3 years ago

Hi, I've been working with your library and noticed today that the latest version (0.80) is not installing properly:

>>> import indicnlp
Traceback (most recent call last):
  File "/Users/seanmiller/pyenv/lib/python3.8/site-packages/indicnlp/__init__.py", line 5, in <module>
    from .version import __version__  # noqa
ModuleNotFoundError: No module named 'indicnlp.version'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/seanmiller/pyenv/lib/python3.8/site-packages/indicnlp/__init__.py", line 8, in <module>
    with open(version_txt) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/seanmiller/pyenv/lib/python3.8/site-packages/indicnlp/version.txt'

I didn't get this error with the previous version (0.71).

m-sean commented 3 years ago

Sorry—for clarity, I'm specifically referring to the PyPi release. I just checked and installing from source works fine.

anoopkunchukuttan commented 3 years ago

Thanks for pointing out. A bug was introduced due to adding the version number attribute. It has been fixed and version 0.81 has been published.

m-sean commented 3 years ago

thanks for fixing it so quickly! it's working now. heads up, the comment on line 10 of setup.py should probably be updated