Legoktm added a comment.

  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`
  
  Another thing I noticed is that `/shared/pywikipedia` and `/shared/pywikibot` 
are different:
  
    $ ls -l /shared/pywikipedia
    total 8
    lrwxrwxrwx 1 valhallasw      project-tools     42 Dec  4  2013 compat -> 
/data/project/pywikibot/public_html/compat
    lrwxrwxrwx 1 tools.pywikibot tools.pywikibot    6 Mar 23  2019 compat_old 
-> compat
    lrwxrwxrwx 1 valhallasw      project-tools     40 Dec  4  2013 core -> 
/data/project/pywikibot/public_html/core
    lrwxrwxrwx 1 tools.pywikibot tools.pywikibot   47 Mar 23  2019 core_old -> 
/data/project/pywikibot/public_html/core_stable
    drwxrwsr-x 3 tools.russbot   project-tools   4096 Mar 23  2019 
core_old_moved
    -rw-rw-r-- 1 tools.pywikibot tools.pywikibot   68 Apr 23  2018 README.md
    lrwxrwxrwx 1 tools.russbot   project-tools      4 Jul 29  2013 rewrite -> 
core
    lrwxrwxrwx 1 tools.russbot   project-tools      6 Jul 29  2013 trunk -> 
compat
    $ ls -l /shared/pywikibot
    total 4
    lrwxrwxrwx 1 tools.pywikibot tools.pywikibot  40 Apr 23  2018 core -> 
/data/project/pywikibot/public_html/core
    lrwxrwxrwx 1 tools.pywikibot tools.pywikibot  48 Feb 28  2020 core_python2 
-> /data/project/pywikibot/public_html/core_python2
    lrwxrwxrwx 1 tools.pywikibot tools.pywikibot  47 Mar 23  2019 core_stable 
-> /data/project/pywikibot/public_html/core_stable
    lrwxrwxrwx 1 tools.pywikibot tools.pywikibot  12 Mar 24  2020 python2 -> 
core_python2
    -rw-rw-r-- 1 tools.pywikibot tools.pywikibot 393 Feb 28  2020 README.md
    lrwxrwxrwx 1 tools.pywikibot tools.pywikibot  11 Mar 24  2020 stable -> 
core_stable
  
  It would be nice if we could just symlink `/shared/pywikipedia` -> 
`/shared/pywikibot`, I don't know why we didn't do that in the past.

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

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

To: Legoktm
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