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

Fix CiHelper function checkPythonExec to use 'pip3 install --user' and improve error message #12097

Merged
merged 2 commits into from Sep 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions LibreNMS/Util/CiHelper.php
Expand Up @@ -491,13 +491,15 @@ private function checkPythonExec($exec)
}

echo "Running pip3 install to install developer dependencies.\n";
passthru("pip3 install $exec"); // probably wrong in other cases...
passthru("pip3 install --user $exec"); // probably wrong in other cases...

if (is_executable($path)) {
return $path;
}

echo "\nRunning installing deps with pip3 failed.\n You should try running 'pip3 install -r requirements.txt' by hand\n";
echo "\nRunning installing deps with pip3 failed.\n You should try running 'pip3 install --user ";
echo $exec;
echo "' by hand\n";
echo "You can find more info at http://docs.librenms.org/Developing/Validating-Code/\n";
exit(1);
}
Expand Down