layeredFS icon indicating copy to clipboard operation
layeredFS copied to clipboard

"The STR doesn't support the buffer API"

Open ElyosOfTheAbyss opened this issue 9 years ago • 9 comments

I get this error: C:\layeredFS-master>locate.py workdir\dump.bin Traceback (most recent call last): File "C:\layeredFS-master\locate.py", line 102, in save('mountRom', findFunction(code, parseHexStr('0C 00 9D E5 00 10 90 E5 28 10 91 E5 31 FF 2F E1 '))); File "C:\layeredFS-master\locate.py", line 24, in findFunction t = code.find(sig); TypeError: Type str doesn't support the buffer API And this happens to all games

ElyosOfTheAbyss avatar Mar 30 '16 06:03 ElyosOfTheAbyss

python 3 is not supported, try python 2.7

44670 avatar Mar 30 '16 07:03 44670

Ok, But now I have this error

C:\layeredFS-master>locate.py workdir\dump.bin Traceback (most recent call last): File "C:\layeredFS-master\locate.py", line 98, in <module> with open(sys.argv[1], 'rb') as f: IndexError: list index out of range

ElyosOfTheAbyss avatar Mar 30 '16 09:03 ElyosOfTheAbyss

edit the bat file and try again:

python locate.py workdir\dump.bin

44670 avatar Mar 31 '16 00:03 44670

That just gave me another error C:\layeredFS-master>python locate.py workdir\dump.bin 'python' is not recognized as an internal or external command, operable program or batch file.

ElyosOfTheAbyss avatar Mar 31 '16 00:03 ElyosOfTheAbyss

the python for windows may have not been installed correctly, check the path variable or re-install the python.

44670 avatar Mar 31 '16 00:03 44670

Still didn't work. I have 2.7.0 Should it be something abit higher?

ElyosOfTheAbyss avatar Mar 31 '16 00:03 ElyosOfTheAbyss

2.7.0 is ok. maybe you should try another computer...

44670 avatar Mar 31 '16 07:03 44670

( Just answering for future people )

Use the explicite path, Like: C:\Python27\python.exe , not just "python", as this references the PATH variable.

phecdaDia avatar Jun 24 '16 20:06 phecdaDia

ah, I see

44670 avatar Jun 25 '16 03:06 44670