repp / big-phoney

Get phonetic spellings and syllable counts for any english word. Works with made-up and non-dictionary words
GNU General Public License v3.0
91 stars 13 forks source link

phoney = BigPhoney() -> global name 'FileNotFoundError' is not defined #1

Closed trebor74hr closed 6 years ago

trebor74hr commented 6 years ago

Hi, I have installed the library and tried:

from big_phoney import BigPhoney
phoney = BigPhoney()

but this produces the following error:

/Users/rlujo/env/tmp2/phoney/lib/python2.7/site-packages/big_phoney/utils.pyc in load_pickle_dict(dict_path)
     61 def load_pickle_dict(dict_path):
     62     if not os.path.isfile(dict_path):
---> 63         raise FileNotFoundError('The dictionary file is missing. Generate it by running '
     64                                 '`python dev/generate_dictionaries.py`')

global name 'FileNotFoundError' is not defined
repp commented 6 years ago

I'll take a look.

repp commented 6 years ago

Hey @trebor74hr which version of python are you using? BigPhoney only currently works with python3.

trebor74hr commented 6 years ago

Yes, I thought that could be a problem - I tried python 2.7. I saw you added a python3 req note in instructions.