barrust / pyspellchecker

Pure Python Spell Checking http://pyspellchecker.readthedocs.io/en/latest/
MIT License
694 stars 101 forks source link

Unable to read dictionary #105

Closed mahmoud-alsahlee closed 3 years ago

mahmoud-alsahlee commented 3 years ago

I am using python version 3.9.5 My .py program is running fine with spell check but when I convert from .py to .exe and run it throws me an error: ValueError: The provided dictionary language (en) does not exist! I tried other languages and the same message still remaining.

Kindly help

mahmoud-alsahlee commented 3 years ago

the problem was in installing the pyspellchecker using : pip install pyspellchecker

to solve this issue use the sources installer as in the documentation:

git clone https://github.com/barrust/pyspellchecker.git cd pyspellchecker python setup.py install

barrust commented 3 years ago

That is interesting. I am glad you found a work around. The documentation has some information on how one can use PyInstaller to convert to an .exe without having to go through the manual installation.

Anyways, glad it is working for you!