JuliaPy / PythonCall.jl

Python and Julia in harmony.
https://juliapy.github.io/PythonCall.jl/stable/
MIT License
715 stars 61 forks source link

Error in calling display(array) #495

Closed joa-quim closed 1 month ago

joa-quim commented 1 month ago

Affects: JuliaCall

jl.display(jl.rand(jl.UInt8, 3,2))
---------------------------------------------------------------------------
JuliaError                                Traceback (most recent call last)
Cell In[14], line 1
----> 1 jl.display(jl.rand(jl.UInt8, 3,2))

File ~\.julia\packages\PythonCall\wXfah\src\jlwrap\any.jl:208, in __call__(self, *args, **kwargs)
    206     return ValueBase.__dir__(self) + self._jl_callmethod($(pyjl_methodnum(pyjlany_dir)))
    207 def __call__(self, *args, **kwargs):
--> 208     return self._jl_callmethod($(pyjl_methodnum(pyjlany_call)), args, kwargs)
    209 def __bool__(self):
    210     return True

JuliaError: MethodError: no method matching mode(::Nothing)
cjdoris commented 1 month ago

Have you updated JuliaCall? This was fixed a few versions ago.

joa-quim commented 1 month ago

Sorry, I hadn't. Now I did and it works.