* error C0DE: Tools code failure
@ 2021-09-30 8:19 Kumar Jain, Piyush
2021-09-30 16:17 ` [edk2-devel] " Andrew Fish
0 siblings, 1 reply; 2+ messages in thread
From: Kumar Jain, Piyush @ 2021-09-30 8:19 UTC (permalink / raw)
To: devel@edk2.groups.io
[-- Attachment #1: Type: text/plain, Size: 2037 bytes --]
Traceback (most recent call last):
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\GenFds.py", line 371, in GenFdsApi
GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList)
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\GenFds.py", line 510, in GenFd
FdObj.GenFd()
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\Fd.py", line 131, in GenFd
RegionObj.AddToBuffer (FdBuffer, self.BaseAddress, self.BlockSizeList, self.ErasePolarity, GenFdsGlobalVariable.ImageBinDict, self.DefineVarDict, Flag=Flag)
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\Region.py", line 134, in AddToBuffer
FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, ErasePolarity, Flag=Flag)
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\Fv.py", line 127, in AddToBuffer
FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress, IsMakefile=Flag, FvName=self.UiFvName)
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\FfsFileStatement.py", line 156, in GenFfs
sectList, align = section.GenSection(OutputDir, self.NameGuid, SecIndex, self.KeyStringList, None, Dict)
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\CompressSection.py", line 67, in GenSection
ReturnSectList, AlignValue = Sect.GenSection(OutputPath, ModuleName, SecIndex, KeyStringList, FfsInf, Dict, IsMakefile=IsMakefile)
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\UiSection.py", line 70, in GenSection
GenFdsGlobalVariable.GenerateSection(OutputFile, None, 'EFI_SECTION_USER_INTERFACE', Ui=NameString, IsMakefile=IsMakefile)
File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\GenFdsGlobalVariable.py", line 466, in GenerateSection
SectionData.fromstring(Ui.encode("utf_16_le"))
AttributeError: 'array.array' object has no attribute 'fromstring'
[-- Attachment #2: Type: text/html, Size: 4444 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [edk2-devel] error C0DE: Tools code failure
2021-09-30 8:19 error C0DE: Tools code failure Kumar Jain, Piyush
@ 2021-09-30 16:17 ` Andrew Fish
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fish @ 2021-09-30 16:17 UTC (permalink / raw)
To: edk2-devel-groups-io, piyush.kumar.jain
[-- Attachment #1: Type: text/plain, Size: 2379 bytes --]
Are you using Python 2.7? Try using Python 3.*
It looks like array.fromstring() got renamed to array.frombytes() in Python 3.2, so I’m guessing you are using Python 2.7?
Thanks,
Andrew Fish
> On Sep 30, 2021, at 1:19 AM, Kumar Jain, Piyush <piyush.kumar.jain@intel.com> wrote:
>
> Traceback (most recent call last):
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\GenFds.py", line 371, in GenFdsApi
> GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList)
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\GenFds.py", line 510, in GenFd
> FdObj.GenFd()
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\Fd.py", line 131, in GenFd
> RegionObj.AddToBuffer (FdBuffer, self.BaseAddress, self.BlockSizeList, self.ErasePolarity, GenFdsGlobalVariable.ImageBinDict, self.DefineVarDict, Flag=Flag)
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\Region.py", line 134, in AddToBuffer
> FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, ErasePolarity, Flag=Flag)
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\Fv.py", line 127, in AddToBuffer
> FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress, IsMakefile=Flag, FvName=self.UiFvName)
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\FfsFileStatement.py", line 156, in GenFfs
> sectList, align = section.GenSection(OutputDir, self.NameGuid, SecIndex, self.KeyStringList, None, Dict)
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\CompressSection.py", line 67, in GenSection
> ReturnSectList, AlignValue = Sect.GenSection(OutputPath, ModuleName, SecIndex, KeyStringList, FfsInf, Dict, IsMakefile=IsMakefile)
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\UiSection.py", line 70, in GenSection
> GenFdsGlobalVariable.GenerateSection(OutputFile, None, 'EFI_SECTION_USER_INTERFACE', Ui=NameString, IsMakefile=IsMakefile)
> File "C:\Users\pkumarj1\IFWI3\rocketlake\Edk2\BaseTools\Source\Python\GenFds\GenFdsGlobalVariable.py", line 466, in GenerateSection
> SectionData.fromstring(Ui.encode("utf_16_le"))
> AttributeError: 'array.array' object has no attribute 'fromstring'
>
[-- Attachment #2: Type: text/html, Size: 5696 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-30 16:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-30 8:19 error C0DE: Tools code failure Kumar Jain, Piyush
2021-09-30 16:17 ` [edk2-devel] " Andrew Fish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox