[Labs-l] Python scripts using system-wide mwclient should be restarted

Bryan Davis bd808 at wikimedia.org
Wed May 25 15:08:14 UTC 2016


The python mwclient library installed on the Tool Labs grid was
updated yesterday to v0.8.1. This version properly defaults to using
HTTPS when connecting to the Wikimedia wikis. If you are running a
long running process using this library you should restart to pick up
the improved library.

On a related note, it seems that mwclient treats protocol relative
URLs as http by default. Setting `scheme='https'` in the configuration
changes the default. [0]

Starting on 2016-06-12 non-HTTPS requests to Wikimedia wikis will be
unsupported [1]. See Phabricator task T105794 [2] for more details.

[0]: https://phabricator.wikimedia.org/T105794#2314347
[1]: https://lists.wikimedia.org/pipermail/wikitech-l/2016-May/085618.html
[2]: https://phabricator.wikimedia.org/T105794

Bryan
-- 
Bryan Davis              Wikimedia Foundation    <bd808 at wikimedia.org>
[[m:User:BDavis_(WMF)]]  Sr Software Engineer            Boise, ID USA
irc: bd808                                        v:415.839.6885 x6855



More information about the Labs-l mailing list