Page MenuHomePhabricator

Create symlink to PWB py2 version in /shared/pywikibot
Closed, ResolvedPublicFeature

Description

PWB dropped support for Python2 in its master branch few weeks ago.
Many bots still rely on Python2, and the ones using latest version from /shared/pywikbiot/core have started to raise fatal errors few days ago.
A Python2 version of the lib was published at /data/project/pywikibot/public_html/core_python2

To give easy access to this version for bot owners, please create /shared/pywikibot/core_old_python2 -> /data/project/pywikibot/public_html/core_python2 simlink, and update README file.

For record, here are current pywikibot symlinks:

tools.framabot@tools-sgebastion-08:~$ ls -lah /shared/pywikibot
total 12K
drwxr-xr-x  2 tools.pywikibot tools.pywikibot 4.0K May 11  2019 .
drwxrwsrwt 19 root            project-tools   4.0K Feb  6 19:02 ..
lrwxrwxrwx  1 tools.pywikibot tools.pywikibot   40 Apr 23  2018 core -> /data/project/pywikibot/public_html/core
lrwxrwxrwx  1 tools.pywikibot tools.pywikibot   47 Mar 23  2019 core_stable -> /data/project/pywikibot/public_html/core_stable
-rw-rw-r--  1 tools.pywikibot tools.pywikibot  334 May 11  2019 README.md

Thanks

Event Timeline

Framawiki triaged this task as Low priority.

PWB dropped support for Python2 in its master branch few weeks ago.

No, it didn't

Many bots still rely on Python2, and the ones using latest version from /shared/pywikbiot/core have started to raise fatal errors few days ago.

Really? Could you create a task for it? This should still be investigated as Pywikibot still supports Python 2!

I've created T245318: APIErrors for maxlag parameter higher than 9 starting February 12 regarding Python 2 errors.

But whatever the outcome of this other task, I think the current is still interesting to solve (create symlink on toolforge FS). @zhuyifei1999 What do you think?

Sure it is! But core_old_python2 seems too long to me

I think too long is fine because it will soon be unsupported. Annoyance is sometimes a good thing :)

In any case, you have write access to that directory right?

Sure it is! But core_old_python2 seems too long to me

Doesn't we have core_python2 already?
https://tools.wmflabs.org/pywikibot/core_python2/

So? Which name should we choose?

Dvorapa claimed this task.
Dvorapa moved this task from Backlog to Feature requests on the Toolforge board.
Dvorapa changed the subtype of this task from "Task" to "Feature Request".

Done! core_python2