P4nda0s / IDABeautify

An IDA plugin for making pseudocode better.
311 stars 27 forks source link

No module named 'netnode' #1

Open vadimszzz opened 1 year ago

vadimszzz commented 1 year ago

IDA 7.7 (64-bit) Python 3.9.0 Windows 10

C:\Program Files\IDA Pro 7.7\scripts\beautify.py: No module named 'netnode'
Traceback (most recent call last):
  File "C:\Program Files\IDA Pro 7.7\python\3\ida_idaapi.py", line 580, in IDAPython_ExecScript
    exec(code, g)
  File "C:/Program Files/IDA Pro 7.7/scripts/beautify.py", line 5, in <module>
    import netnode
ModuleNotFoundError: No module named 'netnode'
vadimszzz commented 1 year ago

Fixed "No module named 'netnode'" in #2

Now this happens:

C:\Program Files\IDA Pro 7.7\scripts\beautify.py: __init__() missing 1 required positional argument: 'nodeid'
Traceback (most recent call last):
  File "C:\Program Files\IDA Pro 7.7\python\3\ida_idaapi.py", line 580, in IDAPython_ExecScript
    exec(code, g)
  File "C:/Program Files/IDA Pro 7.7/scripts/beautify.py", line 323, in <module>
    remover_address_manager.initialize()
  File "C:/Program Files/IDA Pro 7.7/scripts/beautify.py", line 96, in initialize
    self.node = netnode.Netnode("Beautify.RemoverAddressManager")
TypeError: __init__() missing 1 required positional argument: 'nodeid'
vadimszzz commented 1 year ago
$ del /s netnode.py
$ pip install ida-netnode

Still the same error:

C:\Program Files\IDA Pro 7.7\scripts\beautify.py: __init__() missing 1 required positional argument: 'nodeid'
Traceback (most recent call last):
  File "C:\Program Files\IDA Pro 7.7\python\3\ida_idaapi.py", line 580, in IDAPython_ExecScript
    exec(code, g)
  File "C:/Program Files/IDA Pro 7.7/scripts/beautify.py", line 323, in <module>
    remover_address_manager.initialize()
  File "C:/Program Files/IDA Pro 7.7/scripts/beautify.py", line 96, in initialize
    self.node = netnode.Netnode("Beautify.RemoverAddressManager")
TypeError: __init__() missing 1 required positional argument: 'nodeid'