Closed Zhonglu closed 1 year ago
testing newer version of julia
Looks like it can’t find the location of Julia. Check your PATH variable?
julia version 1.4.1
this also won’t work, you need Julia 1.6 or higher
(Didn’t mean to close)
Hi Miles,
Thank you. I believe I have resolved it. The PySR runs well with the example!
Another Note: I could not download package in Julia unless changing the source: export JULIA_PKG_SERVER="https://mirrors.bfsu.edu.cn/julia" in the ubuntu terminal. Perhaps because I am using it from China.
With kind regards,
Mike
Awesome! Glad to hear it’s working.
Describe the bug Installation failure with "subprocess.CalledProcessError"
I installed julia in WSL Ubuntu by command line. Then, run: pip install -U pysr Yet, python -c 'import pysr; pysr.install()' did not work. Please see error message below.
Version (please include the following information):
Configuration
Error message Add the error message here, or whatever other information would be useful for debugging. log below: ~/pysr$ python3 -c 'import pysr; pysr.install()' Traceback (most recent call last): File "", line 1, in
File "/home/flyme2004/.local/lib/python3.8/site-packages/pysr/julia_helpers.py", line 74, in install
_julia_version_assertion()
File "/home/flyme2004/.local/lib/python3.8/site-packages/pysr/julia_helpers.py", line 223, in _julia_version_assertion
if not is_julia_version_greater_eq(version=(1, 6, 0)):
File "/home/flyme2004/.local/lib/python3.8/site-packages/pysr/julia_helpers.py", line 122, in is_julia_version_greater_eq
juliainfo = _load_juliainfo()
File "/home/flyme2004/.local/lib/python3.8/site-packages/pysr/julia_helpers.py", line 23, in _load_juliainfo
juliainfo = JuliaInfo.load(julia="julia")
File "/home/flyme2004/.local/lib/python3.8/site-packages/julia/juliainfo.py", line 87, in load
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['julia', '-e', '...']' returned non-zero exit status 1.
Additional context I have searched the issue log, yet could not find any clue. Appreciate any comment. Looking forward to apply PySR in my new paper.