You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On Julia 1.6.7, I tried loading the JuliaCall IPython extension in a Jupyter notebook (as part of the PySR test suite, I have a notebook that runs and does %load_ext juliacall and does various Julia stuff).
I executed it in a line with %julia println(3). This gives me the following traceback:
JuliaErrorTraceback (mostrecentcalllast)
/tmp/ipykernel_3051/1932480696.pyin<module>---->1get_ipython().run_line_magic('julia', 'println(3)')
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/IPython/core/interactiveshell.pyinrun_line_magic(self, magic_name, line, _stack_depth)
2416kwargs['local_ns'] =self.get_local_scope(stack_depth)
2417withself.builtin_trap:
->2418result=fn(*args, **kwargs)
2419returnresult2420/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/decorator.pyinfun(*args, **kw)
230ifnotkwsyntax:
231args, kw=fix(args, kw, sig)
-->232returncaller(func, *(extras+args), **kw)
233fun.__name__=func.__name__234fun.__doc__=func.__doc__/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/IPython/core/magic.pyin<lambda>(f, *a, **k)
185# but it's overkill for just that one bit of state.186defmagic_deco(arg):
-->187call=lambdaf, *a, **k: f(*a, **k)
188189ifcallable(arg):
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/juliacall/ipython.pyinjulia(self, line, cell)
52ans=Main.seval('begin\n'+code+'\nend')
53# flush stderr/stdout--->54PythonCall._flush_stdio()
55# copy variables back to Python56# only copy those which are new or have changed value/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/juliacall/__init__.pyin__call__(self, *args, **kwargs)
206returnValueBase.__dir__(self) +self._jl_callmethod($(pyjl_methodnum(pyjlany_dir)))
207def__call__(self, *args, **kwargs):
-->208returnself._jl_callmethod($(pyjl_methodnum(pyjlany_call)), args, kwargs)
209def__bool__(self):
210returnTrueJuliaError: MethodError: nomethodmatchingflush(::Tuple{Base.PipeEndpoint, Base.PipeEndpoint})
Closestcandidatesare:
flush(!Matched::Base.DevNull) atcoreio.jl:19flush(!Matched::TextDisplay) atmultimedia.jl:253flush(!Matched::IOStream) atiostream.jl:66
...
Stacktrace:
[1] _flush_stdio()
@ PythonCall ./none:11
[2] pyjlany_call(self::typeof(PythonCall._flush_stdio), args_::Py, kwargs_::Py)
@ PythonCall~/.julia/packages/PythonCall/wXfah/src/jlwrap/any.jl:39
[3] _pyjl_callmethod(f::Any, self_::Ptr{PythonCall.C.PyObject}, args_::Ptr{PythonCall.C.PyObject}, nargs::Int64)
@ PythonCall~/.julia/packages/PythonCall/wXfah/src/jlwrap/base.jl:69
[4] _pyjl_callmethod(o::Ptr{PythonCall.C.PyObject}, args::Ptr{PythonCall.C.PyObject})
@ PythonCall.C~/.julia/packages/PythonCall/wXfah/src/cpython/jlwrap.jl:47
This is the most recently released version of JuliaCall. So it basically looks like this flush call is not compatible with Julia 1.6?
The text was updated successfully, but these errors were encountered:
Affects: JuliaCall
Describe the bug
On Julia 1.6.7, I tried loading the JuliaCall IPython extension in a Jupyter notebook (as part of the PySR test suite, I have a notebook that runs and does
%load_ext juliacall
and does various Julia stuff).I executed it in a line with
%julia println(3)
. This gives me the following traceback:This is the most recently released version of JuliaCall. So it basically looks like this
flush
call is not compatible with Julia 1.6?The text was updated successfully, but these errors were encountered: