-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Run pyjulia in Ubuntu 20.04 #384
Comments
+1 |
+1 This is probably a bad recommendation!!, but the problem seems to be with the dynamic linking to libjulia.so. Then it works for me. At least the example
Maybe somebody can work out a more solid solution |
+1 |
+1 having the same problem |
The output of
would be useful for debugging this. |
I have the same error on opensuse tumbleweed. Below is the output from
So looks like it fails to install pycall. I get the same error trying to install in the julia REPL. Some further digging shows that this seems to be an error with julia/or packaging of julia linking to the wrong libgit. See the julia bug here: JuliaLang/julia#33111 (comment) which also provides a workaround (clone manually into |
If you have Julia 1.4 or above, it looks like you can set the environment variable |
I just fixed by manually cloning the General registry and now I can install PyCall, however I still get the same error: [ins] In [1]: from julia.api import Julia
...: jl = Julia(compiled_modules=False)
...: from julia import Base
...: Base.sind(90)
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
<ipython-input-1-135f1876e7df> in <module>
1 from julia.api import Julia
----> 2 jl = Julia(compiled_modules=False)
3 from julia import Base
4 Base.sind(90)
~/.local/lib/python3.8/site-packages/julia/core.py in __init__(self, init_julia, jl_init_path, runtime, jl_runtime_path, debug, **julia_options)
465 self.api = get_libjulia()
466 elif init_julia:
--> 467 jlinfo = JuliaInfo.load(runtime)
468 if jlinfo.version_info < (0, 7):
469 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. Output of julia.install() [ins] In [1]: import julia
[ins] In [2]: julia.install()
[ Info: Julia version info
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
OS: Linux (x86_64-suse-linux)
uname: Linux 5.7.1-1-default #1 SMP Wed Jun 10 11:53:46 UTC 2020 (6a549f6) x86_64 x86_64
CPU: AMD Ryzen 5 3600 6-Core Processor:
speed user nice sys idle irq
#1-12 2198 MHz 245649 s 146 s 44275 s 16642154 s 0 s
Memory: 31.297752380371094 GB (22802.3359375 MB free)
Uptime: 14158.0 sec
Load Avg: 0.1298828125 0.35595703125 0.453125
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, znver1)
Environment:
AF_PATH = /home/jschrod/Downloads/Scientific/OpenCL/arrayfire-3
HOME = /home/jschrod
MANPATH = /home/jschrod/.local/share/man:/usr/share/man:/usr/local/share/man
OMF_PATH = /home/jschrod/.local/share/omf
PATH = /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/jschrod/.local/bin:/home/jschrod/.emacs.d/bin:/home/jschrod/.local/bin:/home/jschrod/.emacs.d/bin
TERM = xterm-kitty
[ Info: Julia executable: /usr/bin/julia
[ Info: Trying to import PyCall...
┌ Info: PyCall is already installed and compatible with Python executable.
│
│ PyCall:
│ python: python3
│ libpython: /usr/lib64/libpython3.8.so.1.0
│ Python:
│ python: /usr/bin/python3
└ libpython: /usr/lib64/libpython3.8.so.1.0 so something else is going on. Might be a linking error as said above. |
The output of |
I think I found the issue. It seems under opensuse at least the simlink from
|
Well, PyJulia should at least throw a better error! (I wonder why |
Hello, firts thanks for the efort to bing this on. I have follow the installation instruction of the page (https://pyjulia.readthedocs.io/en/latest/installation.html) but whe i test the program I get the fowwing error:
Python 3.8.2 (default, Apr 27 2020, 15:53:34)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
'>>>' from julia import Base
Traceback (most recent call last):
File "", line 1, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in _load_backward_compatible
File "/home/pmaldona/.local/lib/python3.8/site-packages/julia/core.py", line 247, in load_module
elif self.julia.isafunction(juliapath):
File "/home/pmaldona/.local/lib/python3.8/site-packages/julia/core.py", line 238, in julia
self.class.julia = julia = Julia()
File "/home/pmaldona/.local/lib/python3.8/site-packages/julia/core.py", line 467, in init
jlinfo = JuliaInfo.load(runtime)
File "/home/pmaldona/.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.
Thanks in advance for the help.
Greetings
The text was updated successfully, but these errors were encountered: