antonisa / lang2vec

A simple library for querying the URIEL typological database.
Creative Commons Attribution Share Alike 4.0 International
88 stars 16 forks source link

can not install #5

Closed Ming-H closed 1 year ago

Ming-H commented 4 years ago

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/data/letter_codes.json'

antonisa commented 4 years ago

Hi, how did you install? Did you use pip or install from source? What are the commands you ran?

kellymarchisio commented 1 year ago

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.