greta-dev / greta

simple and scalable statistical modelling in R
https://greta-stats.org
Other
540 stars 63 forks source link

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

Open njtierney opened 3 months ago

njtierney commented 3 months ago

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: https://github.com/greta-dev/greta/issues/531

njtierney commented 3 months ago

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 commented 3 months ago
njtierney commented 3 months ago

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 commented 3 months ago

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