[08:54:56] !log tools force-reboot tools-sgeexec-10-15 (unresponsive) [08:54:58] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [11:36:32] !log deployment-prep removing old (text|upload) instance references from hieradata (horizon) [11:36:35] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/SAL [11:45:32] 333 [14:59:29] I haver a problem with my pywikibot robot [15:00:18] https://pastebin.com/zGG8n6g7 [15:00:29] could somebody help me, please? [15:01:58] Thanks in advance [16:20:16] Pau: batched is only defined if you are using python < 3.12 (https://github.com/wikimedia/pywikibot/blob/a4b6282c764b38c4c912d293c8aff2229d6fc022/pywikibot/backports.py#L171) [16:21:07] not really, it just imports it from itertools on newer versions: https://github.com/wikimedia/pywikibot/blob/a4b6282c764b38c4c912d293c8aff2229d6fc022/pywikibot/backports.py#L206C34 [16:21:30] Everything on Toolforge would be using py<3.12 today I think... unless maybe you can get 3.12 via buildpacks? [16:21:51] this replace.py command was working ok yesterday [16:22:16] I Havn't changed anything [16:23:43] the command I am using is "python3 /data/project/shared/pywikibot/core/scripts/replace.py -regex ..." [16:24:02] do I have to change the path here? [16:24:10] Pau: where are you running it from? [16:24:26] (are you using a venv of sorts?) [16:24:58] I am sorry, I don't understand the question [16:25:14] I think I am not using venv ... [16:26:33] I do not know much about toolforge as you can see [16:26:38] Pau: no worries :), I'm just trying to understand the environment so I can help [16:27:13] Pau: are you running the script as your user, or as a tool? (did you run 'become ....'?) [16:27:26] I am using as a tool [16:27:54] *it [16:28:14] which tool? [16:28:19] rebot [16:28:51] okok, one sec [16:29:41] Pau: are you running the script right after running the `become ...` command? or are you using `toolforge webservice shell`? [16:30:38] op, I think I'm able to reproduce, looking [16:32:06] I think that for some reason, you are using the pywikibot module from `core`, but the backports module from the `stable` module (notice the paths) [16:32:22] I am running it after the become command [16:32:50] Pau: maybe you wanted to use the stable version for both? (`python3 /data/project/shared/pywikibot/stable/scripts/replace.py ...`) [16:33:00] (note the `stable` in the path) [16:33:00] I understand. But yesterday this combination was working [16:33:23] Pau: let me check why it picks the backports from the other repository [16:33:58] https://www.irccloud.com/pastebin/H3wNIgrz/ [16:34:11] pywikibot was updated after yesterday, that's why it broke [16:34:29] ok [16:34:30] ^ that might be yes [16:34:43] do you recommend me using stable? [16:36:03] I don't have much experience with it, so can't say much, though I guess that as long as it can do everything you want, should be good (unless you want to help testing the latest code) [16:36:50] so, do I change the path? [16:37:06] what do I have to do to make it work? [16:37:29] you can change the path to the script you are using (this is, run `python3 /data/project/shared/pywikibot/stable/scripts/replace.py ...`) [16:38:12] or change the path on the `PYTHONPATH` in your `.bash_profie` file, from `export PYTHONPATH=/data/project/shared/pywikibot/stable:/shared/pywikibot/stable/scripts` to `export PYTHONPATH=/data/project/shared/pywikibot/core:/shared/pywikibot/core/scripts` [16:38:21] both things will work [16:38:39] the first will get you the `stable` version, the second the `core` version [16:39:31] they recommend using stable in the README, so I'd go with stable [16:39:50] https://www.irccloud.com/pastebin/0IhO2FSa/ [16:43:52] it's working with stable [16:44:13] thanks [16:48:40] !log tools building initial set of bookworm based images: node18, ruby31, python311 (T335507) [16:48:43] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [16:48:43] T335507: Build Bookworm based Toolforge Kubernetes images - https://phabricator.wikimedia.org/T335507 [19:30:54] \o/ [20:16:09] !log tools.lexeme-forms deployed fe5983c571 (l10n updates: ba) [20:16:12] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.lexeme-forms/SAL