langsci / pypi

Packages for the Python Package index
2 stars 1 forks source link

Importing error with pyglottolog #18

Closed kopeckyf closed 3 years ago

kopeckyf commented 3 years ago

When importing the module pyglottolog in zenodo.py, the line https://github.com/langsci/pypi/blob/67183e1d7b067ee81e092bc05f62fe6559168d28/langsci/langsci/zenodo.py#L12

is responsible for an error. Apparently, a dictionary trees is missing? The script seems to work fine when the line is deleted.

Glottotopia commented 3 years ago

you have to clone the glottolog data. See https://pypi.org/project/pyglottolog/. This yields a directory trees. Probably, that directory should have a specified location on your hard disk, to which you symlink.

There might be more convenient setups for this.

Glottotopia commented 3 years ago

The script now tries to instantiate Glottolog('.' ). If that fails, Glottocodes will be ignored for this book project.