Fix regression with `ipi` command (in portable build) (#3017)

* Fix regression with `ipi` command (in portable build):
> Error occurred in Python: No package metadata was found for prompt_toolkit
pull/3016/head^2
patryk4815 7 months ago committed by GitHub
parent 50912d40af
commit b638ec56da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -44,24 +44,6 @@ debug = config.add_param(
)
def inform_unmet_dependencies(errors) -> None:
"""
Informs user about unmet dependencies
"""
import pkg_resources
msg = message.error("You appear to have unmet Pwndbg dependencies.\n")
for e in errors:
if isinstance(e, pkg_resources.DistributionNotFound):
msg += message.notice(f"- required {e.args[0]}, but not installed\n")
else:
msg += message.notice(f"- required {e.args[1]}, installed: {e.args[0]}\n")
msg += message.notice("Consider running: ")
msg += message.hint("`setup.sh` ")
msg += message.notice("from Pwndbg project directory.\n")
print(msg)
@pwndbg.lib.cache.cache_until("forever")
def inform_report_issue(exception_msg) -> None:
"""

@ -16,8 +16,6 @@ dependencies = [
"pyelftools>=0.29,<0.30",
"pygments>=2.18.0,<3",
"psutil>=6.1.1,<7",
# for the (unused) inform_unmet_dependencies function
"setuptools>=80.8.0",
# Optional? only for 'ipi' command
"ipython>=8.27.0,<9",
# Optional? only for 'ropgadget' command

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save