Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Installing Python 3.15 with actions/setup-python instead of deadsnakes/action 
leads to:
  
    Run python -Werror::UserWarning -m pwb generate_user_files 
-site:wikipedia:test -user:Pywikibot-test -v -debug;
    Found 1  processes running, including this one.
    
    === Pywikibot framework v11.0.0.dev0 -- Logging header ===
    COMMAND: 
['/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_user_files.py',
 '-site:wikipedia:test', '-user:Pywikibot-test', '-v', '-debug']
    DATE: 2025-11-09T13:37:38Z UTC
    VERSION: [https] wikimedia-pywikibot (139c9ac, g1, 2025/11/09, 14:28:50, 
n/a)
    SYSTEM: posix.uname_result(sysname='Linux', nodename='runnervmw9dnm', 
release='6.11.0-1018-azure', version='#18~24.04.1-Ubuntu SMP Sat Jun 28 
04:46:03 UTC 2025', machine='x86_64')
    CONFIG FILE DIR: /home/runner/work/pywikibot/pywikibot
    PACKAGES:
    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      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 "<frozen runpy>", line 287, in run_path
      File "<frozen runpy>", line 98, in _run_module_code
      File "<frozen runpy>", line 88, in _run_code
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 558, 
in <module>
        main()
        ~~~~^^
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 542, 
in main
        if not execute():
               ~~~~~~~^^
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 529, 
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),
        ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             main_mod.__dict__)
             ^^^^^^^^^^^^^^^^^^
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_user_files.py",
 line 544, in <module>
        main()
        ~~~~^^
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_user_files.py",
 line 514, in main
        local_args = pywikibot.handle_args(args)
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/bot.py", line 854, 
in handle_args
        init_handlers()
        ~~~~~~~~~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/bot.py", line 421, 
in init_handlers
        throttle = Throttle('')
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/throttle.py", line 
96, in __init__
        self.checkMultiplicity()
        ~~~~~~~~~~~~~~~~~~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/throttle.py", line 
170, in checkMultiplicity
        pywikibot.debug(f'Checking multiplicity: pid = {pid}')
        ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/logging.py", line 
306, in debug
        logoutput(msg, *args, level=DEBUG, **kwargs)
        ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/logging.py", line 
129, in logoutput
        _init()
        ~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/logging.py", line 
77, in _init
        init_routine()
        ~~~~~~~~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/bot.py", line 463, 
in init_handlers
        writelogheader()
        ~~~~~~~~~~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/bot.py", line 508, 
in writelogheader
        packages = version.package_versions(check_package_list)
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/version.py", line 
351, in package_versions
        assert path not in paths, (
               ^^^^^^^^^^^^^^^^^
    AssertionError: Path 
/opt/hostedtoolcache/Python/3.15.0-alpha.1/x64/lib/python3.15/_pydecimal.py of 
the package _pydecimal is in defined paths as decimal
    Closing network session.
    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      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 "<frozen runpy>", line 287, in run_path
      File "<frozen runpy>", line 98, in _run_module_code
      File "<frozen runpy>", line 88, in _run_code
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 558, 
in <module>
        main()
        ~~~~^^
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 542, 
in main
        if not execute():
               ~~~~~~~^^
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/wrapper.py", line 529, 
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),
        ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             main_mod.__dict__)
             ^^^^^^^^^^^^^^^^^^
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_user_files.py",
 line 544, in <module>
        main()
        ~~~~^^
      File 
"/home/runner/work/pywikibot/pywikibot/pywikibot/scripts/generate_user_files.py",
 line 514, in main
        local_args = pywikibot.handle_args(args)
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/bot.py", line 854, 
in handle_args
        init_handlers()
        ~~~~~~~~~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/bot.py", line 421, 
in init_handlers
        throttle = Throttle('')
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/throttle.py", line 
96, in __init__
        self.checkMultiplicity()
        ~~~~~~~~~~~~~~~~~~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/throttle.py", line 
170, in checkMultiplicity
        pywikibot.debug(f'Checking multiplicity: pid = {pid}')
        ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/logging.py", line 
306, in debug
        logoutput(msg, *args, level=DEBUG, **kwargs)
        ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/logging.py", line 
129, in logoutput
        _init()
        ~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/logging.py", line 
77, in _init
        init_routine()
        ~~~~~~~~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/bot.py", line 463, 
in init_handlers
        writelogheader()
        ~~~~~~~~~~~~~~^^
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/bot.py", line 508, 
in writelogheader
        packages = version.package_versions(check_package_list)
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/version.py", line 
351, in package_versions
        assert path not in paths, (
               ^^^^^^^^^^^^^^^^^
    AssertionError: Path 
/opt/hostedtoolcache/Python/3.15.0-alpha.1/x64/lib/python3.15/_pydecimal.py of 
the package _pydecimal is in defined paths as decimal
    
    CRITICAL: Exiting due to uncaught exception AssertionError: Path 
/opt/hostedtoolcache/Python/3.15.0-alpha.1/x64/lib/python3.15/_pydecimal.py of 
the package _pydecimal is in defined paths as decimal
    Network session closed.
    Error: Process completed with exit code 1.

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

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

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to