Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
codesourse opened this issue Oct 17, 2019 · 7 comments

Comments

@codesourse
Copy link

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

报错了

@4ch12dy
Copy link
Owner

4ch12dy commented Oct 17, 2019

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

@No-Karma
Copy link

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

@4ch12dy
Copy link
Owner

4ch12dy commented Oct 17, 2019

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

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

@No-Karma
Copy link

不知道是哪里出了问题

➜ 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
Copy link
Owner

4ch12dy commented Oct 17, 2019

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

defaults write com.apple.dt.lldb DefaultPythonVersion 2

@No-Karma
Copy link

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

@codesourse
Copy link
Author

可以了,三克油

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants