Skip to content

Commit 89d2cf3

Browse files
author
Christopher Doris
committed
better errors when PythonCall does not load
1 parent 4bbe8ea commit 89d2cf3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

juliacall/init.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@
151151
{}
152152
import PythonCall
153153
catch err
154-
@error "Error loading PythonCall.jl" err=err
154+
print(stdout, "ERROR: ")
155+
showerror(stdout, err)
156+
Base.show_backtrace(stdout, Base.catch_backtrace())
157+
flush(stdout)
155158
rethrow()
156159
end
157160
'''.format(jlenv, install, c.pythonapi._handle)

0 commit comments

Comments
 (0)