pyjulia icon indicating copy to clipboard operation
pyjulia copied to clipboard

python-jl warning for getindex(o::PyObject, s::Symbol)

Open tk3369 opened this issue 5 years ago • 1 comments

I just installed pyjulia. Where does the warning below come from? By now, I would expect PyCall users have migrated to the new dot notation.

$ python-jl
┌ Warning: `getindex(o::PyObject, s::Symbol)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o.s` instead of `o[:s]`.
│   caller = top-level scope at none:4
└ @ Core none:4
Python 3.7.3 (default, Dec 20 2019, 18:57:59) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> 

tk3369 avatar Jul 11 '20 00:07 tk3369

Might be an issue with the APT version -- if you installed julia via apt install julia, then try installing from the binaries instead -- https://julialang.org/downloads/

No idea why the two versions are different, but this worked for me.

Krytic avatar Sep 20 '20 23:09 Krytic