Xqt added a comment.

  In T282766#7084664 <https://phabricator.wikimedia.org/T282766#7084664>, 
@Legoktm wrote:
  
  > I looked into this after @Billinghurst asked on IRC, it basically was what 
@xqt identified, a different version of core and scripts.
  >
  > If you do a plain `import pywikibot`, it imports the stable version from 
`/data/project/shared/pywikibot/stable/pywikibot/__init__.py`.
  >
  > But `/shared/pywikipedia/core/` points to 
`/data/project/pywikibot/public_html/core` which is *master*, not stable.
  >
  > So the correct invocation should be: `$ python3 
/shared/pywikibot/core_stable/scripts/archivebot.py`
  
  Looks there is a mess with versions and its usage is not documented well. I 
am not familar with toolforge but I think the usual way to use Pywikibot is to 
use ist stable branch version which is deployed monthly after tests passes. The 
master branch may be used by their own risk but is also very welcomed for beta 
testers and I know that a lot of bugs might be undetected unless it is used by 
a production system. But anyway a cross usage should be avoided anyhow. A newer 
script can probably fail with an older Pywikibot release like in this case. An 
older script works with a newer Pywikibot release but can throw a 
DeprecationWarning or show a FutureWarning. If a FutureWarning is shown the 
deprecated part might be removed with the overnext Python release.

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

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

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

Reply via email to