OK, I found some info here:
https://github.com/JuliaLang/pyjulia/issues/38

I tried the code suggested at the end, from ronisbr

I modified it to say:

julia = PyDLL('/usr/lib64/julia/libjulia.so', RTLD_GLOBAL)


I'm using the standard fedora 23 julia package.
rpm -qf /usr/lib64/julia/libjulia.so
julia-0.4.1-1.fc23.x86_64

Attempting to execute this on python2 gives:

[nbecker@nbecker7 pyjulia]$ python2 test1.py

signal (11): Segmentation fault
unknown function (ip: 0x7f4e710c05ef)
jl_apply_generic at /usr/lib64/julia/libjulia.so (unknown line)
jl_call2 at /usr/lib64/julia/libjulia.so (unknown line)
ffi_call_unix64 at /lib64/libffi.so.6 (unknown line)
ffi_call at /lib64/libffi.so.6 (unknown line)
_ctypes_callproc at /usr/lib64/python2.7/lib-dynload/_ctypes.so (unknown 
line)
unknown function (ip: 0x7f4e722c29d4)
PyObject_Call at /lib64/libpython2.7.so.1.0 (unknown line)
PyEval_EvalFrameEx at /lib64/libpython2.7.so.1.0 (unknown line)
PyEval_EvalCodeEx at /lib64/libpython2.7.so.1.0 (unknown line)
PyEval_EvalCode at /lib64/libpython2.7.so.1.0 (unknown line)
unknown function (ip: 0x7f4e79e12bdf)
PyRun_FileExFlags at /lib64/libpython2.7.so.1.0 (unknown line)
PyRun_SimpleFileExFlags at /lib64/libpython2.7.so.1.0 (unknown line)
Py_Main at /lib64/libpython2.7.so.1.0 (unknown line)
__libc_start_main at /lib64/libc.so.6 (unknown line)
_start at python2 (unknown line)
unknown function (ip: (nil))
Segmentation fault (core dumped)


Neal Becker wrote:

> Just updated to julia-0.4.1 on fedora 23.
> Updated PyCall
> julia> Pkg.build("PyCall")
> INFO: Building PyCall
> INFO: PyCall is using /usr/bin/python (Python 2.7.10) at /usr/bin/python,
> libpython = /usr/lib64/libpython2.7.so
> 
> Just for good measure, re-ran python setup.py install --user on pyjulia
> after git pull (but it was already up-to-date).
> 
> j = julia.Julia()
> ERROR: UndefVarError: dlpath not defined
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "julia/core.py", line 244, in __init__
>     raise JuliaError('error starting up the Julia process')
> julia.core.JuliaError: error starting up the Julia process
> 
> which julia
> /usr/bin/julia
> 
> Any ideas?
> 
> I've been patiently waiting to explore julia (coming from python).  For
> me, the only reasonable path is to incrementally add julia to my python,
> so I need pyjulia to work.


Reply via email to