joxeankoret / diaphora

Diaphora, the most advanced Free and Open Source program diffing tool.
http://diaphora.re
GNU Affero General Public License v3.0
3.64k stars 372 forks source link

diaphora crashed Ida 7.4 #185

Closed paramikoooo closed 4 years ago

paramikoooo commented 4 years ago

Environment : Ida 7.4, IdaPython 7.4.0 , Python 3.8.1 , diaphora version = main branch , windows 7 .

I tried to load diaphora script from Ida and got this error

the sip module has already registered a module called PyQt5.PyCore Traceback: File c:\Program Files\Ida Pro7.4\python\ida_idaapy.py,line 590 in IDAPython_ExecScript exec(code,g) File line 2135 in exec (compile(open(script,"rb").read(),script,'exec')) File line 46 in from PyQt5 import QtCore, QtGui, QtWidgets RuntimeError:the sip module has already registered a module called PyQt5.PyCore
joxeankoret commented 4 years ago

I cannot make sense of the error. Can you please try running idapyswitch, setting up the proper Python version and re-running again?

Also, Python 3.8 is very broken. Please try with a 3.7 version if the previous doesn't work.

paramikoooo commented 4 years ago

I tried to install python 3.7.0 . Ida recognize it as well. I can run my python script , but when I tried to run diaphora.py I got Error

: Dll load failed:The specified module could not be found. Traceback: File c:\Program Files\Ida Pro7.4\python\ida_idaapy.py,line 590 in IDAPython_ExecScript exec(code,g) File line 2135 in exec (compile(open(script,"rb").read(),script,'exec')) File line 46 in from PyQt5 import QtCore, QtGui, QtWidgets ImportError: DLL load failed : The specified module could not be found.
joxeankoret commented 4 years ago

Did you manage to get it fixed?

syntroniks commented 4 years ago

I'm able to reproduce this. Using Python 3.7 solves it for me.

joxeankoret commented 4 years ago

OK, I will close this issue for now. If anybody reproduces it and cannot fix it by installing a supported Python version, feel free to reopen.