* A plea for help
@ 2021-05-19 4:17 Fowler, Eric (Mondo International, LLC)
2021-05-19 8:11 ` Bret Barkelew
0 siblings, 1 reply; 7+ messages in thread
From: Fowler, Eric (Mondo International, LLC) @ 2021-05-19 4:17 UTC (permalink / raw)
To: devel@edk2.groups.io
[-- Attachment #1: Type: text/plain, Size: 1725 bytes --]
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 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: 4460 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A plea for help
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 ` [edk2-devel] " jose.miguel.hernandez.miramontes
0 siblings, 1 reply; 7+ messages in thread
From: Bret Barkelew @ 2021-05-19 8:11 UTC (permalink / raw)
To: devel@edk2.groups.io, Fowler_Eric@ne.bah.com
[-- Attachment #1.1: Type: text/plain, Size: 2029 bytes --]
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 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 #1.2: Type: text/html, Size: 5341 bytes --]
[-- Attachment #2: 19057249CEB74DDD8DE4BD6C5DEA4FAB.png --]
[-- Type: image/png, Size: 140 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] A plea for help
2021-05-19 8:11 ` Bret Barkelew
@ 2021-05-19 14:15 ` jose.miguel.hernandez.miramontes
2021-05-19 16:32 ` Bret Barkelew
0 siblings, 1 reply; 7+ messages in thread
From: jose.miguel.hernandez.miramontes @ 2021-05-19 14:15 UTC (permalink / raw)
To: devel@edk2.groups.io, bret.barkelew@microsoft.com,
Fowler_Eric@ne.bah.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 --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] A plea for help
2021-05-19 14:15 ` [edk2-devel] " jose.miguel.hernandez.miramontes
@ 2021-05-19 16:32 ` Bret Barkelew
2021-05-20 2:24 ` 回复: " gaoliming
0 siblings, 1 reply; 7+ messages in thread
From: Bret Barkelew @ 2021-05-19 16:32 UTC (permalink / raw)
To: Hernandez Miramontes, Jose Miguel, devel@edk2.groups.io,
Fowler_Eric@ne.bah.com
[-- Attachment #1: Type: text/plain, Size: 4374 bytes --]
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 Barkelew <Bret.Barkelew@microsoft.com>; Fowler_Eric@ne.bah.com <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() != b'PE\0\0':
see:
https://docs.python.org/3/whatsnew/3.9.html<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.python.org%2F3%2Fwhatsnew%2F3.9.html&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cf3fb8f5288bd4af41aa408d91ad09263%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637570305407840963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cciIITpbNA55d7ZKakdj3DS8YWEnilz37Dlz%2B1Vzb8Q%3D&reserved=0>
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<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fcommit%2F43bec9ea3d56f3662ede78023baa2a791b66acac&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cf3fb8f5288bd4af41aa408d91ad09263%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637570305407850918%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=3XL3RTbGl0QPbNYIDgs2R3fWhBwsld37zvPjeI7Acso%3D&reserved=0>
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: 8494 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* 回复: [edk2-devel] A plea for help
2021-05-19 16:32 ` Bret Barkelew
@ 2021-05-20 2:24 ` gaoliming
2021-05-20 17:56 ` [External] " Fowler, Eric (Mondo International, LLC)
0 siblings, 1 reply; 7+ messages in thread
From: gaoliming @ 2021-05-20 2:24 UTC (permalink / raw)
To: devel, bret.barkelew, 'Hernandez Miramontes, Jose Miguel',
Fowler_Eric
[-- Attachment #1: Type: text/plain, Size: 5252 bytes --]
This issue has been fixed in edk2 trunk. Can you try the latest edk2?
Thanks
Liming
发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Bret Barkelew via
groups.io
发送时间: 2021年5月20日 0:33
收件人: Hernandez Miramontes, Jose Miguel
<jose.miguel.hernandez.miramontes@intel.com>; devel@edk2.groups.io;
Fowler_Eric@ne.bah.com
主题: Re: [edk2-devel] A plea for help
Yup, I was tired. Read the Python version all wrong.
- Bret
_____
From: Hernandez Miramontes, Jose Miguel
<jose.miguel.hernandez.miramontes@intel.com
<mailto:jose.miguel.hernandez.miramontes@intel.com> >
Sent: Wednesday, May 19, 2021 7:15:30 AM
To: devel@edk2.groups.io <mailto:devel@edk2.groups.io>
<devel@edk2.groups.io <mailto:devel@edk2.groups.io> >; Bret Barkelew
<Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com> >;
Fowler_Eric@ne.bah.com <mailto:Fowler_Eric@ne.bah.com> <Fowler_Eric@ne.bah.
com <mailto: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() != b'PE\0\0':
see:
https://docs.python.org/3/whatsnew/3.9.html
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.pyth
on.org%2F3%2Fwhatsnew%2F3.9.html&data=04%7C01%7Cbret.barkelew%40microsoft.co
m%7Cf3fb8f5288bd4af41aa408d91ad09263%7C72f988bf86f141af91ab2d7cd011db47%7C1%
7C0%7C637570305407840963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjo
iV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cciIITpbNA55d7ZKakdj3DS
8YWEnilz37Dlz%2B1Vzb8Q%3D&reserved=0>
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/43bec9ea3d56f3662ede78023baa2a791b6
6acac
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co
m%2Ftianocore%2Fedk2%2Fcommit%2F43bec9ea3d56f3662ede78023baa2a791b66acac&dat
a=04%7C01%7Cbret.barkelew%40microsoft.com%7Cf3fb8f5288bd4af41aa408d91ad09263
%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637570305407850918%7CUnknown%7
CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0
%3D%7C3000&sdata=3XL3RTbGl0QPbNYIDgs2R3fWhBwsld37zvPjeI7Acso%3D&reserved=0>
Jose Miguel Hernandez Miramontes
BIOS Engineer
jose.miguel.hernandez.miramontes@intel.com
<mailto:jose.miguel.hernandez.miramontes@intel.com>
Intel Corporation
From: devel@edk2.groups.io <mailto:devel@edk2.groups.io>
<devel@edk2.groups.io <mailto: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 <mailto:devel@edk2.groups.io> ; Fowler_Eric@ne.bah.
com <mailto: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\GraphicsCons
oleDxe\GraphicsConsoleDxe.inf]
(Please send email to <mailto:devel@edk2.groups.io> 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\ModuleAutoG
en.py", line 1503, in CreateAsBuiltInf
PatchList = 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 = 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: 13260 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [External] 回复: [edk2-devel] A plea for help
2021-05-20 2:24 ` 回复: " gaoliming
@ 2021-05-20 17:56 ` Fowler, Eric (Mondo International, LLC)
2021-05-23 8:43 ` Laszlo Ersek
0 siblings, 1 reply; 7+ messages in thread
From: Fowler, Eric (Mondo International, LLC) @ 2021-05-20 17:56 UTC (permalink / raw)
To: gaoliming, devel@edk2.groups.io, bret.barkelew@microsoft.com,
'Hernandez Miramontes, Jose Miguel'
[-- Attachment #1: Type: text/plain, Size: 6759 bytes --]
I had no idea I was engaging so many people.
The problem has resolved to a Python versioning issue, and has been solved. This was aggravated by the fact that when Python is invoked by issuing a shell command to ‘call’ a *.py file, the mapping to python version follows the Windows shell when one of the EDK shell variables is not initialized – I think it was PYTHON_COMMAND, but I don’t remember. Basically, Windows has an opinion about which Python to invoke when BUILD.BAT executes this line:
@%PYTHON_COMMAND% %BASE_TOOLS_PATH%\Source\Python\%ToolName%\%ToolName%.py %* .
So, I was bitten by a Python 😝
Thanks to all of you for your assistance. UEFI spelunking can be a lonely art. It’s nice to meet other travelers.
Eric
Oh, and I was using tag 202002. We don’t need no steenkin’ upgrades!
From: gaoliming <gaoliming@byosoft.com.cn>
Sent: Wednesday, May 19, 2021 7:24 PM
To: devel@edk2.groups.io; bret.barkelew@microsoft.com; 'Hernandez Miramontes, Jose Miguel' <jose.miguel.hernandez.miramontes@intel.com>; Fowler, Eric (Mondo International, LLC) <Fowler_Eric@ne.bah.com>
Subject: [External] 回复: [edk2-devel] A plea for help
This issue has been fixed in edk2 trunk. Can you try the latest edk2?
Thanks
Liming
发件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> 代表 Bret Barkelew via groups.io
发送时间: 2021年5月20日 0:33
收件人: Hernandez Miramontes, Jose Miguel <jose.miguel.hernandez.miramontes@intel.com<mailto:jose.miguel.hernandez.miramontes@intel.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Fowler_Eric@ne.bah.com<mailto:Fowler_Eric@ne.bah.com>
主题: Re: [edk2-devel] A plea for help
Yup, I was tired. Read the Python version all wrong.
- Bret
________________________________
From: Hernandez Miramontes, Jose Miguel <jose.miguel.hernandez.miramontes@intel.com<mailto:jose.miguel.hernandez.miramontes@intel.com>>
Sent: Wednesday, May 19, 2021 7:15:30 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>>; Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>; Fowler_Eric@ne.bah.com<mailto:Fowler_Eric@ne.bah.com> <Fowler_Eric@ne.bah.com<mailto: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() != b'PE\0\0':
see:
https://docs.python.org/3/whatsnew/3.9.html<https://urldefense.com/v3/__https:/nam06.safelinks.protection.outlook.com/?url=https*3A*2F*2Fdocs.python.org*2F3*2Fwhatsnew*2F3.9.html&data=04*7C01*7Cbret.barkelew*40microsoft.com*7Cf3fb8f5288bd4af41aa408d91ad09263*7C72f988bf86f141af91ab2d7cd011db47*7C1*7C0*7C637570305407840963*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000&sdata=cciIITpbNA55d7ZKakdj3DS8YWEnilz37Dlz*2B1Vzb8Q*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSU!!May37g!ds7lf7izTtlzovyWF2scFJ3IQUhB8azlXsloVMU0Oww8g_B_VOJZbWXvJ5G9heesxw$>
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<https://urldefense.com/v3/__https:/nam06.safelinks.protection.outlook.com/?url=https*3A*2F*2Fgithub.com*2Ftianocore*2Fedk2*2Fcommit*2F43bec9ea3d56f3662ede78023baa2a791b66acac&data=04*7C01*7Cbret.barkelew*40microsoft.com*7Cf3fb8f5288bd4af41aa408d91ad09263*7C72f988bf86f141af91ab2d7cd011db47*7C1*7C0*7C637570305407850918*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000&sdata=3XL3RTbGl0QPbNYIDgs2R3fWhBwsld37zvPjeI7Acso*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSU!!May37g!ds7lf7izTtlzovyWF2scFJ3IQUhB8azlXsloVMU0Oww8g_B_VOJZbWXvJ5EX7CvkaQ$>
Jose Miguel Hernandez Miramontes
BIOS Engineer
jose.miguel.hernandez.miramontes@intel.com<mailto:jose.miguel.hernandez.miramontes@intel.com>
Intel Corporation
From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto: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<mailto:devel@edk2.groups.io>; Fowler_Eric@ne.bah.com<mailto: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: 16272 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [External] 回复: [edk2-devel] A plea for help
2021-05-20 17:56 ` [External] " Fowler, Eric (Mondo International, LLC)
@ 2021-05-23 8:43 ` Laszlo Ersek
0 siblings, 0 replies; 7+ messages in thread
From: Laszlo Ersek @ 2021-05-23 8:43 UTC (permalink / raw)
To: Fowler_Eric
Cc: devel, gaoliming, bret.barkelew@microsoft.com,
'Hernandez Miramontes, Jose Miguel'
On 05/20/21 19:56, Fowler, Eric (Mondo International, LLC) via groups.io
wrote:
> UEFI spelunking can be a lonely art.
It doesn't have to be; please consider checking out the following resources:
central git repo: https://github.com/tianocore/edk2/
wiki: https://github.com/tianocore/tianocore.github.io/wiki
mailing lists: https://edk2.groups.io/g/devel
bug tracker: https://bugzilla.tianocore.org/
Thanks,
Laszlo
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-05-23 8:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [edk2-devel] " jose.miguel.hernandez.miramontes
2021-05-19 16:32 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox