title: Open excel file in Python: XLRDError: Excel xlsx file; not supported
body: <p>I want to open an Excel file in Python, using:</p>
  <pre><code>import xlrd
  
  loc = (r&quot;C:\Users\my_path\my_file.xlsx&quot;)
  
  wb = xlrd.open_workbook(loc)
  sheet = wb.sheet_by_index(0)
  sheet.cell_value(0, 0)
  </code></pre>
  <p>and it caught error:</p>
  <pre><code>---------------------------------------------------------------------------
  XLRDError                                 Traceback (most recent call last)
  &lt;ipython-input-70-b399ced4986e&gt; in &lt;module&gt;
        4 loc = (r&quot;C:\Users\my_path\my_file.xlsx&quot;)
        5 
  ----&gt; 6 wb = xlrd.open_workbook(loc)
        7 sheet = wb.sheet_by_index(0)
        8 sheet.cell_value(0, 0)
  
  C:\Python38\lib\site-packages\xlrd\__init__.py in open_workbook(filename, logfile, verbosity, use_mmap, file_contents, encoding_override, formatting_info, on_demand, ragged_rows, ignore_workbook_corruption)
      168     # files that xlrd can parse don't start with the expected signature.
      169     if file_format and file_format != 'xls':
  --&gt; 170         raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
      171 
      172     bk = open_workbook_xls(
  
  XLRDError: Excel xlsx file; not supported
  </code></pre>
  <p>What is wrong?</p>