joxeankoret / diaphora

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

diaphora crashes IDA 7.6 with python 3.9 (master repo) #231

Closed wookong007 closed 1 year ago

wookong007 commented 2 years ago

C:\Users\WooKong007\Desktop\diaphora-master\diaphora-master\diaphora.py: DLL load failed: The specified module could not be found. Traceback (most recent call last): File "C:\Program Files (x86)\IDA 7.6\python\3\ida_idaapi.py", line 616, in IDAPython_ExecScript exec(code, g) File "C:/Users/WooKong007/Desktop/diaphora-master/diaphora-master/diaphora.py", line 2168, in exec(compile(open(script, "rb").read(), script, 'exec')) File "C:/Users/WooKong007/Desktop/diaphora-master/diaphora-master\diaphora_ida.py", line 48, in from PyQt5 import QtCore, QtGui, QtWidgets ImportError: DLL load failed: The specified module could not be found.

KulaGGin commented 2 years ago

I think, I've had this exact problem when I updated to IDA 7.6 and the newest version of Diaphora. Or maybe with another plugin.

Not Diaphora's fault. It's some IDA to Python dependency problem. It happens since IDA 7.5 and you need to install a patch like this: https://github.com/gaasedelen/lucid/issues/1#issuecomment-762281421

joxeankoret commented 2 years ago

It looks like a problem with QT, not exactly with Diaphora. If you want to test it, try running the following line in the Python prompt in IDA:

from PyQt5 import QtCore, QtGui, QtWidgets

If it fails, try running idapyswitch on the command line to see if you can fix this problem.

matteyeux commented 2 years ago

Hey,

I had the same issue on my Windows box, running idapyswitch fixed it, thanks.

joxeankoret commented 1 year ago

Closing it. Feel free to reopen if you are having problems.