Cheers,
Eric
Le 25/02/11 11:30, neocortex a �crit :
import openpyxl
print openpyxl.__version__
Hi,
it sounds like a bug we had in a previous version. Are you using the latest one (tip from bitbucket) ?
Can you do:
import openpyxl
print openpyxl.__version__
and give me the output of this ?
Next, the current proper way of saving a file is :
wb = load_workbook('filename.xlsx')
wb.save('newfilename.xlsx')
On 01/03/11 13:46, Eric wrote:
> Damn, 1.1.0 was released somehow 1 year ago ! :)
> Documentation came out much later, no wonder you can't use openpyxl
> properly with that :)
Sorry! I had such a confidence for Debian!
> Try to get it from bitbucket instead
> (https://bitbucket.org/ericgazoni/openpyxl/overview).
I looked that, but installing via ActivePython seems easier, and it
should give the same results.
> The imports are like described in the doc though:
> from openpyxl.reader.excel import load_workbook
And for writing:
from openpyxl.writer.excel import save_workbook
Best,
Petar
-- ##################################################################################### Petar Milin Department of Psychology, University of Novi Sad, Serbia & Laboratory for Experimental Psychology, University of Belgrade, Serbia Address: Dr Zorana Dindica 2, Novi Sad 21000, Serbia E-mail: pmilin <AT> ff.uns.ac.rs Tel.&Fax: +381 21 458 948 Official homepage (in Serbian): http://www.ff.uns.ac.rs/fakultet/ljudi/fakultet_odseci_psihologija_petar_milin.html Personal homepage: http://sites.google.com/site/pmilin/ #####################################################################################
Traceback (most recent call last):