Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

~/.config/cldf/catalog.ini has no entry for glottolog' #3

Open
Glottotopia opened this issue Jan 25, 2024 · 0 comments
Open

~/.config/cldf/catalog.ini has no entry for glottolog' #3

Glottotopia opened this issue Jan 25, 2024 · 0 comments

Comments

@Glottotopia
Copy link

I try to convert a file in script.

from cldflex.flex2csv import convert
flexinputfilepath = "ende.xml"
corpus = convert(flexinputfilepath)

works fine, as far as I can tell. But I want CLDF, so I say

from cldflex.flex2csv import convert
flexinputfilepath = "ende.xml"
corpus = convert(flexinputfilepath,cldf=True)

This gives me

KeyError: 'Config /home/snordhoff/.config/cldf/catalog.ini has no entry for glottolog'

https://github.com/fmatter/cldflex tells me "pass a dict to the convert methods." I have tried

convert(filename, conf={'Glottocode':'abcd1234'},cldf=True)
convert(filename, conf={'glottolog':'abcd1234'},cldf=True)

, to no avail.

I have also created a yaml file with the content Glottocode: abcd1234, as asked for by https://github.com/fmatter/cldflex. However, the script complains that it does not find an ini file, and that there is no entry for "glottolog". So I wonder whether yaml or ini is required. In any case, I have also created an ini file in ~/.config.cldf. I give the content below

[glottolog]
Glottocode = abcd1234
glottolog = abcd1234

This does not help either.
Could you share information how to provide the relevant glotto-information, or, otherwise, how to bypass the test (I do not need the glotto information for my use case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant