[Wikitech-l] Mailman 3 - is there an API available?

2021-06-19 Thread Martin Urbanec
Hello, does Mailman 3 (as-installed by Wikimedia) have an API I could use? I'm an administrator of WMCZ's internal maillist, and it would help me if I could sync the addresses with evidence of members with a script rather than having to do it manually each time a new member is admitted (or

[Wikitech-l] Re: How to get python 3.6+ at toolforge?

2021-06-19 Thread QEDK
You can use the Debian buster images with Kubernetes which have Python 3.7.3 pre-installed. Best, QEDK On Sat, Jun 19, 2021, 23:25 Shrinivasan T wrote: > Hello all, > > I have a bot written in python3.8, which uses fstrings a lot. > https://realpython.com/python-f-strings/ > > When deployed

[Wikitech-l] Re: How to get python 3.6+ at toolforge?

2021-06-19 Thread Roy Smith
When I enquired about this a while ago, I was told that WMF would not install a newer python on the existing Debian Stretch hosts because there was no pre-built package for it. I ended up building my own Python 3.7 binary from source for use on the debian stretch hosts. It's actually pretty

[Wikitech-l] Re: Mailman 3 - is there an API available?

2021-06-19 Thread Kunal Mehta
Hi, On 6/19/21 5:32 AM, Martin Urbanec wrote: does Mailman 3 (as-installed by Wikimedia) have an API I could use? Yes it has an API, but it's not available for public access. Everything in Mailman3 is driven by a REST API, however that API has a single user/password and has access to do

[Wikitech-l] Re: Need help to login with pwb.py with a bot account

2021-06-19 Thread Shrinivasan T
> The relevant portion is {'result': 'Failed', 'reason': 'Incorrect username or > password entered. Please try again.'}. > > You should not be using the same password that is used to log in to the web > UI. For a BotPassword, see the configuration steps at >

[Wikitech-l] Re: Need help to login with pwb.py with a bot account

2021-06-19 Thread Nasir Khan
This is interesting, 2-3 days I tried to use the mediawiki API from a bot account and it was not successful. But when i tried to do the same from my administrator account all the API was working fine. I tried that on Mediawiki 1.35.2 on a fresh local installation. -- *Nasir Khan Saikat*

[Wikitech-l] Re: How to get python 3.6+ at toolforge?

2021-06-19 Thread Taavi Väänänen via Wikitech-l
Hi, You should not be running any heavy scripts (such as bots) on the bastions (login.toolforge.org and dev.toolforge.org), run them on the job grid[0] (which has Python 3.5) or in Kubernetes[1] (Python 3.7) instead. On 6/19/21 9:58 PM, QEDK wrote: I don't think so, unless it's upgraded

[Wikitech-l] Re: How to get python 3.6+ at toolforge?

2021-06-19 Thread QEDK
I don't think so, unless it's upgraded anytime soon (not sure about timelines) or sudo access is provided to you so you can build from source. Getting a hang of k8s in toolforge takes a while but it's easy once you have it set up. Here's a guide on how you can do cronjobs in k8s:

[Wikitech-l] How to get python 3.6+ at toolforge?

2021-06-19 Thread Shrinivasan T
Hello all, I have a bot written in python3.8, which uses fstrings a lot. https://realpython.com/python-f-strings/ When deployed the bot on the toolforge, found that it has python3.5 Hence cant run the bot. It cant understand the fstrings. Is there any way we can get python version 3.6 or

[Wikitech-l] Re: Mailman 3 - is there an API available?

2021-06-19 Thread Martin Urbanec
Hello Kunal, Thanks for your answer. WMCZ has a private self-hosted wiki that can be used as a data source for the maillist. Unfortunately, who is a member is private information, so I'm not sure how it would be possible to sync it with WMF service. An alternative would be to somehow (privately)

[Wikitech-l] Need Help for MediaWiki Skin Development

2021-06-19 Thread Nasir Khan
Hi, I want to develop a skin for MediaWiki and need some help with a number of issues I have faced. I read How to guilde.[1]. There are references to Example skin and Skin Labs skin. I could not install the Skin Labs skin as it is tagged for MediaWiki 1.37+ and then I started to look into the

[Wikitech-l] Re: How to get python 3.6+ at toolforge?

2021-06-19 Thread Shrinivasan T
> You can use the Debian buster images with Kubernetes which have Python > 3.7.3 pre-installed. > I need to run the not as a cronjob in toolforge. I think I can setup the cron on toolforge server. This is plain python script. I don't need docker or kubernetes for this. Is there any way to get

[Wikitech-l] Need help to login with pwb.py with a bot account

2021-06-19 Thread Shrinivasan T
Hello all, I am trying to run a pywikibot based bot on toolforge server. i logged into tool forge. Cloned the pywikibot. created the user-config.py and user-password.py with below content. cat user-config.py mylang = 'pa' family = 'wikisource' usernames['wikisource']['pa'] = 'WD-WS