python - unsupported operand type(s) for +=: 'NoneType' and 'str' winappdbg error after cx_freeze -


i used cx_freeze freeze myscript.py script, runs fine on english win7 x64 , after cx_freeze, on chinese win7 x64, shows following error message. ran same frozen code on clean installed english win7 x64 in vm, no error occurs.

traceback (most recent call last):   file "c:\python27\lib\site-packages\cx_freeze\initscripts\console.py", line 27, in <module>   file "myscript.py", line 2, in <module>   file "myscript.pyx", line 62, in init myscript (myscript.c:23212)   file "c:\python27\lib\site-packages\winappdbg\__init__.py", line 234, in <module>   file "c:\python27\lib\site-packages\winappdbg\breakpoint.py", line 66, in <module>   file "c:\python27\lib\site-packages\winappdbg\process.py", line 58, in <module>   file "c:\python27\lib\site-packages\winappdbg\disasm.py", line 631, in <module>   file "c:\python27\lib\site-packages\winappdbg\disasm.py", line 651, in disassembler typeerror: unsupported operand type(s) +=: 'nonetype' , 'str' 

i checked file disasm.py in winappdbg code, @ line, code

# add list of supported disassemblers docstring. __doc__ += "\n" e in engines: __doc__ += " - %s - %s (u{%s})\n" % (e.name, e.desc, e.url) del e 

i guess if change line of code, , re cx_freeze code, error go way. how come __doc__ none here? isn't docstring of package , has ?

enter image description here

as thomas k pointed out in comment, frozen python code optimized , contains no docstrings. winappdbg wasn't designed use case, you'll have patch there (and potentially in few more places).

if happen make patch, let me know can merge :)


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -