https://bugzilla.wikimedia.org/show_bug.cgi?id=69401

            Bug ID: 69401
           Summary: creating new item on Wikidata fails - A string was
                    expected, but n ot found in the json
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Wikidata
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

pwb.py newitem -newpages:5000 -lang:cs

...
Processing [[cs:Boris Peškovič]]
[[cs:Boris Peškovič]] already has an item: [[wikidata:Q443336]].
Processing [[cs:Boříkovy lapálie (rozcestník)]]
Bot: New item with sitelink from [[wikipedia:cs:Boříkovy lapálie (rozcestník)]]
Logging in to wikidata:wikidata as JAnDbot
Traceback (most recent call last):
  File "I:\py\rewrite\pwb.py", line 171, in <module>
    run_python_file(fn, argv, argvu)
  File "I:\py\rewrite\pwb.py", line 69, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "I:\py\rewrite\scripts\newitem.py", line 142, in <module>
    main()
  File "I:\py\rewrite\scripts\newitem.py", line 139, in main
    bot.run()
  File "I:\py\rewrite\scripts\newitem.py", line 111, in run
    item.editEntity(data, summary=summary)
  File "I:\py\rewrite\pywikibot\page.py", line 2786, in editEntity
    baserevid=baserevid, **kwargs)
  File "I:\py\rewrite\pywikibot\site.py", line 854, in callee
    return fn(self, *args, **kwargs)
  File "I:\py\rewrite\pywikibot\site.py", line 4122, in editEntity
    data = req.submit()
  File "I:\py\rewrite\pywikibot\data\api.py", line 458, in submit
    raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: not-recognized-string: A string was expected, but
n
ot found in the json for the langCode cs and argument 'value'
<class 'pywikibot.data.api.APIError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to