From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.3078.1621477472542138658 for ; Wed, 19 May 2021 19:24:35 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 20 May 2021 10:24:26 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , , "'Hernandez Miramontes, Jose Miguel'" , References: , In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gQSBwbGVhIGZvciBoZWxw?= Date: Thu, 20 May 2021 10:24:29 +0800 Message-ID: <005e01d74d1f$42dfd810$c89f8830$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGziezHXvGCNhN+b8ubQsPbeBQKCQLFXq4mAOax2BEBrpCE06sIVYRQ Content-Type: multipart/alternative; boundary="----=_NextPart_000_005F_01D74D62.51045090" Content-Language: zh-cn ------=_NextPart_000_005F_01D74D62.51045090 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable This issue has been fixed in edk2 trunk. Can you try the latest edk2? =20 Thanks Liming =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA=B1= =ED Bret Barkelew via groups.io =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA5=D4=C220=C8=D5 0:33 =CA=D5=BC=FE=C8=CB: Hernandez Miramontes, Jose Miguel ; devel@edk2.groups.io; Fowler_Eric@ne.bah.com =D6=F7=CC=E2: Re: [edk2-devel] A plea for help =20 Yup, I was tired. Read the Python version all wrong. =20 - Bret _____ From: Hernandez Miramontes, Jose Miguel > Sent: Wednesday, May 19, 2021 7:15:30 AM To: devel@edk2.groups.io >; Bret Barkelew >; Fowler_Eric@ne.bah.com > Subject: [EXTERNAL] RE: [edk2-devel] A plea for help=20 =20 So, the problem is here.=20 File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\Common\Misc.py", line 1638, in __init__ if ByteArray.tostring() !=3D b'PE\0\0': =20 see: https://docs.python.org/3/whatsnew/3.9.html =20 =20 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.) =20 you could try python 3.8 or cherry pick this change.=20 https://github.com/tianocore/edk2/commit/43bec9ea3d56f3662ede78023baa2a791= b6 6acac =20 =20 =20 Jose Miguel Hernandez Miramontes BIOS Engineer jose.miguel.hernandez.miramontes@intel.com =20 Intel Corporation =20 From: devel@edk2.groups.io > On Behalf Of Bret Barkelew via groups.io Sent: Wednesday, May 19, 2021 3:12 AM To: devel@edk2.groups.io ; Fowler_Eric@ne.ba= h. com =20 Subject: Re: [edk2-devel] A plea for help =20 Have you tried the latest Python 3.x? =20 - Bret=20 =20 From: Fowler, Eric (Mondo International, LLC) via groups.io =20 Sent: Wednesday, May 19, 2021 12:41 AM To: devel@edk2.groups.io =20 Subject: [EXTERNAL] [edk2-devel] A plea for help =20 build.py... : error C0DE: Unknown fatal error when processing [c:\edk2020\district-defend\edk2\MdeModulePkg\Universal\Console\GraphicsCo= ns oleDxe\GraphicsConsoleDxe.inf] =20 (Please send email to devel@edk2.groups.io for help, attaching following call stack trace!) =20 (Python 3.9.5 on win32) Traceback (most recent call last): File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\build\buil= d. py", line 2596, in Main MyBuild.Launch() File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\build\buil= d. py", line 2391, in Launch self._MultiThreadBuildPlatform() File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\build\buil= d. py", line 2271, in _MultiThreadBuildPlatform self.CreateAsBuiltInf() File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\build\buil= d. py", line 2401, in CreateAsBuiltInf Module.CreateAsBuiltInf() File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\AutoGen\ModuleAut= oG en.py", line 1503, in CreateAsBuiltInf PatchList =3D parsePcdInfoFromMapFile( File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\GenPatchPcdTable\= Ge nPatchPcdTable.py", line 59, in parsePcdInfoFromMapFile return _parseGeneral(lines, efifilepath) File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\GenPatchPcdTable\= Ge nPatchPcdTable.py", line 174, in _parseGeneral efisecs =3D PeImageClass(efifilepath).SectionHeaderList File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\Common\Mis= c. py", line 1638, in __init__ if ByteArray.tostring() !=3D b'PE\0\0': AttributeError: 'array.array' object has no attribute 'tostring' =20 =20 - Failed - Build end time: 21:15:31, May.18 2021 Build total time: 00:07:11 =20 ------=_NextPart_000_005F_01D74D62.51045090 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

This issue has been fixed in edk2 trunk. Can you try the latest edk= 2?

 

Thanks

Liming

=

= = =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io <devel@edk2.groups= .io> =B4=FA=B1=ED = Bret Barkelew via gro= ups.io
=B7=A2=CB=CD=CA=B1= = =BC=E4: 2021=C4=EA= 5=D4=C220=C8=D5 0:33
=CA=D5=BC=FE=C8=CB:= Hernandez Miramontes, Jose Miguel <jose.miguel.h= ernandez.miramontes@intel.com>; devel@edk2.groups.io; Fowler_Eric@ne.bah= .com
=D6=F7=CC=E2: Re: [edk2-devel] A plea for help

 

Yup, I was tired. Read = the Python version all wrong.

 

- Bret


So, the problem is here.

=

File "C:\EDK2020\district-def= end\edk2\BaseTools\Source\Python\Common\Misc.py", line 1638, in __init= __

 &nbs= p;  if ByteArray.tostring() !=3D b'PE\0\0':

 

see:

https://docs.python.org/3/whatsnew/3.9.html<= o:p>

 

array.array: tostri= ng() and fromstring() methods have been removed. They were aliases to tobyt= es() and frombytes(), deprecated since Python 3.2. (Contributed by Victor S= tinner in bpo-38916.)

 

you could try python 3.8 or cherry pick this change. =

https://github.com/tianocore/edk2/commit/43bec9ea3d56f3662ede78023ba= a2a791b66acac

 

=  

 =

J= ose Miguel Hernandez Miramontes

BIOS  Engineer=

<= i>jose.miguel.hernandez.miramontes@intel.com

Intel Corporation

 

=

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

&n= bsp;

Have you= tried the latest Python 3.x?

 

- Bret

 

From: Fowler, Eric (Mondo International, LLC) via grou= ps.io
Sent: Wednesday, May 19, 2021 12:41 AM
To: devel@edk2.groups.io
Subjec= t: [EXTERNAL] [edk2-devel] A plea for help

<= p class=3Dxmsonormal> 

build.py...

: error C0DE: Unknown fatal error when pr= ocessing [c:\edk2020\district-defend\edk2\MdeModulePkg\Universal\Console\Gr= aphicsConsoleDxe\GraphicsConsoleDxe.inf]

 

(Please send em= ail to devel@edk2.groups.io for help, attaching following call stack tra= ce!)

&= nbsp;

(Python= 3.9.5 on win32) Traceback (most recent call last):

  File "C:\EDK2020\distric= t-defend\edk2\BaseTools\Source\Python\build\build.py", line 2596, in M= ain

 &nb= sp;  MyBuild.Launch()

  File "C:\EDK2020\district-defend\edk2\BaseTools\S= ource\Python\build\build.py", line 2391, in Launch

    self._MultiTh= readBuildPlatform()

  File "C:\EDK2020\district-defend\edk2\BaseTools\Sourc= e\Python\build\build.py", line 2271, in _MultiThreadBuildPlatform=

   = ; self.CreateAsBuiltInf()

  File "C:\EDK2020\district-defend\edk2\BaseTools\So= urce\Python\build\build.py", line 2401, in CreateAsBuiltInf=

    Modu= le.CreateAsBuiltInf()

  File "C:\EDK2020\district-defend\edk2\BaseTools\Sourc= e\Python\AutoGen\ModuleAutoGen.py", line 1503, in CreateAsBuiltInf

  &nbs= p; PatchList =3D parsePcdInfoFromMapFile(

  File "C:\EDK2020\district-defend\e= dk2\BaseTools\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py", lin= e 59, in parsePcdInfoFromMapFile

    return _parseGeneral(lines, efifilep= ath)

  F= ile "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\GenPatchP= cdTable\GenPatchPcdTable.py", line 174, in _parseGeneral

    efisecs= =3D PeImageClass(efifilepath).SectionHeaderList

  File "C:\EDK2020\district-d= efend\edk2\BaseTools\Source\Python\Common\Misc.py", line 1638, in __in= it__

 &n= bsp;  if ByteArray.tostring() !=3D 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

=

 

<= /div>

------=_NextPart_000_005F_01D74D62.51045090--