With Python 3 as a backend, what’s the solution to this error?
julia> writer("a")
ERROR: PyError (ccall(@pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, arg, C_NULL)) <class 'TypeError'>
TypeError('expected bytes, str found',)
I also tried
julia> writer(Vector{UInt8}("a"))
ERROR: PyError (ccall(@pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, arg, C_NULL)) <class 'TypeError'>
TypeError('expected bytes, bytearray found',)