Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-Scripts, Beta-Cluster-Infrastructure,
Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
beta families like `wpbeta` or `wsbeta` (see URLs below) are not part of the
Pywikibot families collection because they are only used for testing purposes.
Pywikibot attempts to create the family files for GitHub Actions tests, but
creating the family has been failing for a few days:
if [ wpbeta == wpbeta ]; then
python pwb.py generate_family_file
http://en.wikipedia.beta.wmcloud.org/ wpbeta y
fi
if [ 0 == 'wsbeta:en' ]; then
python pwb.py generate_family_file
http://en.wikisource.beta.wmcloud.org/ wsbeta n
fi
shell: /usr/bin/bash -e {0}
env:
PYWIKIBOT_TEST_RUNNING: 1
PYWIKIBOT_TEST_LOGOUT: 1
PYWIKIBOT_USERNAME: Pywikibot-test
pythonLocation: /opt/hostedtoolcache/Python/3.9.25/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.25/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.25/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.25/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.25/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.25/x64/lib
Generating family file from http://en.wikipedia.beta.wmcloud.org/
WARNING: Http response status 403
Traceback (most recent call last):
File "/home/runner/work/pywikibot/pywikibot/pwb.py", line 40, in <module>
sys.exit(main())
File "/home/runner/work/pywikibot/pywikibot/pwb.py", line 36, in main
runpy.run_path(str(path), run_name='__main__')
File "/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/runpy.py",
line 288, in run_path
return _run_module_code(code, init_globals, run_name,
File "/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/runpy.py",
line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/runpy.py",
line 87, in _run_code
exec(code, run_globals)
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 569,
in <module>
main()
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 552,
in main
if not execute():
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 539,
in execute
run_python_file(filename, script_args, module)
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 154,
in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_family_file.py",
line 342, in <module>
main()
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_family_file.py",
line 338, in main
FamilyFileGenerator(*sys.argv[1:]).run()
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_family_file.py",
line 157, in run
w, verify = self.get_wiki()
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_family_file.py",
line 139, in get_wiki
w = self.Wiki(self.base_url, verify=verify)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/site_detect.py",
line 47, in __init__
check_response(r)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/site_detect.py",
line 300, in check_response
raise err_class(msg)
pywikibot.exceptions.ClientError: (403) Request forbidden -- authorization
will not help
CRITICAL: Exiting due to uncaught exception ClientError: (403) Request
forbidden -- authorization will not help
Error: Process completed with exit code 1.
TASK DETAIL
https://phabricator.wikimedia.org/T422495
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]