4ch12dy / xia0LLDB

LLDB python scripts for iOS arm64 reversing by xia0
650 stars 114 forks source link

error: module importing failed: invalid syntax (sbt.py, line 166) File "temp.py", line 1, in <module> #4

Closed codesourse closed 5 years ago

codesourse commented 5 years ago

error: module importing failed: invalid syntax (sbt.py, line 166) File "temp.py", line 1, in

报错了

4ch12dy commented 5 years ago

你把完整的错误信息发出来看看,这看不很出来是什么原因

No-Karma commented 5 years ago

请问现在已经支持python3了吗,用不了很难受...

4ch12dy commented 5 years ago

请问现在已经支持python3了吗,用不了很难受...

暂时没时间移植,新版mac系统不是可以修改成Python2吗

No-Karma commented 5 years ago

不知道是哪里出了问题

➜ xia0LLDB-master lldb error: module importing failed: invalid pathname

[traceOC]: trace ObjectC function call traceOC more usage, try "traceOC -h"

[xutil]: some util tool for debug, this command is flexable and some options maybe remove future xutil [-b addr, -s module, -l dylib] more usage, try "xutil -h" error: module importing failed: invalid syntax (choose.py, line 274) File "temp.py", line 1, in

error: module importing failed: Missing parentheses in call to 'print'. Did you mean print('please specify the param, for example: "-[UIView initWithFrame:]"')? (xbr.py, line 531) File "temp.py", line 1, in

error: module importing failed: invalid syntax (dumpdecrypted.py, line 431) File "temp.py", line 1, in

======== [debugme]: kill anti-debug in lldb debugme more usage, try "debugme -h"

[info]: get basic info of process/function/module/address/... info [-m moduleName, -a address, -f funtionName, -u UserDefaults] more usage, try "info -h" error: module importing failed: invalid syntax (sbt.py, line 166) File "temp.py", line 1, in

4ch12dy commented 5 years ago

Duplicate of #3 这就是新系统Python3的问题,执行下面的代码指定lldb为Python2解释器就行了

defaults write com.apple.dt.lldb DefaultPythonVersion 2
No-Karma commented 5 years ago

额,理解错了,在另外一个issue里面看到这句话,以为这句是导致部分问题的原因

codesourse commented 5 years ago

可以了,三克油