Spaces:
Running
Running
Commit
·
2309acf
1
Parent(s):
102209f
Correct error type
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
|
@@ -676,7 +676,7 @@ def _check_for_julia_installation():
|
|
| 676 |
process.wait()
|
| 677 |
except FileNotFoundError:
|
| 678 |
import os
|
| 679 |
-
raise
|
| 680 |
process.kill()
|
| 681 |
|
| 682 |
|
|
|
|
| 676 |
process.wait()
|
| 677 |
except FileNotFoundError:
|
| 678 |
import os
|
| 679 |
+
raise RuntimeError(f"Your current $PATH is: {os.environ['PATH']}\nPySR could not start julia. Make sure julia is installed and on your $PATH.")
|
| 680 |
process.kill()
|
| 681 |
|
| 682 |
|