Page MenuHomePhabricator

Enag2000 (Ethan)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Friday

  • Clear sailing ahead.

User Details

User Since
Sep 3 2023, 10:24 PM (42 w, 2 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Enag2000 [ Global Accounts ]

Recent Activity

Jan 16 2024

Enag2000 added a comment to T325420: Add Page.add_category() method.

If we are doing this then maybe we should add a remove category function too?

Jan 16 2024, 5:49 AM · Patch-For-Review, Pywikibot

Dec 26 2023

Enag2000 added a comment to T342397: Move Pywikibot PAWS tutorial out of Jupyter notebook onto wiki.

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.

Dec 26 2023, 6:30 PM · Pywikibot-Documentation, Pywikibot, PAWS, good first task, Documentation

Dec 8 2023

Enag2000 added a comment to T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument.

@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 <module>
    sys.exit(main())
             ^^^^^^
  File "D:\pwb\GIT\core\pwb.py", line 35, in main
    runpy.run_path(str(path), run_name='__main__')
  File "<frozen runpy>", line 291, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 515, in <module>
    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 <module>
    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'
Dec 8 2023, 4:58 AM · Pywikibot

Dec 7 2023

Enag2000 added a comment to T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument.

@Enag2000: Could you please provide a command line wich produces this exception above for CR

Dec 7 2023, 5:28 AM · Pywikibot

Nov 29 2023

Enag2000 claimed T352237: delinker.py script of pywikibot can't solve those deleted files comes with no extension.
Nov 29 2023, 5:15 AM · Pywikibot-Scripts, Pywikibot

Nov 21 2023

Enag2000 added a comment to T342397: Move Pywikibot PAWS tutorial out of Jupyter notebook onto wiki.

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.

Nov 21 2023, 4:50 AM · Pywikibot-Documentation, Pywikibot, PAWS, good first task, Documentation

Nov 12 2023

Enag2000 added a comment to T328900: Pywikibot logs despite -nolog.

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.

Nov 12 2023, 12:13 AM · Pywikibot
Enag2000 added a comment to T327803: Allow users to deactivate and change the file path for the commands.log file.

Deactivation to be completed as part of T328900.

Nov 12 2023, 12:05 AM · Pywikibot
Enag2000 added a comment to T98106: writeToCommandLogFile() should be optional.

It looks like this has already been fixed in bot.py. It is now optional via the -nolog file.

Nov 12 2023, 12:04 AM · Pywikibot, Patch-For-Review, Pywikibot-network

Nov 10 2023

Enag2000 added a comment to T328900: Pywikibot logs despite -nolog.
Nov 10 2023, 6:18 AM · Pywikibot
Enag2000 added a comment to T327803: Allow users to deactivate and change the file path for the commands.log file.

See related issue T328900.

Nov 10 2023, 6:17 AM · Pywikibot
Enag2000 claimed T328900: Pywikibot logs despite -nolog.
Nov 10 2023, 6:16 AM · Pywikibot
Enag2000 claimed T327803: Allow users to deactivate and change the file path for the commands.log file.
Nov 10 2023, 6:14 AM · Pywikibot

Nov 1 2023

Enag2000 added a comment to T328900: Pywikibot logs despite -nolog.

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.

Nov 1 2023, 4:48 AM · Pywikibot

Oct 28 2023

Enag2000 claimed T98106: writeToCommandLogFile() should be optional.
Oct 28 2023, 8:54 PM · Pywikibot, Patch-For-Review, Pywikibot-network

Oct 19 2023

Enag2000 added a comment to T342397: Move Pywikibot PAWS tutorial out of Jupyter notebook onto wiki.

Link to current draft. https://www.mediawiki.org/wiki/Manual:Pywikibot/Draft:Pywikibot_and_PAWS

Oct 19 2023, 4:49 AM · Pywikibot-Documentation, Pywikibot, PAWS, good first task, Documentation
Enag2000 created T349269: commons_information.py Help Message Does not Contain Enough Information.
Oct 19 2023, 3:55 AM · Pywikibot-Documentation, Pywikibot
Enag2000 added a comment to T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument.

Code check passed. Still awaiting completion of code review.

Oct 19 2023, 3:44 AM · Pywikibot

Oct 12 2023

Enag2000 claimed T348709: category_graph.py does not log scanned directory correctly.
Oct 12 2023, 5:54 AM · Pywikibot-Scripts, Pywikibot
Enag2000 added a comment to T348709: category_graph.py does not log scanned directory correctly.

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.

Oct 12 2023, 5:32 AM · Pywikibot-Scripts, Pywikibot
Enag2000 created T348709: category_graph.py does not log scanned directory correctly.
Oct 12 2023, 5:29 AM · Pywikibot-Scripts, Pywikibot

Sep 27 2023

Enag2000 added a comment to T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument.

I again accidentally submitted for review twice. My mistake.

Sep 27 2023, 6:38 AM · Pywikibot

Sep 24 2023

Enag2000 claimed T325420: Add Page.add_category() method.
Sep 24 2023, 10:30 PM · Patch-For-Review, Pywikibot

Sep 18 2023

Enag2000 claimed T342397: Move Pywikibot PAWS tutorial out of Jupyter notebook onto wiki.
Sep 18 2023, 5:50 AM · Pywikibot-Documentation, Pywikibot, PAWS, good first task, Documentation
Enag2000 claimed T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument.
Sep 18 2023, 5:49 AM · Pywikibot

Sep 17 2023

Enag2000 closed T346576: Replace '&params' With pagegenerators Arguments In the Web Documetation as Invalid.
Sep 17 2023, 1:59 AM · Pywikibot
Enag2000 added a comment to T346576: Replace '&params' With pagegenerators Arguments In the Web Documetation.

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.

Sep 17 2023, 1:59 AM · Pywikibot
Enag2000 created T346576: Replace '&params' With pagegenerators Arguments In the Web Documetation.
Sep 17 2023, 1:54 AM · Pywikibot

Sep 15 2023

Enag2000 created T346417: In category_graph.py, Gracefully Handle Invalid File Path Passed in as Argument.
Sep 15 2023, 6:16 AM · Pywikibot

Sep 14 2023

Enag2000 closed T346007: category_graph.py does not use correct string format for DOT-string as Resolved.

Code review complete. Jenkins build succeeded and change merged. Moving to "Resolved".

Sep 14 2023, 4:53 AM · Pywikibot
Enag2000 placed T100521: [clonable] APISite and DataSite method docstrings should include a link to the corresponding mw:API help up for grabs.
Sep 14 2023, 4:51 AM · Wikimedia-Hackathon-2022, Google-Code-in-2018, Google-Code-in-2017, Pywikibot, Google-Code-In-2015, Documentation, good first task, Pywikibot-Documentation

Sep 13 2023

Enag2000 renamed T346122: i18n.py Needs to be Updated to Account for New Language Added to i18n.known_languages() so that doctest Passes in Jenkins 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.
Sep 13 2023, 4:47 AM · Pywikibot

Sep 12 2023

Enag2000 created T346122: i18n.py Needs to be Updated to Account for New Language Added to i18n.known_languages() so that doctest Passes in Jenkins.
Sep 12 2023, 6:19 AM · Pywikibot

Sep 11 2023

Enag2000 added a comment to T346007: category_graph.py does not use correct string format for DOT-string.

Accidentally submitted for review twice. My mistake. I just looked at the Gerrit/Tutorial on MediaWiki and understand the correct process now.

Sep 11 2023, 4:26 AM · Pywikibot
Enag2000 claimed T346008: Requirements.txt does not list graphviz as a required package for category_graph.py.
Sep 11 2023, 3:10 AM · Pywikibot
Enag2000 created T346008: Requirements.txt does not list graphviz as a required package for category_graph.py.
Sep 11 2023, 3:07 AM · Pywikibot
Enag2000 added a comment to T346007: category_graph.py does not use correct string format for DOT-string.

Didn't realize that including the exact commit number automatically adds a mention to other tasks. When documenting the version of pywikibot that a bug occured on, is just "pywikibot core master" or similar acceptable?

Sep 11 2023, 2:48 AM · Pywikibot
Enag2000 updated the task description for T346007: category_graph.py does not use correct string format for DOT-string.
Sep 11 2023, 2:31 AM · Pywikibot
Enag2000 claimed T346007: category_graph.py does not use correct string format for DOT-string.
Sep 11 2023, 2:27 AM · Pywikibot
Enag2000 created T346007: category_graph.py does not use correct string format for DOT-string.
Sep 11 2023, 2:26 AM · Pywikibot

Sep 6 2023

Enag2000 claimed T100521: [clonable] APISite and DataSite method docstrings should include a link to the corresponding mw:API help.

Working on this as a new contributor due to it being tagged "good first task".

Sep 6 2023, 5:30 AM · Wikimedia-Hackathon-2022, Google-Code-in-2018, Google-Code-in-2017, Pywikibot, Google-Code-In-2015, Documentation, good first task, Pywikibot-Documentation