File talk:Wikidata item creation progress no text.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Python error

[edit]

It seems that the code used to generate the graph doesn't work anymore. I have pasted the python code into a file named wikidata_nbr_items_historic.py, added a python3 header (#!/usr/bin/env python3 is the first line of the script). The execution of the code gives:

./wikidata_nbr_items_historic.py
Traceback (most recent call last):
  File "./wikidata_nbr_items_historic.py", line 8, in <module>
    print(str(page.getVersionHistory(reverse=True, total=1)[0][1]) + '\t' + str(1))
AttributeError: 'Page' object has no attribute 'getVersionHistory'
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>

Maybe the page format of wikidata changed?

In any case, an update of this graph would be welcomed.

Thanks,

Dirac (talk) 16:01, 29 October 2021 (UTC)[reply]