[12:17:44] Hi all [12:18:13] I am still struggling with installing and setup pywikibot https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot [12:19:56] I have created pwb_venv.sh, and at step 3 it just not run [12:20:13] "/bin/sh: 1: /data/project/ato/pwb_venv.sh: not found" [12:20:28] But it is there. [12:21:07] ato: perhaps execution permissions missing? [12:21:15] try chmod a+x pwb_venv.sh [12:21:43] ie, step #2 in the docs you linked [12:23:04] ls -al $HOME/pwb_venv.sh seds: [12:23:05] -rwxrwxr-x 1 tools.ato tools.ato 518 Jan 29 09:56 /data/project/ato/pwb_venv.sh [12:24:10] Some stuff broke after the latest update and not sure if the Pywikibot docs are all up to speed, see also https://phabricator.wikimedia.org/T327600 [12:26:12] Yes, thats why and some others bot does not work as before... [12:26:37]  thats why my and some others bot does not work as before... [12:27:31] I am close to give up [12:33:54] ato: I'm sorry, I can help you tomorrow, but today I'm out of time in front of the laptop. Could you please don't give up and come back tomorrow? :-) [12:35:01] ato: additionally, you can try sending an email to cloud@l.w.o and you may find an answer by other folks who aren't online at the moment [12:35:18] * arturo offline now [12:37:08] !log tools.lexeme-forms deployed 3ca9650fe1 (Danish adjectives) [12:37:11] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.lexeme-forms/SAL [12:38:34] ato: are you installing pwb from pip or git? [12:39:24] I tried git [12:39:50] let me take a look :) It took me three tries when I did mine but eventually managed to do it [12:42:16] I am over 10 tries :) [12:45:56] ato: maybe you can try with: toolforge-jobs run setup-venv --command "$HOME/pwbvenv/bin/python3 $HOME/pwb_venv.sh" --image python3.9 --wait ? [12:46:23] there's is/was an issue with git install requiring the full path to the python3 bin inside the virtualenv [12:47:57] Super! :) [12:48:00] Thx [12:48:19] did it work this time? [12:48:33] running a .sh script with bin/python3? o_O [12:50:00] it has python and pip commands inside... that's what the doc says :) [12:50:48] almost :) [12:50:53]   File "/data/project/ato/pwb_venv.sh", line 4 [12:50:53]     rm -fdr pwbvenv $HOME/pywikibot-core [12:50:54]             ^ [12:50:54] SyntaxError: invalid syntax [12:51:26] ma: it's a shell script, not python code [12:52:10] taavi: just following https://wikitech.wikimedia.org/w/index.php?title=Help:Toolforge/Pywikibot&oldid=2041957 [12:52:35] where does it say to run the setup script like that? [12:52:38] where do those docs tell you to run a shell script with python as the interpreter? [12:52:42] jinx ^^ [12:52:59] under “Create jobs” they use python as the interpreter to run a *python* script [12:53:04] taavi: Section 1, point 3 [12:53:15] but step 3 under installation does not run pwb_venv.sh using bin/python [12:53:27] "tools.TOOLNAME@tools-sgebastion-10:~$ toolforge-jobs run setup-venv --command $HOME/pwb_venv.sh --image tf-python39 --wait [12:53:27] INFO: job 'setup-venv' completed" [12:53:40] and: [12:53:54] Due to T320851, git installs use $ python3 $HOME/pywikibot-core/pwb.py ... instead of $ pwb ... in steps 4 and 5. [12:53:54] T320851: pwb console script does not work when pip installed from git - https://phabricator.wikimedia.org/T320851 [12:54:10] “in steps 4 and 5” [12:54:14] step 3 is neither step 4 nor step 5 [12:55:06] In that case I am coming back to loosing my shell script [12:55:09] SyntaxError: invalid syntax [12:55:16] ato: I see the `.bash_profile` file in your tool has some configuration for using the shared pywikibot install. try removing them and trying again? [12:55:58] taavi: correct; last time I reinstalled the venv I did: toolforge-jobs run setup-venv --command $HOME/pwb_venv.sh --image python3.9 -e worklogs/setup-venv.log - o worklogs/setup-venv.log --wait [12:56:10] * -o [12:59:45] Now it seems worked [13:01:33] ato: hmm. the virtualenv in your tool is for python 3.7, but it should be for 3.9 [13:01:36] mind if I try? [13:03:58] I dont know why. [13:04:19] What can you try? [13:07:41] Just do it. [13:08:14] ato: how did you create the pwb_venv.sh file? [13:13:39] copy-paste innotepad++ [13:14:13] ato: I managed to fix it. Windows and Linux encode file endings differently, and it looks like that file was created with the Windows variant, which sometimes causes compatibility issues when running on Linux systems (like Toolforge). I re-created the file using Linux file endings and not it works properly. [13:14:34] Windows 11 [13:15:27] I don't have a Windows machine handy, but there migth be an option to change the line endings somewhere in Notepad++'s settings. the 'correct' option might also be called '\n' (instead of ) [13:15:41] (instead of '\r\n') or 'Unix' [13:15:56] either way, it worked now [13:15:59] Thank you! [13:16:23] yw! sorry it was this confusing. I'll see if we can automatically detect these kinds of issues or at least add a warning to the documentation [13:19:27] It seems to be my special problem stumbling between windows and linux [13:35:56] taavi: wow… so I guess “not found” was referring to the interpreter in #!/bin/sh\r ? [13:50:31] @lucaswerkmeister: yes.. I had to look at the a hexdump to figure out what was going on [14:20:39] Thank you all! Have a nice day and a nice week! Bye. [18:36:36] Hi there. Would anyone know how to recover a wikimedia account linked to an institutional email which no longer exist? [18:39:38] Guest9396: SUL or ldap? [18:40:03] LAPD [18:40:55] I am trying to connect my toolforge account to my LAPD, but getting a message that my LAPD is already connected to another Wikimedia account [18:41:22] Probably an old one linked to a previous institutional email that no longer exist [18:41:56] Guest9396: do you still have ssh access to the toolforge bastions? [18:44:47] I can connect to toolforge but not able to do this (Link your Wikimedia account and developer account by logging in using OAuth.) and  (Login to Phabricator using your Wikimedia account or your developer account. This will create a new Phabricator account if you do not have one yet.) [18:45:30] It basically shows to both #Linked Wikimedia account not found# and #Linked Phabricator account not found# [18:47:36] Hi [18:47:42] Just lost previous connection [18:48:06] But I was raising the question the LAPD account [19:21:53] !log tools.upcoming-mainpage Updated from 4ed2db5 to a62a237 [19:21:55] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.upcoming-mainpage/SAL [19:58:08] Hi. Does anyone know how to know the email I used to create an old Wikitech account? [20:05:59] search your mailboxes? :) [20:07:01] Though if you can SSH in, you presumably can ldapsearch yourself... I think? [20:07:37] thanks