[pdfgui bug] unable to save

7 views
Skip to first unread message

dif...@diffpy.org

unread,
Jul 16, 2009, 2:00:59 PM7/16/09
to diffp...@googlegroups.com
reporter: dan...@ursa.ifsc.usp.br

summary: unable to save

description: unable to save work/project

component: pdfgui

version: 1.0-r3067-20090410

traceback:
Traceback (most recent call last):
File "c:\diffpy\python25\lib\site-packages\diffpy.pdfgui-1.0_r3067_20090410-py2.5.egg\diffpy\pdfgui\gui\errorwrapper.py", line 60, in _f
return func(*args, **kwargs)
File "c:\diffpy\python25\lib\site-packages\diffpy.pdfgui-1.0_r3067_20090410-py2.5.egg\diffpy\pdfgui\gui\mainframe.py", line 2176, in onSave
self.control.save(self.fullpath)
File "c:\diffpy\python25\lib\site-packages\diffpy.pdfgui-1.0_r3067_20090410-py2.5.egg\diffpy\pdfgui\control\pdfguicontrol.py", line 507, in save
self.projfile = projfile.encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 29: ordinal not in range(128)

Pavol Juhas

unread,
Jul 16, 2009, 5:04:09 PM7/16/09
to diffp...@googlegroups.com, dan...@ursa.ifsc.usp.br
On Thu, Jul 16, 2009 at 02:00:59PM -0400, dif...@diffpy.org wrote:
> Traceback (most recent call last):
...

> File "c:\diffpy\python25\lib\site-packages\diffpy.pdfgui-1.0_r3067_20090410-py2.5.egg\diffpy\pdfgui\control\pdfguicontrol.py", line 507, in save
> self.projfile = projfile.encode('ascii')
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 29: ordinal not in range(128)

Hello,

Thanks for the bug report. This problem happens when saving a
file with accented characters in its name. I will check if
we can support such filenames. For now, please use file
names that only have plain ASCII characters. Thank you,

Pavol

--
Dr. Pavol Juhas
Applied Physics & Applied Mathematics
Columbia University
Room 200 Mudd Building, MC 4701
500 West 120th Street
New York, NY 10027

Reply all
Reply to author
Forward
0 new messages