JuliaPy / JuliaPy/PyCallJLD.jl
Cannot save pydef-defined class
- Vorherrschende Sprache
- Julia
- Sterne
- 5
- Forks
- 6
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
```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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- julia, python
- Bereich
- data
- Issue-Typ
- Bug
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100