L4ys / LazyIDA

Make your IDA Lazy!
MIT License
1.07k stars 162 forks source link

If PyQt5.Qt not working, use clipboard instead #16

Closed zeze-zeze closed 3 years ago

zeze-zeze commented 3 years ago

Environment: Python 3.9 IdaPro 7.5

Description: When the plugin loading, it gives the error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'QApplication' from 'PyQt5.Qt'

Even I tried to use from PyQt5.QtWidgets import QApplication, but I got the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: DLL load failed while importing sip: The specified module could not be found.

After some searching, I found the issue, while the solution of the issue is not working on python3.9, either.

As a result, I use clipboard to copy and paste the name and address instead of QApplication, so it will import and use clipboard if there is any error while using QApplication.

zeze-zeze commented 3 years ago

Oh, I finally found the answer. There is a file called "sip.cp39-win_amd64.pyd" in python3.9 library, and replace sip.pyd in IDA7.5\python\3\PyQt5 with it.

I think the PR is no longer needed, so I close it.

whokilleddb commented 2 years ago

Oh, I finally found the answer. There is a file called "sip.cp39-win_amd64.pyd" in python3.9 library, and replace sip.pyd in IDA7.5\python\3\PyQt5 with it.

I think the PR is no longer needed, so I close it.

You are a beautiful beautiful person @zeze-zeze :)

Rciard commented 10 months ago

@zeze-zeze you are gorgeous!thank you!