On Thu, May 22, 2014 at 4:43 PM, Peter Dow <petercdow@xxxxxxxxx> wrote:
I have some time on my hands and am trying to set up
Python and XlsxWriter on an IBM i. Keep in mind that I
have minimal Linux knowledge (i.e. don't laugh too hard).

No problem. Actually one of the beauties of iSeriesPython (the one
you downloaded) is that you never have to touch, worry about, or have
any knowledge of PASE, AIX, Unix, or Linux.

John Yeung mentioned XlsxWriter. I want to be able to read as
well as write, so I got OpenPyXL (openpyxl-2.0.3.tar.gz) instead

OK, you're doing great so far. The problem is that pip, easy_install,
and even the barest-of-bare-bones setup.py scripts that come with
standard Python packages don't work on the i. Certainly not with
iSeriesPython. (Maybe the situation is different in the PASE world,
but I don't use PASE.)

I wrote a little article on how to "install" pure-Python packages in
the blog section of the iSeriesPython site:


Essentially, because the i is such a weird beast, we have to resort to
just copying the package to the right place in the IFS
('/python27/site-packages' if you followed the readme instructions
exactly). Which isn't hard, particularly if you have a decent FTP
client such as FileZilla.

If you already read the article and are still having trouble, let me know.

Incidentally, in that December midrange-l post you mentioned, I said I
would be posting cpytoxlsx.py (using XlsxWriter), and I did. Both it
and cpytoxlsf.py (using xlwt) are at


I don't personally use OpenPyXL much, but it is certainly a fine
choice. It does some things that even the combination of xlrd (for
reading) and XlsxWriter (for writing) don't do.

John Y.

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page