You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If installing in Alpine which does not have file by default you get error message:
Traceback (most recent call last):
File "/root/.gef-2023.06.py", line 11070, in <module>
reset()
File "/root/.gef-2023.06.py", line 191, in reset
gef.setup()
File "/root/.gef-2023.06.py", line 11001, in setup
self.reinitialize_managers()
File "/root/.gef-2023.06.py", line 10996, in reinitialize_managers
self.session = GefSessionManager()
^^^^^^^^^^^^^^^^^^^
File "/root/.gef-2023.06.py", line 10602, in __init__
self.constants[constant] = which(constant)
^^^^^^^^^^^^^^^
File "/root/.gef-2023.06.py", line 1843, in which
raise FileNotFoundError(f"Missing file `{program}`")
FileNotFoundError: Missing file `file`
Which is a bit cryptic. For Alpine users: in order to use gef you need file, e.g. apk add file
Might be nice with a better error message here?
The text was updated successfully, but these errors were encountered:
I'm not sure what "better" means. It clearly states the fact a required binary dependency cannot be found. This is all described in the docs. GEF is a Python tool, agnostic of all Linux variants and we cannot (and aren't going to) spend time making it specific to each distro specificities if that's the kind of improvement you were hoping.
I don't think we should add special handling for file. I am with hugsy. There has to be some base set of utilities that are needed. I think FileNotFoundError: Missing file file is plenty clear.
gef/gef.py
Line 11079 in 18c1f7c
If installing in Alpine which does not have
file
by default you get error message:Which is a bit cryptic. For Alpine users: in order to use gef you need
file
, e.g.apk add file
Might be nice with a better error message here?
The text was updated successfully, but these errors were encountered: