Page MenuHomePhabricator

similar script call does not work on toolforge
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce:
:~$ python3 core/pwb.py hello

What happens?:

ERROR: hello.py not found! Misspelling?
Traceback (most recent call last):
  File "core/pwb.py", line 494, in <module>
    main()
  File "core/pwb.py", line 478, in main
    if not execute():
  File "core/pwb.py", line 428, in execute
    filename = find_filename(filename)
  File "core/pwb.py", line 403, in find_filename
    return find_alternates(filename, path_list)
  File "core/pwb.py", line 319, in find_alternates
    for script_name in os.listdir(os.path.join(*path)):
FileNotFoundError: [Errno 2] No such file or directory: 'scripts/userscripts'
CRITICAL: Exiting due to uncaught exception <class 'FileNotFoundError'>
:~$

What should have happened instead?:
shell.py script should be invoked instead

Software version:
Pywikibot 7.0.0.dev0

Event Timeline

Xqt triaged this task as High priority.Jan 9 2022, 12:13 PM
Xqt added a project: Toolforge.

Change 761622 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [IMPR] enable similar script call on toolforge

https://gerrit.wikimedia.org/r/761622

Change 761622 merged by jenkins-bot:

[pywikibot/core@master] [IMPR] enable similar script call on toolforge

https://gerrit.wikimedia.org/r/761622