Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: a78f525634cbc059848170e072631cae86126ea3
      
https://github.com/tianocore/edk2/commit/a78f525634cbc059848170e072631cae86126ea3
  Author: Rebecca Cran <[email protected]>
  Date:   2025-05-26 (Mon, 26 May 2025)

  Changed paths:
    M BaseTools/Source/Python/Ecc/CParser4/CLexer.py
    M BaseTools/Source/Python/Ecc/CParser4/CParser.py
    M BaseTools/Source/Python/Eot/CParser4/CLexer.py
    M BaseTools/Source/Python/Eot/CParser4/CParser.py

  Log Message:
  -----------
  BaseTools: Update CParser4 to import TextIO from typing

In Python 3.13 typing.io no longer exists.
Instead, import TextIO from typing.

Signed-off-by: Rebecca Cran <[email protected]>


  Commit: 4a7dd504d9ad9e1192de3546cfc35fbf581b3858
      
https://github.com/tianocore/edk2/commit/4a7dd504d9ad9e1192de3546cfc35fbf581b3858
  Author: Rebecca Cran <[email protected]>
  Date:   2025-05-26 (Mon, 26 May 2025)

  Changed paths:
    M pip-requirements.txt

  Log Message:
  -----------
  pip-requirements.txt: Restrict antlr4-python3-runtime to 4.9

The ATN is serialized in different formats between antlr4-python3-runtime
4.9 and 4.10, meaning the latter can't deserialize data from the
former. See https://github.com/antlr/antlr4/issues/4568.

Until the file is updated and antlr-python3-runtime 4.10 or newer
is required, restrict us to using version 4.9.

This fixes the following error seen when using Python 3.13.3 and
antlr4-python3-runtime 4.13.2:

Run ECC tool for the commit in SecurityPkg/DeviceSecurity/SpdmLib/Include/hal
...
   self.checkVersion()
   ~~~~~~~~~~~~~~~~~^^
File ".../venv/lib/python3.13/site-packages/antlr4/atn/ATNDeserializer.py",
                                                  line 50, in checkVersion
raise Exception("Could not deserialize ATN with version {} (expected {}).".
                                  format(ord(version), SERIALIZED_VERSION))
Exception: Could not deserialize ATN with version 3 (expected 4).

Signed-off-by: Rebecca Cran <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/6fde6ec6d8b0...4a7dd504d9ad

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to