JuliaPy / JuliaPy/PyCall.jl

Deprecation Warning; unclear how to fix it

Aperta
#790 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Julia
Stelle
1.5k
Fork
186
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I get a deprecation warning (dot syntax) for the following line
`PyCall.pycall(chart[x], PyCall.PyAny, y)`

where `x` and `y` are `Strings` and `chart` is a
`PyObject `

I tried to fixed this in numerous ways, but was not successful.

I would appreciate if someone could take a brief look (as I want to ensure that this keeps working with future PyCall versions).

an MWE (relevant line is line 91) can be found here
https://github.com/kafisatz/DecisionTrees.jl/blob/master/testing/charts_pycall_mwe.jl

The lines 100 and following are not directly relevant (but motivate my use case)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start with the linked testing/charts_pycall_mwe.jl example, focusing on the relevant line 91 and the PyCall call shown in the issue. Run the MWE with the current PyCall version, determine why the deprecation warning occurs, and verify that the chart example works without the warning.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
julia, python
Ambito
backend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.