Skip to content

The agent that turns websites into APIs!

fix: strip sub-module path before pip install

kalil0321a53c87de8eb8
diff --git a/src/reverse_api/cli.py b/src/reverse_api/cli.py
index a61a2cc..ade24c3 100644
--- a/src/reverse_api/cli.py
+++ b/src/reverse_api/cli.py
@@ -2179,7 +2179,7 @@ def run_script(ctx, identifier, script_args, file_name, list_scripts):
match = _re.search(r"No module named ['\"]([^'\"]+)['\"]", result.stderr)
if match:
- missing = match.group(1)
+ missing = match.group(1).split(".")[0]
console.print(f"[yellow]Missing dependency: {missing}[/yellow]")
install = questionary.confirm(