[Pywikipedia-bugs] [Maniphest] [Commented On] T325420: Add Page.add_category() method
Enag2000 added a comment. If we are doing this then maybe we should add a remove category function too? TASK DETAIL https://phabricator.wikimedia.org/T325420 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: binbot, Enag2000, Ayush_Anand3310, Aklapper, RoySmith, pywikibot-bugs-list, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T342397: Move Pywikibot PAWS tutorial out of Jupyter notebook onto wiki
Enag2000 added a comment. Moved page out of drafts. New link is https://www.mediawiki.org/wiki/Manual:Pywikibot/Pywikibot_and_PAWS. I also updated the links to the old notebook mentioned in the original write-up for this. I searched for other links but did not find any. If new page is approved, this can be closed out. TASK DETAIL https://phabricator.wikimedia.org/T342397 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: rook, Xqt, pywikibot-bugs-list, KBach, Enag2000, TBurmeister, mevo, LAVANYANELLURI, ajaypediredla14, Jainitbafna, AFZL210, Gaurav24072002, Abhinay76, PotsdamLamb, Annysah01, Rohitgeddam, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, Chaytanya, Zkhalido, JorisDarlingtonQuarshie, apaskulin, AshokChakra, wiki-helenatxu, Urstrulykkr, Viztor, 94rain, Klein, Wenyi, Tks4Fish, Mh-3110, Cpaulf30, Lahi, R96340, Ivana_Isadora, Chicocvenancio, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, xSavitar, Altostratus, Avicennasis, MuhammadShuaib, Susannaanas, Tmalhotra, Fuzheado, SimmeD, mys_721tx, Jane023, yuvipanda, Daniel_Mietchen, Dinoguy1000, jayvdb, zhuyifei1999, Masti, Alchimista, Jay8g ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument
Enag2000 added a comment. In T346417#9389468 <https://phabricator.wikimedia.org/T346417#9389468>, @Xqt wrote: > In T346417#9389162 <https://phabricator.wikimedia.org/T346417#9389162>, @Enag2000 wrote: > >> In T346417#9387794 <https://phabricator.wikimedia.org/T346417#9387794>, @Xqt wrote: >> >>> @Enag2000: Could you please provide a command line wich produces this exception above for CR >> >> Yes. Running the following on English Wikipedia will produce the exception seen above. This assumes that the directory "InvalidDirectory" does not exist. >> >> pwb.py -v category_graph -from Equations -to InvalidDirectory\Equations > > But your patch does not solve that: > > D:\pwb\GIT\core>pwb.py -simulate category_graph -from Equations -to InvalidDirectory\Equations > Scanning 'Equations' > Saving results > InvalidDirectory\Equations.gv > Traceback (most recent call last): > File "D:\pwb\GIT\core\pwb.py", line 39, in > sys.exit(main()) >^^ > File "D:\pwb\GIT\core\pwb.py", line 35, in main > runpy.run_path(str(path), run_name='__main__') > File "", line 291, in run_path > File "", line 98, in _run_module_code > File "", line 88, in _run_code > File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 515, in > main() > File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 499, in main > if not execute(): > ^ > File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 486, in execute > run_python_file(filename, script_args, module) > File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 147, in run_python_file > exec(compile(source, filename, 'exec', dont_inherit=True), > File "D:\pwb\GIT\core\scripts\category_graph.py", line 230, in > bot.run() > File "D:\pwb\GIT\core\scripts\category_graph.py", line 184, in run > self.dot.write(self.to + '.gv', encoding='utf-8') > File "C:\Python311\Lib\site-packages\pydot.py", line 1825, in write > with io.open(path, mode='wt', encoding=encoding) as f: >^^^ > FileNotFoundError: [Errno 2] No such file or directory: 'InvalidDirectory\\Equations.gv' > CRITICAL: Exiting due to uncaught exception FileNotFoundError: [Errno 2] No such file or directory: 'InvalidDirectory\\Equations.gv' Interesting. I just realized that I provided a path with '\' instead of '/' in my comment. The original exception in the issue body uses '/' and the solution was coded for ONLY '/', which is why the exception occurs with the command I sent. Running `pwb.py -v category_graph -from Equations -to InvalidDirectory\Equations` will not produce the exception. Given that file paths with either slash direction are valid, I can revise the solution to account for either scenario? I missed this when originally looking at the issue. Good catch and thanks for taking the time to review. TASK DETAIL https://phabricator.wikimedia.org/T346417 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Xqt, Aklapper, pywikibot-bugs-list, Enag2000, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument
Enag2000 added a comment. In T346417#9387794 <https://phabricator.wikimedia.org/T346417#9387794>, @Xqt wrote: > @Enag2000: Could you please provide a command line wich produces this exception above for CR Yes. Running the following on English Wikipedia will produce the exception seen above. pwb.py -v category_graph -from Equations -to InvalidDirectory\Equations TASK DETAIL https://phabricator.wikimedia.org/T346417 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Xqt, Aklapper, pywikibot-bugs-list, Enag2000, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T352237: delinker.py script of pywikibot can't solve those deleted files comes with no extension
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T352237 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T342397: Move Pywikibot PAWS tutorial out of Jupyter notebook onto wiki
Enag2000 added a comment. The draft has been completed, pending a few minor formatting edits. If approved, I will move it out of drafts so that it is visible on Wikimedia. I will look at updating the links shortly. TASK DETAIL https://phabricator.wikimedia.org/T342397 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: rook, Xqt, pywikibot-bugs-list, KBach, Enag2000, TBurmeister, mevo, LAVANYANELLURI, ajaypediredla14, Jainitbafna, AFZL210, Gaurav24072002, Abhinay76, PotsdamLamb, Annysah01, Rohitgeddam, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, Chaytanya, Zkhalido, JorisDarlingtonQuarshie, apaskulin, AshokChakra, wiki-helenatxu, Urstrulykkr, Viztor, 94rain, Klein, Wenyi, Tks4Fish, Mh-3110, Cpaulf30, Lahi, R96340, Ivana_Isadora, Chicocvenancio, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, xSavitar, Altostratus, Avicennasis, MuhammadShuaib, Susannaanas, Tmalhotra, Fuzheado, SimmeD, mys_721tx, Jane023, yuvipanda, Daniel_Mietchen, Dinoguy1000, jayvdb, zhuyifei1999, Masti, Alchimista, Jay8g ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T328900: Pywikibot logs despite -nolog
Enag2000 added a comment. Under this change, commands like -log and -nolog will be applied to both the wrapper and the bot script to be run. If that is not desired, I can do another patchset. TASK DETAIL https://phabricator.wikimedia.org/T328900 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Enag2000, Aklapper, pywikibot-bugs-list, binbot, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T327803: Allow users to deactivate and change the file path for the commands.log file
Enag2000 added a comment. Deactivation to be completed as part of T328900 <https://phabricator.wikimedia.org/T328900>. Path configuration will be fixed under this issue after T328900 <https://phabricator.wikimedia.org/T328900> is fixed and in the main branch. TASK DETAIL https://phabricator.wikimedia.org/T327803 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, MarcoAurelio, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ 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] T98106: writeToCommandLogFile() should be optional
Enag2000 added a comment. It looks like this has already been fixed in bot.py. It is now optional via the -nolog file. This was not working before but will be fixed under T328900 <https://phabricator.wikimedia.org/T328900>. TASK DETAIL https://phabricator.wikimedia.org/T98106 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: gerritbot, AndyTechGuy, jayvdb, pywikibot-bugs-list, saper, Aklapper, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, Masti, Alchimista ___ 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] T328900: Pywikibot logs despite -nolog
Enag2000 added a comment. Will be fixed as part of T327803 <https://phabricator.wikimedia.org/T327803>. TASK DETAIL https://phabricator.wikimedia.org/T328900 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Enag2000, Aklapper, pywikibot-bugs-list, binbot, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ 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] T327803: Allow users to deactivate and change the file path for the commands.log file
Enag2000 added a comment. See related issue T328900 <https://phabricator.wikimedia.org/T328900>. TASK DETAIL https://phabricator.wikimedia.org/T327803 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, MarcoAurelio, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T328900: Pywikibot logs despite -nolog
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T328900 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Enag2000, Aklapper, pywikibot-bugs-list, binbot, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T327803: Allow users to deactivate and change the file path for the commands.log file
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T327803 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, MarcoAurelio, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T328900: Pywikibot logs despite -nolog
Enag2000 added a comment. In looking at this one, it seems like there is an issue with how arguments are handled. If -nolog is included as a global argument before the name of the script, then the wrapper handles -nolog as part of its arguments and it does not carry over into logstat.py. If -nolog is included as a local argument (after logstat.py in arguments), then logstat.py is not logged to the command log because -nolog is applied. I will verify whether this is the case for all global arguments, as that would be a larger issue. Should this apply to all global arguments, I will write up a new bug report. TASK DETAIL https://phabricator.wikimedia.org/T328900 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Enag2000, Aklapper, pywikibot-bugs-list, binbot, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T98106: writeToCommandLogFile() should be optional
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T98106 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: gerritbot, AndyTechGuy, jayvdb, pywikibot-bugs-list, saper, Aklapper, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T342397: Move Pywikibot PAWS tutorial out of Jupyter notebook onto wiki
Enag2000 added a comment. Link to current draft. https://www.mediawiki.org/wiki/Manual:Pywikibot/Draft:Pywikibot_and_PAWS TASK DETAIL https://phabricator.wikimedia.org/T342397 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Xqt, pywikibot-bugs-list, KBach, Enag2000, TBurmeister, LAVANYANELLURI, ajaypediredla14, Jainitbafna, AFZL210, Gaurav24072002, Abhinay76, PotsdamLamb, Annysah01, Rohitgeddam, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, Chaytanya, Zkhalido, JorisDarlingtonQuarshie, apaskulin, AshokChakra, wiki-helenatxu, Urstrulykkr, Viztor, 94rain, Klein, Wenyi, Tks4Fish, Mh-3110, Cpaulf30, Lahi, R96340, Ivana_Isadora, Chicocvenancio, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, xSavitar, Altostratus, Avicennasis, MuhammadShuaib, Susannaanas, Tmalhotra, Fuzheado, SimmeD, mys_721tx, Jane023, yuvipanda, Daniel_Mietchen, Dinoguy1000, jayvdb, zhuyifei1999, Masti, Alchimista, Jay8g ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T349269: commons_information.py Help Message Does not Contain Enough Information
Enag2000 created this task. Enag2000 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION The help message for commons_information.py does not contain enough information. It is one line in length and does not describe usage or supported parameters. See code snippet and docs screenshot below. #!/usr/bin/env python3 """Insert a language template into the description field.""" # # (C) Pywikibot team, 2015-2023 # # Distributed under the terms of the MIT license. # F38805966: commons_information_doc.PNG <https://phabricator.wikimedia.org/F38805966> A new help message should be written that provides a better description of the bot and usage and parameters for it TASK DETAIL https://phabricator.wikimedia.org/T349269 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument
Enag2000 added a comment. Code check passed. Still awaiting completion of code review. TASK DETAIL https://phabricator.wikimedia.org/T346417 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T348709: category_graph.py does not log scanned directory correctly
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T348709 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T348709: category_graph.py does not log scanned directory correctly
Enag2000 added a comment. The string where the scanned category is logged is not a format string. The proposed solution is to format the string. This will ensure that {cat_title!r} is replaced with the correct category. TASK DETAIL https://phabricator.wikimedia.org/T348709 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T348709: category_graph.py does not log scanned directory correctly
Enag2000 created this task. Enag2000 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): 1. Run the following in the terminal. pwb.py -v category_graph -from Life **What happens?**: The following line is outputted. Scanning {cat_title!r} **What should have happened instead?**: The expected line is... Scanning 'Life' **Software version** (skip for WMF-hosted wikis like Wikipedia): Pywikibot: [ssh] pywikibot-core.git 2023/10/11, 11:14:58, master TASK DETAIL https://phabricator.wikimedia.org/T348709 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument
Enag2000 added a comment. I again accidentally submitted for review twice. My mistake. TASK DETAIL https://phabricator.wikimedia.org/T346417 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T325420: Add Page.add_category() method
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T325420 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Enag2000, Ayush_Anand3310, Aklapper, RoySmith, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T346417 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T346576: Replace '¶ms' With pagegenerators Arguments In the Web Documetation
Enag2000 closed this task as "Invalid". TASK DETAIL https://phabricator.wikimedia.org/T346576 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T346576: Replace '¶ms' With pagegenerators Arguments In the Web Documetation
Enag2000 added a comment. I see now that it actually is replaced with the line 'This script supports use of pagegenerators arguments.' My mistake. I can close this one. TASK DETAIL https://phabricator.wikimedia.org/T346576 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T346576: Replace '¶ms' With pagegenerators Arguments In the Web Documetation
Enag2000 created this task. Enag2000 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Currently, '¶ms' is not replaced in the generated Sphinx documentation here <https://doc.wikimedia.org/pywikibot/master/index.html>. As a result, any statements that are supposed to provide the pagegenerator parameters are missing the actual parameters, which is confusing for an end user reading the documentation. Using -help in the terminal is a workaround, but it would be nice if they could be listed on the site. TASK DETAIL https://phabricator.wikimedia.org/T346576 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument
Enag2000 created this task. Enag2000 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Currently, invalid file paths passed in via the -to argument result in an unhandled FileNotFoundError exception. This exception only occurs after all of the subcategories have been added to the graph object, which could take a considerable amount of time on large categories. **Full Traceback:** Traceback (most recent call last): File "C:\git\core\pwb.py", line 39, in sys.exit(main()) ^^ File "C:\git\core\pwb.py", line 35, in main runpy.run_path(str(path), run_name='__main__') File "", line 291, in run_path File "", line 98, in _run_module_code File "", line 88, in _run_code File "C:\git\core\pywikibot\scripts\wrapper.py", line 513, in main() File "C:\git\core\pywikibot\scripts\wrapper.py", line 497, in main if not execute(): ^ File "C:\git\core\pywikibot\scripts\wrapper.py", line 484, in execute run_python_file(filename, script_args, module) File "C:\git\core\pywikibot\scripts\wrapper.py", line 147, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "C:\git\core\scripts\category_graph.py", line 209, in bot.run() File "C:\git\core\scripts\category_graph.py", line 179, in run self.dot.write(self.to + '.gv', encoding='utf-8') File "C:\python\Lib\site-packages\pydot.py", line 1825, in write with io.open(path, mode='wt', encoding=encoding) as f: ^^^ FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent_directory/equations.gv' Dropped throttle(s). Closing network session. Traceback (most recent call last): File "C:\git\core\pwb.py", line 39, in sys.exit(main()) ^^ File "C:\git\core\pwb.py", line 35, in main runpy.run_path(str(path), run_name='__main__') File "", line 291, in run_path File "", line 98, in _run_module_code File "", line 88, in _run_code File "C:\git\core\pywikibot\scripts\wrapper.py", line 513, in main() File "C:\git\core\pywikibot\scripts\wrapper.py", line 497, in main if not execute(): ^ File "C:\git\core\pywikibot\scripts\wrapper.py", line 484, in execute run_python_file(filename, script_args, module) File "C:\git\core\pywikibot\scripts\wrapper.py", line 147, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "C:\git\core\scripts\category_graph.py", line 209, in bot.run() File "C:\git\core\scripts\category_graph.py", line 179, in run self.dot.write(self.to + '.gv', encoding='utf-8') File "C:\python\Lib\site-packages\pydot.py", line 1825, in write with io.open(path, mode='wt', encoding=encoding) as f: ^^^ FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent_directory/equations.gv' CRITICAL: Exiting due to uncaught exception FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent_directory/equations.gv' This input should be either checked at the beginning of program execution and rejected gracefully if invalid, or the program should create the directories necessary for the file path if they do not exist. TASK DETAIL https://phabricator.wikimedia.org/T346417 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T346007: category_graph.py does not use correct string format for DOT-string
Enag2000 closed this task as "Resolved". Enag2000 added a comment. Code review complete. Jenkins build succeeded and change merged. Moving to "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T346007 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Unassigned] T100521: [clonable] APISite and DataSite method docstrings should include a link to the corresponding mw:API help
Enag2000 removed Enag2000 as the assignee of this task. TASK DETAIL https://phabricator.wikimedia.org/T100521 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Enag2000, Xqt, hongsy, Didicodes, gerritbot, Dvorapa, MtDu, Tokenzero, TerraCodes, jayvdb, Aklapper, valhallasw, pywikibot-bugs-list, LAVANYANELLURI, ajaypediredla14, Jainitbafna, Appledora, Kitanago, MutazAwad, Mhmohona, AFZL210, Gaurav24072002, Abhinay76, PotsdamLamb, Annysah01, Rohitgeddam, Jyoo1011, Kasyap, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, Chaytanya, Zkhalido, JorisDarlingtonQuarshie, apaskulin, wiki-helenatxu, Urstrulykkr, Viztor, Klein, Wenyi, Wonnral, VisbyStar, Tks4Fish, Mh-3110, Cpaulf30, Bright1055, Lahi, Toppole69, Ivana_Isadora, Mine0901, Jayprakash12345, Chicocvenancio, JakeTheDeveloper, Tbscho, MayS, Beeyan, Mdupont, JJMC89, xSavitar, Altostratus, Avicennasis, MuhammadShuaib, Tmalhotra, SimmeD, mys_721tx, Dinoguy1000, Masti, Alchimista, Jay8g ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Retitled] T346122: i18n.py Needs to be Updated to Account for New Language Added to i18n.known_languages() so that doctest Passes in Jenkins
Enag2000 renamed this task from "pywikibot-core-tox-doctest-docker Needs to be Updated to Account for New Language Added to i18n.known_languages()" to "i18n.py Needs to be Updated to Account for New Language Added to i18n.known_languages() so that doctest Passes in Jenkins". Enag2000 updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T346122 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T346122: pywikibot-core-tox-doctest-docker Needs to be Updated to Account for New Language Added to i18n.known_languages()
Enag2000 created this task. Enag2000 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Currently, the Jenkins main test build fails due to an additional language added to the list of localized languages. This was added under commit 20ad19e337e064634f1d0afc547e972ebe5e7cbe <https://phabricator.wikimedia.org/rPWBC20ad19e337e064634f1d0afc547e972ebe5e7cbe>. **Output from a Jenkins build attempt on 2023-09-11:** === FAILURES === 09:08:56 ___ [doctest] pywikibot.i18n.known_languages ___ 09:08:56 906 All languages we have localizations for. 09:08:56 907 09:08:56 908 >>> from pywikibot import i18n 09:08:56 909 >>> i18n.known_languages()[:10] 09:08:56 910 ['ab', 'aeb', 'af', 'am', 'an', 'ang', 'anp', 'ar', 'arc', 'ary'] 09:08:56 911 >>> i18n.known_languages()[-10:] 09:08:56 912 ['vo', 'vro', 'wa', 'war', 'xal', 'xmf', 'yi', 'yo', 'yue', 'zh'] 09:08:56 913 >>> len(i18n.known_languages()) 09:08:56 Expected: 09:08:56 253 09:08:56 Got: 09:08:56 254 09:08:56 09:08:56 /src/pywikibot/i18n.py:913: DocTestFailure TASK DETAIL https://phabricator.wikimedia.org/T346122 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T346007: category_graph.py does not use correct string format for DOT-string
Enag2000 added a comment. Accidentally submitted for review twice. My mistake. I just looked at the Gerrit/Tutorial on MediaWiki and understand the correct process now. TASK DETAIL https://phabricator.wikimedia.org/T346007 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T346008: Requirements.txt does not list graphviz as a required package for category_graph.py
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T346008 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T346008: Requirements.txt does not list graphviz as a required package for category_graph.py
Enag2000 created this task. Enag2000 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION graphviz is a required component for category_graph.py to run. This is not mentioned in the pywikibot Requirements.txt file and is not installed as part of the standard pywikibot installation. Without graphviz, a `FileNotFoundError` with message "[WinError2] "dot" not found in path." will occur when running `pwb.py -v category_graph -from`. **Full Traceback** Exception has occurred: FileNotFoundError [WinError 2] "dot" not found in path. FileNotFoundError: [WinError 2] The system cannot find the file specified During handling of the above exception, another exception occurred: File "C:\git\core\scripts\category_graph.py", line 181, in run self.dot.write_svg(self.to + '.svg', encoding='utf-8') File "C:\git\core\scripts\category_graph.py", line 209, in bot.run() File "C:\git\core\pywikibot\scripts\wrapper.py", line 147, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "C:\git\core\pywikibot\scripts\wrapper.py", line 484, in execute run_python_file(filename, script_args, module) File "C:\git\core\pywikibot\scripts\wrapper.py", line 497, in main if not execute(): ^ File "C:\git\core\pywikibot\scripts\wrapper.py", line 513, in main() File "C:\git\core\pwb.py", line 35, in main runpy.run_path(str(path), run_name='__main__') File "C:\git\core\pwb.py", line 39, in sys.exit(main()) ^^ FileNotFoundError: [WinError 2] "dot" not found in path. This should be added to the Requirements.txt file under the section for interwiki_graph.py and category_graph.py. TASK DETAIL https://phabricator.wikimedia.org/T346008 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T346007: category_graph.py does not use correct string format for DOT-string
Enag2000 added a comment. Didn't realize that including the exact commit number automatically adds a mention to other issues. When documenting the version of pywikibot that a bug occured on, is just "pywikibot core master" or similar acceptable? TASK DETAIL https://phabricator.wikimedia.org/T346007 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Edited] T346007: category_graph.py does not use correct string format for DOT-string
Enag2000 updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T346007 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T346007: category_graph.py does not use correct string format for DOT-string
Enag2000 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T346007 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T346007: category_graph.py does not use correct string format for DOT-string
Enag2000 created this task. Enag2000 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue**: 1. Run the example `pwb.py -v category_graph -from` as provided by the category_graph.py docstring. **What happens?**: 1. Notice that a `TypeError` exception occurs with message NoneType is not subscriptable" on line 93. **Full Traceback:** Exception has occurred: TypeError 'NoneType' object is not subscriptable File "C:\git\core\scripts\category_graph.py", line 93, in __init__ self.dot = pydot.graph_from_dot_data(f'digraph {style}')[0] ~^^^ File "C:\git\core\scripts\category_graph.py", line 208, in bot = CategoryGraphBot(ap, args) ^^ File "C:\git\core\pywikibot\scripts\wrapper.py", line 147, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "C:\git\core\pywikibot\scripts\wrapper.py", line 484, in execute run_python_file(filename, script_args, module) File "C:\git\core\pywikibot\scripts\wrapper.py", line 497, in main if not execute(): ^ File "C:\git\core\pywikibot\scripts\wrapper.py", line 513, in main() File "C:\git\core\pwb.py", line 35, in main runpy.run_path(str(path), run_name='__main__') File "C:\git\core\pwb.py", line 39, in sys.exit(main()) ^^ TypeError: 'NoneType' object is not subscriptable **What should have happened instead?**: - `pwb.py -v category_graph -from` should run without an exception. **Software version**: - pywikibot core master, commit 7bb835150a807463a0db018d3c023a735ce15df1 <https://phabricator.wikimedia.org/rPWBC7bb835150a807463a0db018d3c023a735ce15df1> **Notes:** The DOT-string is missing exterior curly braces. See pydot <https://pypi.org/project/pydot/> Input -> 2. **Proposed Solution:** Wrap the DOT-string in category_graph.py in curly braces. TASK DETAIL https://phabricator.wikimedia.org/T346007 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T100521: [clonable] APISite and DataSite method docstrings should include a link to the corresponding mw:API help
Enag2000 claimed this task. Enag2000 added a comment. Working on this as a new contributor due to it being tagged "good first task". TASK DETAIL https://phabricator.wikimedia.org/T100521 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: Enag2000, Xqt, hongsy, Didicodes, gerritbot, Dvorapa, MtDu, Tokenzero, TerraCodes, jayvdb, Aklapper, valhallasw, pywikibot-bugs-list, LAVANYANELLURI, ajaypediredla14, Jainitbafna, Appledora, Kitanago, MutazAwad, Mhmohona, AFZL210, Gaurav24072002, Abhinay76, PotsdamLamb, Annysah01, Rohitgeddam, Jyoo1011, Kasyap, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, Chaytanya, Zkhalido, JorisDarlingtonQuarshie, apaskulin, wiki-helenatxu, Urstrulykkr, Viztor, Klein, Wenyi, Wonnral, VisbyStar, Tks4Fish, Mh-3110, Cpaulf30, Bright1055, Lahi, Toppole69, Ivana_Isadora, Mine0901, Jayprakash12345, Chicocvenancio, JakeTheDeveloper, Tbscho, MayS, Beeyan, Mdupont, JJMC89, xSavitar, Altostratus, Avicennasis, MuhammadShuaib, Tmalhotra, SimmeD, mys_721tx, Dinoguy1000, Masti, Alchimista, Jay8g ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org