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

Create functions to grep through installation logfiles (stdout / stderr) #663

Open
njtierney opened this issue Aug 5, 2024 · 4 comments

Comments

@njtierney
Copy link
Collaborator

njtierney commented Aug 5, 2024

So that we can start to identify some common failure modes.

Eg if there’s a certain installation error we could grep for that and then provide some suggestions on ways to solve it. Eg perhaps a specific version of python needs to be specified

Could work with logfile logger: #531

@njtierney
Copy link
Collaborator Author

Add an option to trigger a warning if it thinks there is a fatal install error. This can be controlled with a number for sensitivity - e,g, 0 means anything with the word “error” will trigger an error. A 1 means it allows 1 error, etc, with Inf meaning unlimited errors…?

Could build in a similar grepper for warnings as well. The same grepper should be able to have any word searched for, error/Error/ERROR, warning/Warning/warn/Warn/WARN/WARNING/Warns etc

@njtierney
Copy link
Collaborator Author

  • We could also do a better job of identifying errors by grepping through the log files and pulling out relevant parts that might suggest an error
  • Could pull these out and state that there might have been an error, then pluck those bits out and print them to the user
  • Can establish a couple of known installation patterns that could work for different users
  • Eg if there’s a certain installation error we could grep for that and then provide some suggestions on ways to solve it. Eg perhaps a specific version of python needs to be specified
  • These could be suggested if an install fails

@njtierney
Copy link
Collaborator Author

Example error

+ /Users/nick/.virtualenvs/greta-env-tf2/bin/python -m pip install --upgrade --no-user 'tensorflow==2.15.0.*'
ERROR: Could not find a version that satisfies the requirement tensorflow==2.15.0.* (from versions: 2.16.0rc0, 2.16.1, 2.16.2, 2.17.0rc0, 2.17.0rc1, 2.17.0)
ERROR: No matching distribution found for tensorflow==2.15.0.*
Error : Error installing package(s): "'tensorflow==2.15.0.*'"

Which is really weird since I'm fairly sure 2.15.0 exists?

@njtierney
Copy link
Collaborator Author

Could not find a version that satisfies the requirement ... means that the python version doesn't match the module python requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant