JuliaPy / JuliaPy/pyjulia

Can't import Base

Open
#433 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
893
Forks
101
PR merge metrics
No merged PRs in 30d

Description

I am trying to use pyjulia for the first time on ubuntu 20.04. julia.install() looks to work perfectly. However I get:

```
from julia import Base
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
in
----> 1 from julia import Base

/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)

~/.local/lib/python3.8/site-packages/julia/core.py in load_module(self, fullname)
246 return sys.modules.setdefault(fullname,
247 JuliaMainModule(self, fullname))
--> 248 elif self.julia.isafunction(juliapath):
249 return self.julia.eval(juliapath)
250

~/.local/lib/python3.8/site-packages/julia/core.py in julia(self)
237 @property
238 def julia(self):
--> 239 self.__class__.julia = julia = Julia()
240 return julia
241

~/.local/lib/python3.8/site-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")

~/.local/lib/python3.8/site-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.
```

Is this a know problem?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.