PSPReverse / PSPTool

Display, extract, and manipulate PSP firmware inside UEFI images
GNU General Public License v3.0
612 stars 62 forks source link

OverflowError: cannot fit 'int' into an index-sized integer #18

Closed SebastiaanDirks closed 4 years ago

SebastiaanDirks commented 4 years ago

So this happens when you're trying to run PSPTool on a TRX40/EPYC Rome bios.

The complete traceback:

Traceback (most recent call last): File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\Scripts\psptool-script.py", line 11, in load_entry_point('psptool==2.1', 'console_scripts', 'psptool')() File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool__main.py", line 79, in main File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\psptool.py", line 30, in from_file File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\psptool.py", line 38, in init File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\blob.py", line 50, in init File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\blob.py", line 97, in _find_entry_table File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\fet.py", line 44, in init File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\fet.py", line 90, in _parse_entry_table File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\fet.py", line 71, in _create_dir File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\directory.py", line 67, in init File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\directory.py", line 145, in _parse_entries File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\entry.py", line 154, in from_fields File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\entry.py", line 177, in init__ File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\entry.py", line 334, in _parse File "C:\Users\Sebastiaan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psptool-2.1-py3.7.egg\psptool\entry.py", line 405, in _parse_hdr OverflowError: cannot fit 'int' into an index-sized integer

Any idea on why this might be happening?

SebastiaanDirks commented 4 years ago

I kind of fixed it by installing it via pip. I suspect it must've been a broken install, but it did work on the A320 bios.

RobertBuhren commented 4 years ago

The current head has some issues, I'll try to resolve these in the next days.