[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2023-06-08 Thread apaskulin
apaskulin added a project: Tech-Docs-Team.

TASK DETAIL
  https://phabricator.wikimedia.org/T134495

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: KBach, apaskulin
Cc: KBach, Martimpassos, Xqt, Jhernandez, MJL, Paucabot, Ameisenigel, JJMC89, 
Pavithraes, Ninjastrikers, JoKalliauer, Wenyi, binbot, Dvorapa, 
pywikibot-bugs-list, Xephyr826, tom29739, Vaishnav980123, zhuyifei1999, jayvdb, 
Aklapper, bd808, Zppix, Bellucii32, Maberdour, PotsdamLamb, Devnull, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Demian, 
apaskulin, Urstrulykkr, Viztor, Namenlos314, skpuneethumar, Zylc, Bstorm, 
Cpaulf30, 1978Gage2001, Operator873, Bsandipan, Ivana_Isadora, DSquirrelGM, 
Chicocvenancio, Tbscho, srishakatux, MayS, Freddy2001, Mdupont, Altostratus, 
Avicennasis, Luke081515, mys_721tx, Jitrixis, Dinoguy1000, Gryllida, -jem-, 
Masti, scfc, Alchimista, coren, Rfarrand, Jay8g, Krenair, jeremyb
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2023-04-05 Thread KBach
KBach edited projects, added Developer-Advocacy (Apr-Jun 2023); removed 
Developer-Advocacy (Jan-Mar 2023).

TASK DETAIL
  https://phabricator.wikimedia.org/T134495

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: KBach
Cc: KBach, Martimpassos, Xqt, Jhernandez, MJL, Paucabot, Ameisenigel, JJMC89, 
Pavithraes, Ninjastrikers, JoKalliauer, Wenyi, binbot, Dvorapa, 
pywikibot-bugs-list, Xephyr826, tom29739, Vaishnav980123, zhuyifei1999, jayvdb, 
Aklapper, bd808, Zppix, Bellucii32, Maberdour, PotsdamLamb, Devnull, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Demian, 
apaskulin, Urstrulykkr, Viztor, Namenlos314, skpuneethumar, Zylc, Bstorm, 
Cpaulf30, 1978Gage2001, Operator873, Bsandipan, Ivana_Isadora, DSquirrelGM, 
Chicocvenancio, Tbscho, srishakatux, MayS, Freddy2001, Framawiki, Mdupont, 
Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Dinoguy1000, 
Gryllida, -jem-, Masti, scfc, Alchimista, coren, Rfarrand, Jay8g, Krenair, 
jeremyb
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2023-01-19 Thread KBach
KBach added a project: Developer-Advocacy (Jan-Mar 2023).

TASK DETAIL
  https://phabricator.wikimedia.org/T134495

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: KBach
Cc: KBach, Martimpassos, Xqt, Jhernandez, MJL, Paucabot, Ameisenigel, JJMC89, 
Pavithraes, Ninjastrikers, JoKalliauer, Wenyi, binbot, Dvorapa, 
pywikibot-bugs-list, Xephyr826, tom29739, Vaishnav980123, zhuyifei1999, jayvdb, 
Aklapper, bd808, Zppix, Maberdour, PotsdamLamb, Devnull, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Demian, 
apaskulin, Urstrulykkr, Viztor, Namenlos314, skpuneethumar, Zylc, Bstorm, 
Cpaulf30, 1978Gage2001, Operator873, Bsandipan, Ivana_Isadora, DSquirrelGM, 
Jayprakash12345, Chicocvenancio, Tbscho, srishakatux, MayS, Freddy2001, 
Framawiki, Mdupont, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, 
Dinoguy1000, Gryllida, -jem-, Masti, scfc, Alchimista, coren, Rfarrand, Jay8g, 
Krenair, jeremyb
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2023-01-11 Thread KBach
KBach added a parent task: T322217: Improvements to existing Pywikibot 
resources and tutorials.

TASK DETAIL
  https://phabricator.wikimedia.org/T134495

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: KBach
Cc: KBach, Martimpassos, Xqt, Jhernandez, MJL, Paucabot, Ameisenigel, JJMC89, 
Pavithraes, Ninjastrikers, JoKalliauer, Wenyi, binbot, Dvorapa, 
pywikibot-bugs-list, Xephyr826, tom29739, Vaishnav980123, zhuyifei1999, jayvdb, 
Aklapper, bd808, Zppix, PotsdamLamb, Devnull, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Nintendofan885, Zkhalido, apaskulin, Urstrulykkr, Viztor, 
Namenlos314, skpuneethumar, Zylc, Bstorm, Cpaulf30, 1978Gage2001, Operator873, 
Bsandipan, Ivana_Isadora, DSquirrelGM, Chicocvenancio, Tbscho, MayS, 
Freddy2001, Framawiki, Mdupont, Altostratus, Avicennasis, Luke081515, 
mys_721tx, Jitrixis, Dinoguy1000, Gryllida, -jem-, Masti, scfc, Alchimista, 
coren, Jay8g, Krenair
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2022-11-03 Thread JJMC89
JJMC89 added a comment.


  > - My first issue was with the location of the pwb.py wrapper. Following 
step 5 

 doesn't work, even when using release 7.0.0 scripts location 
.
 What worked for me was calling `python3 
/data/project/shared/pywikibot/core/pwb.py generate_user_files`. Since the 
files' location has changed and that's where new users will find them, should 
there still be a caution alert or should step 5 be updated with the new path 
and recommend calling `pwb.py` with arguments rather than the utility scripts 
directly?
  
  The doc now uses `pwb`.
  
  > - What is the difference between `/stable/` and `/core/`? The caution alert 
points to `core` whereas the rest of the guide to points to `stable`
  
  stable is the git branch that corresponds to the latest released version, and 
core is the git development branch. Both locations are updated daily from the 
corresponding git branch.
  
  > - The guide states that using the shared files is recommended whenever 
possible, but the examples for setting a virtual environment use the local 
installation scenario. This is where I had the most trouble with: how to 
install custom dependencies //and// use the shared files? Or anyone with extra 
dependencies should install `pywikibot` locally? In the virtual environment 
bash script 

 example one `cd`s to `$HOME/pywikibot` and `pip3 install`s their dependencies 
with the `-e` flag. What if the user does not have the local `pywikibot` 
folder? What worked for me was simply install all my dependencies together in 
the first `pip3 install` line, and ignore the change of directory and 
`editable` installs. Should there be two extra dependencies examples, one for 
local installation and one for shared files?
  
  At this point, there is less value in using the shared files since you will 
still have to install pywikibot's dependencies. These are available globally on 
the grid but aren't in k8s. Generally, T249787 
 is the solution.
  If the local install directions were followed from the beginning, the first 
step was to git clone pywikibot into `$HOME/pywikibot`.
  
  > - Does one still need the `.pywikibot` folder? Running 
`generate_user_files` creates them in the `$HOME` directory, should they be 
moved?
  
  Not necessarily. The configuration files can go in multiple locations, 
including `.pywikibot`. See Manual:Pywikibot/user-config.py 
.
  
  > - If step 2 won't work with Kubernetes 

 and that's the recommended way of running jobs now, should the step be updated 
with the path file 

 approach?
  
  I do not recommend using a `.pth` file.
  
  > - What does the -start:! 

 flag do? I just ignored it, there's no mention to it in the jobs framework 
page 
  
  It is for pywikibot. See Manual:Pywikibot/Page Generators 
.
  
  > Furthermore, I ended up here after understanding PAWS isn't appropriated 
for long-running scripts, but have tried using Pywikibot locally on WSL2 and 
Docker without success. Does documentation for either exist? I found a WSL hack 
 but it looks 
outdated.
  
  I don't use docker, but I do my development in Ubuntu 22.04 in WSL2. I'm 
guessing you are running into issues with the user-config.py file. It must be 
owned by the user running the script and not writable by other users. WSL used 
to have issues with default file permissions - not sure if that is still the 
case. I have the below in my `~/.profile` plus I remember making some other 
adjustment for file permissions (don't recall if that was just 

[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2022-11-03 Thread JJMC89
JJMC89 added a comment.


  @Martimpassos I'm going to start with updating Help:Toolforge/Pywikibot 
 (T322364 
), then I'll circle back here with 
answers.

TASK DETAIL
  https://phabricator.wikimedia.org/T134495

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JJMC89
Cc: Martimpassos, Xqt, Jhernandez, MJL, Paucabot, srodlund, Ameisenigel, 
JJMC89, Pavithraes, Ninjastrikers, JoKalliauer, Wenyi, binbot, Dvorapa, 
pywikibot-bugs-list, Framawiki, Xephyr826, tom29739, Vaishnav980123, 
zhuyifei1999, Mattias_Ostmar-WMSE, jayvdb, Aklapper, bd808, Zppix, PotsdamLamb, 
Devnull, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, 
Zkhalido, apaskulin, Urstrulykkr, Viztor, Namenlos314, skpuneethumar, Zylc, 
Bstorm, Cpaulf30, 1978Gage2001, Operator873, Bsandipan, Ivana_Isadora, 
DSquirrelGM, Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, Altostratus, 
Avicennasis, Luke081515, mys_721tx, Jitrixis, Dinoguy1000, Gryllida, -jem-, 
Masti, scfc, Alchimista, coren, Jay8g, Krenair
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2020-03-07 Thread bd808
bd808 merged a task: T247180: Create a Toolforge tutorial on running a 
croned pywikibot script.
bd808 added a subscriber: JJMC89.

TASK DETAIL
  https://phabricator.wikimedia.org/T134495

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: srodlund, bd808
Cc: JJMC89, Pavithraes, Ninjastrikers, JoKalliauer, Wenyi, binbot, Dvorapa, 
pywikibot-bugs-list, Framawiki, Xephyr826, tom29739, Vaishnav980123, 
zhuyifei1999, Mattias_Ostmar-WMSE, jayvdb, Aklapper, bd808, Zppix, Zkhalido, 
Urstrulykkr, Viztor, Zylc, Cpaulf30, 1978Gage2001, aborrero, Ivana_Isadora, 
DSquirrelGM, Jayprakash12345, Chicocvenancio, Tbscho, MayS, Freddy2001, 
Mdupont, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, 
Dinoguy1000, Gryllida, -jem-, Masti, scfc, Alchimista, coren, Rxy, Jay8g, 
Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2019-02-26 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T134495#4986303 , 
@Dvorapa wrote:
  
  > both pretty good
  
  
  both interior to the other in some aspects.
  
  > https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot
  
  
  
  - Should use `/shared/pywikibot/core` (if grid-only 
)
 or `/data/project/shared/pywikibot/core` (works also in k8s, but I very few 
run bots in k8s...)
  - Modifying `PYTHONPATH` is evil. There is no guarantee 
 that bash_profile will be loaded at 
all. (T134495#4078967 )
- Highly recommend either using venv and/or the pwb.py in the shared 
nightly clone.
- Honestly, some people tell you to modify env vars with .bashrc, some 
.bash_profile, some .profile, and some .bash_aliases. The outcome? A terrible 
mess. (My opinion: .bash_aliases should go into .bashrc and .bashrc should be 
loaded by .profile after testing if the shell is bash; .bash_profile should go 
into .profile. Keep login shell configuration in .profile and non-login shell 
configuration in .bashrc)
  - Doesn't explain T60784#3925224 
 (Granted, people are very 
unlikely to hit this bug if they use pywikibot's own scripts, but if some more 
advanced people start to code their own pywikibot scripts and start adding some 
print statements, oh, gotta expect some fun...)
  - `generate_user_files.py` is evil. (my opinion doesn't help does it? 
admittedly, the script does help newcomers a lot, so, ignore this complaint)
  - Should seriously stop talking about compat. It ain't supported.
  - `Setup web-space` is like 4 years outdated. I'd recommend just remove the 
section.
  - qcronsub?! Is this toolserver?
  - Why `h_vmem` when we have `-mem`?
  - 256MB was default limit... until 3 years ago 

  - Should start talking about python3 rather than this aged python2
  
  tl;dr: badly outdated.
  
  > https://wikitech.wikimedia.org/wiki/Help:Toolforge/My_first_Pywikibot_tool
  
  - Nice docs on how to access toolforge
  - Local clone is the only way? This should not be used unless you're 
developing pywikibot code itself.
  - The instruction for webpage... while it works, it has nothing to do with 
pywikibot.
  - Doesn't even talk about how to submit a job to wither grid or k8s.
  - And yeah... empty sections
  
  tl;dr: nice start, but bad finish, lacking in so much stuffs that should be 
said.
  
  > https://wikitech.wikimedia.org/wiki/User:Dvorapa/Toolforge_for_beginners
  
  Looking forward to it :)

TASK DETAIL
  https://phabricator.wikimedia.org/T134495

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: srodlund, zhuyifei1999
Cc: Wenyi, binbot, Dvorapa, pywikibot-bugs-list, Framawiki, Xephyr826, 
tom29739, Vaishnav980123, zhuyifei1999, Mattias_Ostmar-WMSE, jayvdb, Aklapper, 
bd808, Zppix, Urstrulykkr, AndyTan, Zylc, Cpaulf30, 1978Gage2001, aborrero, 
Ivana_Isadora, Jayprakash12345, Chicocvenancio, Tbscho, MayS, Freddy2001, 
Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, Dinoguy1000, 
Gryllida, -jem-, Dalba, Masti, scfc, Alchimista, coren, Rxy, Jay8g, Krenair, 
chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2018-09-07 Thread srodlund
srodlund added a project: User-srodlund.
TASK DETAILhttps://phabricator.wikimedia.org/T134495EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: srodlundCc: binbot, Dvorapa, pywikibot-bugs-list, Framawiki, Xephyr826, tom29739, Vaishnav980123, zhuyifei1999, Mattias_Ostmar-WMSE, jayvdb, Aklapper, bd808, Zppix, AndyTan, Zylc, Cpaulf30, 1978Gage2001, aborrero, Ivana_Isadora, Jayprakash12345, Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, Dinoguy1000, Gryllida, -jem-, Dalba, Masti, scfc, Alchimista, coren, Rxy, Jay8g, Krenair, chasemp___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2018-06-19 Thread Dvorapa
Dvorapa added projects: Pywikibot-Documentation, Pywikibot-core.Herald added a subscriber: pywikibot-bugs-list.
TASK DETAILhttps://phabricator.wikimedia.org/T134495EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xephyr826, DvorapaCc: pywikibot-bugs-list, Framawiki, Xephyr826, tom29739, Vaishnav980123, zhuyifei1999, Mattias_Ostmar-WMSE, jayvdb, Aklapper, bd808, Zppix, AndyTan, Zylc, Cpaulf30, 1978Gage2001, aborrero, Ivana_Isadora, Jayprakash12345, Chicocvenancio, Magul, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, Dinoguy1000, Gryllida, -jem-, Dalba, Masti, scfc, Alchimista, coren, Rxy, Jay8g, Krenair, chasemp___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs