Antelcat / ida_copilot

ChatGPT Agent analyses your IDA pseudocode
MIT License
91 stars 5 forks source link

启动IDA Pro时无法加载插件 #5

Open wu-yafeng opened 3 months ago

wu-yafeng commented 3 months ago

C:\Users*\Desktop\IDA Pro 8.3\plugins\ida_copilot.py: DLL load failed while importing sip: 找不到指定的模块。 Traceback (most recent call last): File "C:\Users*\Desktop\IDA Pro 8.3\python\3\ida_idaapi.py", line 577, in IDAPython_ExecScript exec(code, g) File "C:/Users//Desktop/IDA Pro 8.3/plugins/ida_copilot.py", line 5, in from ida_copilot import panel File "C:\Users//Desktop/IDA Pro 8.3/plugins\ida_copilot\panel.py", line 4, in from PyQt5 import QtWidgets ImportError: DLL load failed while importing sip: 找不到指定的模块。

wu-yafeng commented 3 months ago

我最终的解决办法是:

  1. 卸载电脑安装的python
  2. 在IDA的python目录中,如python311 中打开powershell
  3. 运行命令 .\Scripts\pip.exe install -r <ida_copilot文件夹下的requirements.txt>
  4. 运行命令 ../ida.exe 打开ida pro
wu-yafeng commented 3 months ago

另外一个办法是:

  1. 在IDA Pro目录运行 powershell
  2. 运行命令 idapyswitch.exe --force-path <ida_pro目录>/python311/python3.dll