Closed Ming-H closed 1 year ago
Hi, how did you install? Did you use pip or install from source? What are the commands you ran?
For posterity, I just saw this error.
To reproduce, install via:
git clone https://github.com/antonisa/lang2vec
cd lang2vec
python3 setup.py install
From there, I think I did (without cd-ing back): run python, then import lang2vec as l2v
results in [Errno 20] Not a directory:....letter_codes.json'
However, then I cd-ed back to the higher-level directory and imported as import lang2vec.lang2vec as l2v
, it worked. And now it works everywhere.
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/data/letter_codes.json'