[edk2-devel] A plea for help

Hernandez Miramontes, Jose Miguel jose.miguel.hernandez.miramontes at intel.com
Wed May 19 14:15:30 UTC 2021


So, the problem is here.
File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\Common\Misc.py", line 1638, in __init__
    if ByteArray.tostring() != b'PE\0\0':

see:
https://docs.python.org/3/whatsnew/3.9.html

array.array: tostring() and fromstring() methods have been removed. They were aliases to tobytes() and frombytes(), deprecated since Python 3.2. (Contributed by Victor Stinner in bpo-38916.)

you could try python 3.8 or cherry pick this change.
https://github.com/tianocore/edk2/commit/43bec9ea3d56f3662ede78023baa2a791b66acac



Jose Miguel Hernandez Miramontes
BIOS  Engineer
jose.miguel.hernandez.miramontes at intel.com
Intel Corporation

From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Bret Barkelew via groups.io
Sent: Wednesday, May 19, 2021 3:12 AM
To: devel at edk2.groups.io; Fowler_Eric at ne.bah.com
Subject: Re: [edk2-devel] A plea for help

Have you tried the latest Python 3.x?

- Bret

From: Fowler, Eric (Mondo International, LLC) via groups.io<mailto:Fowler_Eric=ne.bah.com at groups.io>
Sent: Wednesday, May 19, 2021 12:41 AM
To: devel at edk2.groups.io<mailto:devel at edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] A plea for help

build.py...
: error C0DE: Unknown fatal error when processing [c:\edk2020\district-defend\edk2\MdeModulePkg\Universal\Console\GraphicsConsoleDxe\GraphicsConsoleDxe.inf]

(Please send email to devel at edk2.groups.io<mailto:devel at edk2.groups.io> for help, attaching following call stack trace!)

(Python 3.9.5 on win32) Traceback (most recent call last):
  File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\build\build.py", line 2596, in Main
    MyBuild.Launch()
  File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\build\build.py", line 2391, in Launch
    self._MultiThreadBuildPlatform()
  File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\build\build.py", line 2271, in _MultiThreadBuildPlatform
    self.CreateAsBuiltInf()
  File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\build\build.py", line 2401, in CreateAsBuiltInf
    Module.CreateAsBuiltInf()
  File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\AutoGen\ModuleAutoGen.py", line 1503, in CreateAsBuiltInf
    PatchList = parsePcdInfoFromMapFile(
  File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py", line 59, in parsePcdInfoFromMapFile
    return _parseGeneral(lines, efifilepath)
  File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py", line 174, in _parseGeneral
    efisecs = PeImageClass(efifilepath).SectionHeaderList
  File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\Common\Misc.py", line 1638, in __init__
    if ByteArray.tostring() != b'PE\0\0':
AttributeError: 'array.array' object has no attribute 'tostring'


- Failed -
Build end time: 21:15:31, May.18 2021
Build total time: 00:07:11




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#75382): https://edk2.groups.io/g/devel/message/75382
Mute This Topic: https://groups.io/mt/82931279/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210519/7e9409b9/attachment.htm>


More information about the edk2-devel-archive mailing list