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

Remnux upgrade issue seems to be related to frida-tools #178

Open
karaface opened this issue May 21, 2024 · 3 comments
Open

Remnux upgrade issue seems to be related to frida-tools #178

karaface opened this issue May 21, 2024 · 3 comments

Comments

@karaface
Copy link

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

@karaface
Copy link
Author

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

@digitalsleuth
Copy link

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!

@Vealending
Copy link

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).

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