Open karaface opened 6 months ago
pip_|-remnux-python3-packages-frida-install_|-frida-tools_|-installed: __id__: remnux-python3-packages-frida-install __run_num__: 382 __sls__: remnux.python3-packages.frida changes: {} comment: "Failed to install packages: frida-tools. Error: Requirement already\ \ satisfied: frida-tools in /usr/local/lib/python3.8/dist-packages (12.2.1)\n\ Collecting frida-tools\n Using cached frida-tools-12.4.2.tar.gz (345 kB)\n\ \ Installing build dependencies: started\n Installing build dependencies:\ \ finished with status 'done'\n Getting requirements to build wheel: started\n\ \ Getting requirements to build wheel: finished with status 'error' error:\ \ subprocess-exited-with-error\n \n × Getting requirements to build wheel\ \ did not run successfully.\n │ exit code: 1\n ╰─> [17 lines of output]\n\ \ Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py\"\ , line 353, in <module>\n main()\n File \"/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py\"\ , line 335, in main\n json_out['return_val'] = hook(**hook_input['kwargs'])\n\ \ File \"/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py\"\ , line 118, in get_requires_for_build_wheel\n return hook(config_settings)\n\ \ File \"/tmp/pip-build-env-59mdm_pd/overlay/lib/python3.8/site-packages/setuptools/build_meta.py\"\ , line 325, in get_requires_for_build_wheel\n return self._get_build_requires(config_settings,\ \ requirements=['wheel'])\n File \"/tmp/pip-build-env-59mdm_pd/overlay/lib/python3.8/site-packages/setuptools/build_meta.py\"\ , line 295, in _get_build_requires\n self.run_setup()\n File\ \ \"/tmp/pip-build-env-59mdm_pd/overlay/lib/python3.8/site-packages/setuptools/build_meta.py\"\ , line 487, in run_setup\n super().run_setup(setup_script=setup_script)\n\ \ File \"/tmp/pip-build-env-59mdm_pd/overlay/lib/python3.8/site-packages/setuptools/build_meta.py\"\ , line 311, in run_setup\n exec(code, locals())\n File \"<string>\"\ , line 99, in <module>\n TypeError: 'type' object is not subscriptable\n\ \ [end of output]\n \n note: This error originates from a subprocess,\ \ and is likely not a problem with pip.\nerror: subprocess-exited-with-error\n\ \n× Getting requirements to build wheel did not run successfully.\n│ exit code:\ \ 1\n╰─> See above for output.\n\nnote: This error originates from a subprocess,\ \ and is likely not a problem with pip." duration: 2512.794 name: frida-tools result: false
Hi @karaface , you are correct in that this issue appears to revolve around the installation of the latest version of frida-tools. This issue was just recently identified here on the frida-tools GitHub. We'll keep an eye on it and update as soon as we have more information.
Cheers!
The issue occurs because of how the version detection is done in frida-tools >=12.4.0. It uses type hinting syntax only supported in Python version 3.9 and up. In this case the setup is failing at this line.
A workaround would be to set - name: frida-tools==12.3.0
in the Frida salt state file, or make it upgrade using the already installed python3.9 (could not find any salt files that does this, unsure if possible).
Having trouble with remnux upgrade, appears to be related to frida-tools not being able to be updated due to wheel issues even though wheel package seems to be up to date.
Not sure.
saltstack.log