public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: jose.miguel.hernandez.miramontes@intel.com
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"bret.barkelew@microsoft.com" <bret.barkelew@microsoft.com>,
	"Fowler_Eric@ne.bah.com" <Fowler_Eric@ne.bah.com>
Subject: Re: [edk2-devel] A plea for help
Date: Wed, 19 May 2021 14:15:30 +0000	[thread overview]
Message-ID: <MW3PR11MB4633EEC94D1ABE68BBFAD753912B9@MW3PR11MB4633.namprd11.prod.outlook.com> (raw)
In-Reply-To: <MW4PR21MB1907AEA0142086CC4BC5C991EF2B9@MW4PR21MB1907.namprd21.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 2963 bytes --]

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@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

From: Fowler, Eric (Mondo International, LLC) via groups.io<mailto:Fowler_Eric=ne.bah.com@groups.io>
Sent: Wednesday, May 19, 2021 12:41 AM
To: devel@edk2.groups.io<mailto:devel@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@edk2.groups.io<mailto:devel@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



[-- Attachment #2: Type: text/html, Size: 7912 bytes --]

  reply	other threads:[~2021-05-19 14:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19  4:17 A plea for help Fowler, Eric (Mondo International, LLC)
2021-05-19  8:11 ` Bret Barkelew
2021-05-19 14:15   ` jose.miguel.hernandez.miramontes [this message]
2021-05-19 16:32     ` [edk2-devel] " Bret Barkelew
2021-05-20  2:24       ` 回复: " gaoliming
2021-05-20 17:56         ` [External] " Fowler, Eric (Mondo International, LLC)
2021-05-23  8:43           ` Laszlo Ersek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MW3PR11MB4633EEC94D1ABE68BBFAD753912B9@MW3PR11MB4633.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox