From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.100]) by mx.groups.io with SMTP id smtpd.web11.14256.1621441962056673140 for ; Wed, 19 May 2021 09:32:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=c2dYtzTj; spf=pass (domain: microsoft.com, ip: 40.107.93.100, mailfrom: bret.barkelew@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dQOn86aT8H63Jb+3WZAiEVIztRCtswQL8ySmgax9BR8EEYQ0WpEDZ2z/6+afqna2mhaJNHV54KCCzhCls7w8euMhE2pOf4EoJYP6UWfMzwQNuHOuTJFLWC/askTkKXSfJ+ki1KPSunnNJnXQIW3gAN+uw2XHEjz5bPB7XlIILRK9e3BqabP8OyqdV7iNXJRlJ1bd3X/3e+hYJYZl8VkTtvA2MLG6FwT0GibZxbe44EGzZ5kxpalFKE2NnR9Jw3AT5pxOjKOQHA1JXRlkrdifW3t9YyhwYnmzmFTzYyjdnK0RePQEiKID6lKViDo0+Vzfp0XF6AaKpQXnhLJ8uAF0cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gdakUemZo3MpFF7dN/YPNp72x3AhAwBRFcrbf6AnASo=; b=MkEUyhyAwliFmj4qWg5D4O8wt4b57HUmu/9ZiaITs6ROlBzdfqQwAkcd97xkWQC+k1NnFkwkVHcnbI+ifEx6G/PZWKLZRh6nmxZ/3jwfV/Ei3By/RR1U25TeFwsjpcLHt0WCCQOp5409RHH4eJzYe/jdRipuwnvB3TelGjDP0YK50vL/s8WIjP8PJ1bTzxczDOYvKH0BDCfMQmVKRNitBuDDgRJmvTSKeuqdyWEnmx7ua9QVm6HfGbTtMb750hDUW150bpzz0kGZvg1YV2MWcKKHxhXAn7Fuy7HCmd4CtPpL6zRchNry6bZBzn+bpDBhfaSbeJ+T/oe1OVQoERz8+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gdakUemZo3MpFF7dN/YPNp72x3AhAwBRFcrbf6AnASo=; b=c2dYtzTjhhBJ4RsWkfE0Hp9fbojmznqoy78CMtZUt0KF2Fctu+HAArMnqxrMfCSAYSftTJS5YaHzVp3iICq6sSneDvLwO6vN1a30g1eTFlFbC4+/p5LQOxTf5iyRI/mxB3kWdNaK3nZOP9xTJSbj6knRTLeNQCudMaQMQO3xLZQ= Received: from MW4PR21MB1907.namprd21.prod.outlook.com (2603:10b6:303:71::8) by MW4PR21MB1892.namprd21.prod.outlook.com (2603:10b6:303:78::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.7; Wed, 19 May 2021 16:32:40 +0000 Received: from MW4PR21MB1907.namprd21.prod.outlook.com ([fe80::adcb:b821:ee26:3348]) by MW4PR21MB1907.namprd21.prod.outlook.com ([fe80::adcb:b821:ee26:3348%9]) with mapi id 15.20.4150.023; Wed, 19 May 2021 16:32:40 +0000 From: "Bret Barkelew" To: "Hernandez Miramontes, Jose Miguel" , "devel@edk2.groups.io" , "Fowler_Eric@ne.bah.com" Subject: Re: [edk2-devel] A plea for help Thread-Topic: [edk2-devel] A plea for help Thread-Index: AddMZd4Z5crg1Jm+TMu0KX0DYqbX1AAILgBAAAwL/1AABV1QFA== Date: Wed, 19 May 2021 16:32:40 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-05-19T08:11:35.5765553Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Privileged authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [71.212.153.42] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 08ee2d39-e6bc-410b-c51e-08d91ae3b874 x-ms-traffictypediagnostic: MW4PR21MB1892: x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:989; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A82LoFz2h46IzA/I2dpbeEmSk2tm9Pavd1JYCBtPlHRHQDHunxBNbJivSXYkT7q7yonsMxmPFFYC/8AdTco8q87QPTSZrTGCnzEEarqAj4ZwIDIcwmWpCA6F72rRrx63WbtwPaFCY/d0KXgVdMeFyHAVUGCEQUIEQtvflxqhlML11cYBwfysaZObrEqV/5AoPLvjIBYOSoH4WDM4p9fzGQ6PhrsLrj6RV+0ej9R1gLxZaWaCC1o/0qBsTogWhUezJUK+iOpN4nUPNlA1B30Em3arFGsmrcCl1a5shzzm/4daxz+qsPdtuhI5XwJk55d6Bao07YKB6NTSr3x2vfu0W8BRgI/eJX1flocHMG0cIwAH3g0DVV4+U6jETT2NCxAgpq5d4NSbZ+BDHiGM/puB9X1VQ/PfMeWWRNtso2qijVJ0iyR5nAttKdMcOQVwHdJbajnqXDs9t3otmHjlNeptK60Chve1Z18f/UiGDhqpiwbQcMZij89rDmULMUeaEpfoAinP4YefrSMgkrniPOnci8m11Q/hbFphZ3qcRnBUo/pI2E5XmEJt3Hf/A3v0gzKwcaKKo5hQLt2YpXNlCxk1QkUQpuE2BrcsbSNwi/KPhAa7451p+82gKS4ddcOzny20Npo/gLD4zy/kFU5GyqxZeyl3m4ROeCmESSJzrUBfKpjw/7zcGD5A0XHFtQpMUS/9OIe/GkygbgjJMUospasfoUzl1ykat3Uh4TtpgEjnxiU= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR21MB1907.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(82960400001)(82950400001)(33656002)(186003)(5660300002)(6506007)(53546011)(38100700002)(122000001)(10290500003)(55016002)(9686003)(64756008)(76116006)(66556008)(478600001)(8676002)(66446008)(110136005)(66946007)(8936002)(66476007)(19627235002)(8990500004)(2906002)(76236003)(86362001)(52536014)(166002)(7696005)(966005)(316002)(71200400001)(83380400001)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 2 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?xn75Tan2wNuiXiJgQwmtkNDZJO0I+XG1zwBpsR8u5SLhvy+zxtZNrCI85f8o?= =?us-ascii?Q?tzuGCMubC59y7lplQ7nNHpCKzrBd1Sat3Jt1xNYHQDAu4DcJOgQr8Ry3RZKo?= =?us-ascii?Q?ckXs2gMHe6yK0M95tBYQZPhGiq4K0MOEUFqQVD7+DNPm5ENTsu8S46PjkV4D?= =?us-ascii?Q?HNqefCcKtrHlEGupfROKgQxtuk7qxcHKPG/LBCMBjphvqHyhP1seRRs/7Xzz?= =?us-ascii?Q?1on4yCV32Lph5YYM+TTSvZ41qdvms8QGaCFSo3lX4cMKEmIZt6llP8hIzNr5?= =?us-ascii?Q?z6I8R0hT6qwwIRMr7UCV2L5OnQFwFM5GZwzucuV/gwwz3eVm9k/X9ArT8c2U?= =?us-ascii?Q?QTSEd3uTyfH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f6Z3kiZMohTAZMulGz8JTcd12rKVqKOxKN9cZwG68hbcASUDEVlaBpNZs8/QAQYjDOw0ejdJ/H1SWEh5ddWIXyndCQ== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR21MB1907.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08ee2d39-e6bc-410b-c51e-08d91ae3b874 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2021 16:32:40.1376 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vrm9QaZD5GkLKRtnmTde98C/bBb5yHFd/rJJHgu1eBsAo7D9i1XsOGI6pm1hIz4Kp6/4yIthMBP1n62fQTg/qA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR21MB1892 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MW4PR21MB19075AC89A8868BD5371D499EF2B9MW4PR21MB1907namp_" --_000_MW4PR21MB19075AC89A8868BD5371D499EF2B9MW4PR21MB1907namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Yup, I was tired. Read the Python version all wrong. - 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 So, the problem is here. File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\Common\Misc.= py", line 1638, in __init__ if ByteArray.tostring() !=3D b'PE\0\0': see: https://docs.python.org/3/whatsnew/3.9.html array.array: tostring() and fromstring() methods have been removed. They w= ere aliases to tobytes() and frombytes(), deprecated since Python 3.2. (Con= tributed by Victor Stinner in bpo-38916.) you could try python 3.8 or cherry pick this change. https://github.com/tianocore/edk2/commit/43bec9ea3d56f3662ede78023baa2a791= b66acac Jose Miguel Hernandez Miramontes BIOS Engineer jose.miguel.hernandez.miramontes@intel.com Intel Corporation From: devel@edk2.groups.io On Behalf Of Bret Barkel= ew via groups.io Sent: Wednesday, May 19, 2021 3:12 AM To: devel@edk2.groups.io; Fowler_Eric@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 Sent: Wednesday, May 19, 2021 12:41 AM To: devel@edk2.groups.io Subject: [EXTERNAL] [edk2-devel] A plea for help build.py... : error C0DE: Unknown fatal error when processing [c:\edk2020\district-def= end\edk2\MdeModulePkg\Universal\Console\GraphicsConsoleDxe\GraphicsConsoleD= xe.inf] (Please send email to devel@edk2.groups.io fo= r 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\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\Mo= duleAutoGen.py", line 1503, in CreateAsBuiltInf PatchList =3D parsePcdInfoFromMapFile( File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\GenPatchPc= dTable\GenPatchPcdTable.py", line 59, in parsePcdInfoFromMapFile return _parseGeneral(lines, efifilepath) File "C:\EDK2020\district-defend\edk2\BaseTools\Source\Python\GenPatchPc= dTable\GenPatchPcdTable.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' - Failed - Build end time: 21:15:31, May.18 2021 Build total time: 00:07:11 --_000_MW4PR21MB19075AC89A8868BD5371D499EF2B9MW4PR21MB1907namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Yup, I was tired. Read the Python version all wrong.

- Bret

From: Hernandez Miramontes= , Jose Miguel <jose.miguel.hernandez.miramontes@intel.com>
Sent: Wednesday, May 19, 2021 7:15:30 AM
To: devel@edk2.groups.io <devel@edk2.groups.io>; Bret Barkele= w <Bret.Barkelew@microsoft.com>; Fowler_Eric@ne.bah.com <Fowler_Er= ic@ne.bah.com>
Subject: [EXTERNAL] RE: [edk2-devel] A plea for help
 

So, the problem is here.

File "C:\EDK2020\district-defend\edk2\BaseTo= ols\Source\Python\Common\Misc.py", line 1638, in __init__

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

 

see:

https://docs.python.org/3/whats= new/3.9.html

 

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

 

you could try python 3.8 or cherry pick this chan= ge.

https://github.com/tianocor= e/edk2/commit/43bec9ea3d56f3662ede78023baa2a791b66acac

 

 

 

Jose Miguel Hernandez = Miramontes

BIOS  Engineer

jose.miguel.hernandez.mir= amontes@intel.com

Intel Corporation

 

From: devel@edk2.groups.io <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.bah.com
Subject: Re: [edk2-devel] A plea for help

 

Have you tried the latest Python 3.x?

 

- Bret

 

 

build.py...

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

 

(Please send emai= l to de= vel@edk2.groups.io for help, att= aching following call stack trace!)

 

(Python 3.9.5 on win32) Traceback (most recent ca= ll 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 _MultiThreadBu= ildPlatform

    self.CreateAsBuiltInf()

  File "C:\EDK2020\district-defend\edk2= \BaseTools\Source\Python\build\build.py", line 2401, in CreateAsBuiltI= nf

    Module.CreateAsBuiltInf()

  File "C:\EDK2020\district-defend\edk2= \BaseTools\Source\Python\AutoGen\ModuleAutoGen.py", line 1503, in Crea= teAsBuiltInf

    PatchList =3D parsePcdInfoFrom= MapFile(

  File "C:\EDK2020\district-defend\edk2= \BaseTools\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py", line 5= 9, in parsePcdInfoFromMapFile

    return _parseGeneral(lines, ef= ifilepath)

  File "C:\EDK2020\district-defend\edk2= \BaseTools\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py", line 1= 74, in _parseGeneral

    efisecs =3D PeImageClass(efifi= lepath).SectionHeaderList

  File "C:\EDK2020\district-defend\edk2= \BaseTools\Source\Python\Common\Misc.py", line 1638, in __init__

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

AttributeError: 'array.array' object has no attri= bute 'tostring'

 

 

- Failed -

Build end time: 21:15:31, May.18 2021

Build total time: 00:07:11

 

--_000_MW4PR21MB19075AC89A8868BD5371D499EF2B9MW4PR21MB1907namp_--