Hi
I'm a beginner to IDA Pro and Paimei and was practicing generating PIDA file for calc.exe using "pida_dump.py". When I run this script from IDA Pro I get the following error. Please help me in fixing this error.
-----------------------------------------------------------------------------------
Analyzing IDB...
Analyzing functions...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\IDA\python\init.py", line 65, in runscript
execfile(script, g)
File "C:/security/PaiMei-1.1-REV122/PaiMei-1.1-REV122/pida_dump.py", line 69, in <module>
module = pida.module(GetInputFile(), signature, depth, analysis)
File "C:\Python25\Lib\site-packages\pida\module.py", line 92, in __init__
func = function(ea, self.depth, self.analysis, self)
File "C:\Python25\Lib\site-packages\pida\function.py", line 157, in __init__
self.__init_basic_blocks__()
File "C:\Python25\Lib\site-packages\pida\function.py", line 224, in __init_basic_blocks__
branches_from = self._branches_from(ea)
File "C:\Python25\Lib\site-packages\pida\function.py", line 318, in _branches_from
if len(xrefs) == 1 and xrefs[0] == NextNotTail(ea):
TypeError: object of type 'generator' has no len()
-----------------------------------------------------------------------------------
I'm using IDA PRo 5.5 and python 2.5 and recompiled "pydasm.pyd" as mentioned at this link
(http://www.openrce.org/forums/posts/633) but i have used libdasm-1.5.tar.gz from
(http://www.klake.org/~jt/misc/libdasm-1.5.tar.gz) instead of libdasm-1.4.tar.gz
I have downloaded Paimei 1.1-REV122 from http://www.openrce.org/downloads/download_file/208
Thanks
Amit Khanna







