`ReadOnlyMemoryError` in PyCall

It’s impossible to help without a MWE, please see point 4 here: Please read: make it easier to help you