无法打开弗里达

问题描述 投票:0回答:1

我有ubuntu16.04,我不想更新它。我的ubuntu上安装了python2.7和3.5。我按照步骤 pip 安装弗里达 pip 安装 frida frida-tools 它现在安装在我的 3.5 python 中,当我运行 frida 时,它给了我错误

Traceback (most recent call last):
  File "/home/dilawer/.local/bin/frida", line 8, in <module>
    sys.exit(main())
  File "/home/dilawer/.local/lib/python3.5/site-packages/frida_tools/repl.py", line 38, in main
    from frida_tools.cli_formatting import format_compiling, format_compiled, format_diagnostic
  File "/home/dilawer/.local/lib/python3.5/site-packages/frida_tools/cli_formatting.py", line 24
    return f"{STYLE_RESET_ALL}Compiling {STYLE_FILE}{name}{STYLE_RESET_ALL}..."
                                                                              ^
SyntaxError: invalid syntax

当我在 ubuntu 上使用 python --version 时,它会给我 2.7 版本响应,当我查看 python3 --version 响应将为 3.5.2

frida 15.2.2版本已安装 请让我知道如何解决这个问题 谢谢

python-3.x frida
1个回答
0
投票

错误消息

SyntaxError: invalid syntax
指的是代码行
return f"{STYLE_RESET_ALL}Compiling {STYLE_FILE}{name}{STYLE_RESET_ALL}..."

主要问题似乎是它是一个所谓的“f-string”,因为它被写成

f"..."

这些 Python“f-strings”已在 Python 3.6 中通过 pep-0498 引入,因此您至少需要该版本。

或者,您可以尝试获取旧版本的

frda-tools
和匹配的
frida
版本。导致问题的文件
cli_formatting.py
于 2022 年 9 月引入,因此您需要
frida-tools
版本 11.0.0 或更早版本(frida-tools v11.0.0 应与 frida 15.2.2 兼容)。

© www.soinside.com 2019 - 2024. All rights reserved.