TypeError: cannot serialize '_io.TextIOWrapper' object- Flask
<p>I am writing a flask app that asks user to upload excel spreadsheet and then calculate and populate the database.I am trying to do the processing part in the background via <strong>Redis RQ</strong> but I keep getting <em>TypeError: cannot serialize '_io.TextIOWrapper' object</em>
my code looks like this:</p>

<pre><code>from redis import Redis
from rq import Queue
from rq.job import Job
import xlrd as x

workbook = x.open_workbook('data.xls')
sheet = workbook.sheet_by_index(0)
q = Queue(connection = Redis())

def populate(sheet,row,column):
    #extract data and save into database

job = enqueue_call(func=populate, args=(sheet,7,5), result_ttl = 5000)
print(job.get_id())
</code></pre>