diffeqpy
diffeqpy copied to clipboard
CalledProcessError
I got this error when I tried to run the simple example from the README:
CalledProcessError Traceback (most recent call last)
<ipython-input-1-aec2df851171> in <module>
----> 1 from diffeqpy import de
2 def f(u,p,t):
3 return -u
4 u0 = 0.5
5 tspan = (0., 1.)
/usr/local/lib/python3.8/dist-packages/diffeqpy/de.py in <module>
2 import sys
3
----> 4 from julia import Main
5
6 script_dir = os.path.dirname(os.path.realpath(__file__))
/usr/lib/python3.8/importlib/_bootstrap.py in _find_and_load(name, import_)
/usr/lib/python3.8/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_)
/usr/lib/python3.8/importlib/_bootstrap.py in _load_unlocked(spec)
/usr/lib/python3.8/importlib/_bootstrap.py in _load_backward_compatible(spec)
/usr/local/lib/python3.8/dist-packages/julia/core.py in load_module(self, fullname)
245 if juliapath == 'Main':
246 return sys.modules.setdefault(fullname,
--> 247 JuliaMainModule(self, fullname))
248 elif self.julia.isafunction(juliapath):
249 return self.julia.eval(juliapath)
/usr/local/lib/python3.8/dist-packages/julia/core.py in __init__(self, loader, *args, **kwargs)
147 def __init__(self, loader, *args, **kwargs):
148 super(JuliaModule, self).__init__(*args, **kwargs)
--> 149 self._julia = loader.julia
150 self.__loader__ = loader
151
/usr/local/lib/python3.8/dist-packages/julia/core.py in julia(self)
237 @property
238 def julia(self):
--> 239 self.__class__.julia = julia = Julia()
240 return julia
241
/usr/local/lib/python3.8/dist-packages/julia/core.py in __init__(self, init_julia, jl_init_path, runtime, jl_runtime_path, debug, **julia_options)
466 self.api = get_libjulia()
467 elif init_julia:
--> 468 jlinfo = JuliaInfo.load(runtime)
469 if jlinfo.version_info < (0, 7):
470 raise RuntimeError("PyJulia does not support Julia < 0.7 anymore")
/usr/local/lib/python3.8/dist-packages/julia/juliainfo.py in load(cls, julia, **popen_kwargs)
85 )
86 else:
---> 87 raise subprocess.CalledProcessError(
88 retcode, [julia, "-e", "..."], stdout, stderr
89 )
CalledProcessError: Command '['julia', '-e', '...']' returned non-zero exit status 1.
I have Julia 1.4.1 on Ubuntu 20.10.
I don't know this one at all. @tkf ?
Fixed by PythonCall transition