Dalba added a comment.

  I'm not sure how the `login` script works, but you should be able to 
workaround the main issue by calling `site.login()` in your script:
  
    import pywikibot
    site = pywikibot.Site()
    site.login()  # add this line, make sure username and password_file are 
defined in user-config.py
    print(len(list(site.watched_pages())))
  
  (this way, there should be no need to call `pwb.py login` before running the 
script)

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

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

To: Dalba
Cc: Dalba, Aklapper, pywikibot-bugs-list, binbot, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, 
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to