[Webkit-unassigned] [Bug 249564] New: KeyError: '__spec__' in apipkg.py with Python v3.11

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 18 17:07:13 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=249564

            Bug ID: 249564
           Summary: KeyError: '__spec__' in apipkg.py with Python v3.11
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com
                CC: don.olmstead at sony.com

WinCairo-64-bit-Debug-Tests is reporting test-webkitpy failure.
https://build.webkit.org/#/builders/727/builds/59
This is reproduce on my PC with Python v3.11.

Downloading py-1.5.2...
Installing py-1.5.2...
Installed py-1.5.2!
Checking imports ...Traceback (most recent call last):
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\py\_vendored_packages\apipkg.py", line 141, in __makeattr
    modpath, attrname = self.__map__[name]
                        ~~~~~~~~~~~~^^^^^^
KeyError: '__spec__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 366, in <module>
    sys.exit(main())
             ^^^^^^
  File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 115, in main
    return not tester.run()
               ^^^^^^^^^^^^
  File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 188, in run
    return self._run_tests(names)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 217, in _run_tests
    if not self._check_imports(names):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 300, in _check_imports
    __import__(name)
  File "C:\home\webkit\gc\Tools\Scripts\webkitpy\common\config\committers_unittest.py", line 31, in <module>
    from webkitpy.test.markers import xfail
  File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\markers.py", line 26, in <module>
    import pytest
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\pytest\__init__.py", line 5, in <module>
    from _pytest.assertion import register_assert_rewrite
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\_pytest\assertion\__init__.py", line 9, in <module>
    from _pytest.assertion import rewrite
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\_pytest\assertion\rewrite.py", line 34, in <module>
    from _pytest.assertion import util
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\_pytest\assertion\util.py", line 13, in <module>
    import _pytest._code
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\_pytest\_code\__init__.py", line 2, in <module>
    from .code import Code
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\_pytest\_code\code.py", line 54, in <module>
    class Code:
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\_pytest\_code\code.py", line 81, in Code
    def path(self) -> Union[py.path.local, str]:
                            ^^^^^^^^^^^^^
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\py\_vendored_packages\apipkg.py", line 148, in __makeattr
    result = importobj(modpath, attrname)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\py\_vendored_packages\apipkg.py", line 69, in importobj
    module = __import__(modpath, None, None, ['__doc__'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1138, in _find_and_load_unlocked
  File "C:\home\webkit\gc\Tools\Scripts\libraries\autoinstalled\python-3-AMD64\py\_vendored_packages\apipkg.py", line 146, in __makeattr
    raise AttributeError(name)
AttributeError: __spec__

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221219/5f87ce00/attachment.htm>


More information about the webkit-unassigned mailing list