upload an excel file and read the data
<p><strong>In my application, I uploaded an excel file and trying to read the data.
I am trying in following way,</strong></p>

<pre><code>@expose()
def save(self, **params):
    xls_file = params['xls_file']
    wb = xlrd.open_workbook(bill_file,'w')
    sh = wb.sheet_by_index(0)
    for i,rownum in enumerate(range(sh.nrows)):
        print sh.row_values(rownum)
</code></pre>

<p><strong>But getting the following errors:</strong></p>

<p><strong>TypeError: coercing to Unicode: need string or buffer, instance found</strong></p>

<p>Module xlrd:425 in open_workbook         view
&lt;&lt;          encoding_override=encoding_override,
               formatting_info=formatting_info,
               on_demand=on_demand,
               )
           t1 = time.clock()</p>

<blockquote>
  <blockquote>
    <p>on_demand=on_demand,
    Module xlrd:878 in biff2_8_load         view
    &lt;&lt;              retry = False
                       try:
                           f = open(filename, open_mode)
                       except IOError:
                           e, v = sys.exc_info()[:2]
     f = open(filename, open_mode)</p>
  </blockquote>
</blockquote>
