I am trying to port in Julia the above python code:
from ezodf import newdoc, Sheet
ods = newdoc(doctype='ods', filename='spreadsheet.ods')
sheet = Sheet('SHEET', size=(10, 10))
ods.sheets += sheet
sheet['A1'].set_value("1.5")
ods.save()
The problem is with the += (python extend) part:
using PyCall
@pyimport ezodf
filename="testspreadsheet.ods"
destDoc = ezodf.newdoc(doctype="ods", filename=filename)
sheet = ezodf.Sheet("SHEET", size=(10, 10))
append!(destDoc[:sheets],sheet)
# a = PyVector(destDoc[:sheets])
# append!(a,sheet) # same error
PyError (:PyList_Append) <type 'exceptions.SystemError'>
SystemError('../Objects/listobject.c:290: bad argument to internal function',)
in pyerr_check at exception.jl:56 [inlined]
in pyerr_check at exception.jl:61 [inlined]
in macro expansion at exception.jl:81 [inlined]
in push!(::PyCall.PyObject, ::PyCall.PyObject) at PyCall.jl:657
in append!(::PyCall.PyObject, ::PyCall.PyObject) at PyCall.jl:679
in include_string(::String, ::String) at loading.jl:441
in include_string(::String, ::String, ::Int64) at eval.jl:28
in include_string(::Module, ::String, ::String, ::Int64, ::Vararg{Int64,N}) at eval.jl:32
in (::Atom.##53#56{String,Int64,String})() at eval.jl:50
in withpath(::Atom.##53#56{String,Int64,String}, ::String) at utils.jl:30
in withpath(::Function, ::String) at eval.jl:38
in macro expansion at eval.jl:49 [inlined]
in (::Atom.##52#55{Dict{String,Any}})() at task.jl:60
Any hint ? Thank you…
(I di try with push!) and converting all to PyVector() but the error remains the same)