Spaces:
Running
Running
Point user to GitHub in case of installation error
Browse files- pysr/julia_helpers.py +9 -1
pysr/julia_helpers.py
CHANGED
|
@@ -94,7 +94,15 @@ def install(julia_project=None, quiet=False, precompile=None): # pragma: no cov
|
|
| 94 |
],
|
| 95 |
)
|
| 96 |
# Try installing again:
|
| 97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
Main, init_log = init_julia(julia_project, quiet=quiet, return_aux=True)
|
| 100 |
io_arg = _get_io_arg(quiet)
|
|
|
|
| 94 |
],
|
| 95 |
)
|
| 96 |
# Try installing again:
|
| 97 |
+
try:
|
| 98 |
+
julia.install(quiet=quiet)
|
| 99 |
+
except julia.tools.PyCallInstallError:
|
| 100 |
+
warnings.warn(
|
| 101 |
+
"PyCall.jl failed to install on second attempt. "
|
| 102 |
+
+ "Please consult the GitHub issue "
|
| 103 |
+
+ "https://github.com/MilesCranmer/PySR/issues/257 "
|
| 104 |
+
+ "for advice on fixing this."
|
| 105 |
+
)
|
| 106 |
|
| 107 |
Main, init_log = init_julia(julia_project, quiet=quiet, return_aux=True)
|
| 108 |
io_arg = _get_io_arg(quiet)
|