JuliaPy / JuliaPy/PyCallJLD.jl
Cannot save pydef-defined class
- Lingua principale
- Julia
- Stelle
- 5
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```julia
@pydef type Store
__init__(self, a) = (self[:a] = a)
end
save("dummy.jld", "x", Store(10))
> PyError (ccall(@pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, arg, C_NULL))
> PicklingError("Can't pickle : attribute lookup __main__.Store failed",)
```
I don't think anything can be done about it, though.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by reproducing the failure from the issue's @pydef Store example and the save("dummy.jld", "x", Store(10)) call. Investigate how PyCallJLD handles pydef-defined classes and cPickle serialization; done would require either successful saving and loading of the object or a clearly documented supported limitation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- julia, python
- Ambito
- data
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100