openpyxl: Gives error on load_workbook()
<p>The following code was executing fine, until I setup the development environment on a different computer. </p>

<pre><code>workbook_obj = load_workbook(filename=xl_file, data_only=True, use_iterators=True)
</code></pre>

<p>I get the following error: </p>

<pre><code>TypeError: load_workbook() got an unexpected keyword argument 'use_iterators'
</code></pre>

<p>A <code>pip freeze</code> command shows that I was using <code>openpyxl 2.3.5</code> previously when the code worked fine. My current version is <code>2.4.0</code>.</p>

<p>Is this a bug in <code>openpyxl</code>? </p>

<p>The <code>use_iterators</code> keyword <a href="https://openpyxl.readthedocs.io/en/default/changes.html?highlight=use_iterators#id14" rel="nofollow">was removed</a> since 2.4.0. Use <code>read_only=True</code> instead.</p>

python openpyxl