-
Notifications
You must be signed in to change notification settings - Fork 14
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
import entity from wikidata errors: wikibaseintegrator.wbi_exceptions.MWApiError: 'The supplied language code was not recognized.' #752
Comments
Hello @traopia , do you have a code example and/or the wikidata entity you are trying to import? |
yes!
CODE:
EXAMPLE USAGE WHERE IT WORKS
Thank you for your help! |
I tried to reproduce your issue, without success. My issue is located, on the two entity, with the "ak" label, which doesn't exist anymore so you can't import it in new wikibase instance. Which version of Mediawiki and Wikibase do you use? |
Only keep the English labels, and explicitly removing all the other languages worked! ex: ` entity = wbi.item.get(wikidata_id, mediawiki_api_url=wikidata_api_url, login=login_wikidata)
|
Hi! I have this error for several entities that I am trying to import from wikidata:
wikibaseintegrator.wbi_exceptions.MWApiError: 'The supplied language code was not recognized.'
Or the following error:
wikibaseintegrator.wbi_exceptions.ModificationFailed: 'Label and and description for language code ta can not have the same value.'
How can I deal with this? They are quite a common errors (at least in my experience so far) so I guess there must be a way around.
Thank you!
The text was updated successfully, but these errors were encountered: