My small python script contains the following statement:
workbook = load_workbook(excelFile, data_only=True)
This statement results following error when executed in ubuntu 14.04:
TypeError: load_workbook() got an unexpected keyword argument 'data_only'
I have to do workbook = load_workbook(excelFile, True) instead.
Here are my openpyxl and python versions:
guest@ca-ivs2:~$ dpkg -s python-openpyxl
Package: python-openpyxl
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 499
Maintainer: Ubuntu Developers <
ubuntu-dev...@lists.ubuntu.com>
Architecture: all
Source: openpyxl
Version: 1.7.0+ds1-1
Depends: python (>= 2.6), python-support (>= 0.90.0)
Recommends: python-nose, python-pil, python-imaging
Description: module to read/write OpenXML xlsx/xlsm files
Openpyxl is a pure Python module to read/write Excel 2007 (OpenXML)
xlsx/xlsm files.
Original-Maintainer: NeuroDebian Team <
te...@neuro.debian.net>
Homepage:
http://bitbucket.org/ericgazoni/openpyxl/guest@ca-ivs2:~$ python --version
Python 2.7.6
Interestingly, I have another ubuntu 14.04 machine with same version of python and openpyxl installed, and the statement works fine.
Can someone tell me what might be the reason or what should I check?
Thanks!