Skip to content
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

Initialization Error #96

Closed
studybox opened this issue Apr 26, 2017 · 3 comments
Closed

Initialization Error #96

studybox opened this issue Apr 26, 2017 · 3 comments

Comments

@studybox
Copy link

I am currently experiencing an error when using pyjulia:

>>> import julia
>>> j = julia.Julia()
WARNING: redefining constant JULIA_HOME
InitError(:PyCall,PyError (:PyImport_ImportModule) <type 'exceptions.SystemError'>
SystemError('dynamic module not initialized properly',)

signal (11): Segmentation fault
while loading no file, in expression starting on line 0
PyObject_Call at /usr/lib/x86_64-linux-gnu/libpython2.7.so (unknown line)
macro expansion at /home/boqi/.julia/v0.5/PyCall/src/exception.jl:78 [inlined]
#_pycall#66 at /home/boqi/.julia/v0.5/PyCall/src/PyCall.jl:549
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_f__apply at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:547
_pycall at /home/boqi/.julia/v0.5/PyCall/src/PyCall.jl:537
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_f__apply at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:547
#pycall#69 at /home/boqi/.julia/v0.5/PyCall/src/PyCall.jl:568
show at /home/boqi/.julia/v0.5/PyCall/src/exception.jl:39
unknown function (ip: 0x7fd5ed04d0b6)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
show_default at ./show.jl:130
unknown function (ip: 0x7fd5ed04ba56)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
show at ./show.jl:116
unknown function (ip: 0x7fd5ed04b4b6)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_show at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:972
ffi_call_unix64 at /usr/lib/x86_64-linux-gnu/libffi.so.6 (unknown line)
ffi_call at /usr/lib/x86_64-linux-gnu/libffi.so.6 (unknown line)
_ctypes_callproc at /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so (unknown line)
unknown function (ip: 0x7fd80cb16f9d)
PyEval_EvalFrameEx at python (unknown line)
PyEval_EvalCodeEx at python (unknown line)
PyEval_EvalFrameEx at python (unknown line)
PyEval_EvalCodeEx at python (unknown line)
PyEval_EvalFrameEx at python (unknown line)
unknown function (ip: 0x568b39)
unknown function (ip: 0x4c2603)
unknown function (ip: 0x4d1c5b)
unknown function (ip: 0x55f6da)
PyEval_EvalFrameEx at python (unknown line)
unknown function (ip: 0x567d13)
PyRun_InteractiveOneFlags at python (unknown line)
PyRun_InteractiveLoopFlags at python (unknown line)
PyRun_AnyFileExFlags at python (unknown line)
Py_Main at python (unknown line)
__libc_start_main at /build/eglibc-MjiXCM/eglibc-2.19/csu/libc-start.c:287
unknown function (ip: 0x577c2d)
Allocations: 2134761 (Pool: 2133817; Big: 944); GC: 1
Segmentation fault (core dumped)

I did successfully initialized pyjulia before, but somehow it's not working for me now, probably because I updated my julia packages recently.
I tried to remove PyCall and reinstall it, and remove PyJulia and reinstall it, but that didn't work for me.
Thanks.

@Alexander-Barth
Copy link

I have the same issue on Julia 0.5.2. It did work before on Julia 0.5.0.

@studybox
Copy link
Author

I think I managed to resolve it by deleting an entire pyjulia folder in .julia/lib.

@Keno
Copy link
Contributor

Keno commented Jul 25, 2017

Should be addressed by JuliaPy/PyCall.jl#419

@Keno Keno closed this as completed Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants