Hello,
That was because of the Greek letters. Mr Python for some reason decided
that rather than arbitrarily convert non-ascii characters he would just
throw an exception. So I've UTF-8 encoded the heading output. This will
export ok and will import ok into Excel but for this specific table most
of the headings end up looking like semi-gibberish, but you can relabel
them in Excel if need be.
Wayne
On Thu, 19 Mar 2009, Tozawa, Kaeko wrote:
> Hello,
>
> When I tried to export a table from Data Analysis function (click right mouse button -> export -> set file name -> save), I got only a very small file with one line and traceback below;
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/lib64/python2.5/lib-tk/Tkinter.py", line 1403, in __call__
> return self.func(*args)
> File "/ldata/prog/ccpnmr2/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr2.0/python/memops/gui/BasePopup.py", line 212, in ok
> File "/ldata/prog/ccpnmr2/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr2.0/python/memops/gui/TableExportPopup.py", line 174, in apply
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u0394' in position 0: ordinal not in range(128)
>
> Can I still export data in this way for using it in excel etc?
> Thank you for your help again.
>
> Kaeko
|