DD063520 added a comment.
@Xqt: so one bug is gone, i.e. the configuration file is taken into account: user-config.py looks like from pywikibot.config2 import usernames, register_families_folder user_families_paths = ['./config'] mylang = "my" family = "my" usernames['my']['my'] = u'WikidataUpdater' password_file = "user-password.py" and import pywikibot wikibase = pywikibot.Site("my", "my") wikibase_repo = wikibase.data_repository() print("start") item = pywikibot.ItemPage(wikibase_repo, 'Q235272') # a repository item data = item.get() # get all item data from repository for this item print(data) data={} data['labels'] = {'en': 'Test'} item.editEntity(data) Nice and clean! : ) Now there is still a bug. He can red, but he cannot edit: pywikibot.exceptions.OtherPageSaveError: Edit to page [[Item:Q235272]] failed: User "None" does not have required user right "edit" CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.OtherPageSaveError'> TASK DETAIL https://phabricator.wikimedia.org/T270949 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, DD063520 Cc: zhuyifei1999, Huji, Xqt, pywikibot-bugs-list, Dhayanthdharma, DD063520, Aklapper, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, dachary, Lewizho99, Mdupont, JJMC89, Maathavan, Metamorforme42, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs