DNations.jp added a comment.

  It appears that .getSources() works fine on wikidata, which means the problem 
is on our private repo.  Upgrading the version is a little complicated for our 
setup but hopefully that will fix the problem.  Thanks!
  
    site = pwb.Site()
    #site.login()
    repo = site.data_repository()
    for claim in pwb.ItemPage(repo, "Q92").get()['claims']['P391']:
        print(type(claim), claim.getSources())
  
  F33925633: image.png <https://phabricator.wikimedia.org/F33925633>

TASK DETAIL
  https://phabricator.wikimedia.org/T268321

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: DNations.jp
Cc: Xqt, matej_suchanek, Aklapper, DNations.jp, pywikibot-bugs-list, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to