PDFgui refuses to close with %s as viewer argument type

15 views
Skip to first unread message

Daniel Shoemaker

unread,
Nov 23, 2009, 1:48:26 PM11/23/09
to diffpy-dev
Hi all, thanks for all of your work so far! I'm running Ubuntu 9.10
(Karmic) and everything works great, but I ran into a snag when PDFgui
wouldn't close, either by the close button or ctrl-Q. I got this
error:

Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/
diffpy.pdfgui-1.0_r3067_20090410-py2.6.egg/diffpy/pdfgui/gui/
errorwrapper.py", line 60, in _f
return func(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/
diffpy.pdfgui-1.0_r3067_20090410-py2.6.egg/diffpy/pdfgui/gui/
mainframe.py", line 2217, in onQuit
self.updateConfiguration()
File "/usr/local/lib/python2.6/dist-packages/
diffpy.pdfgui-1.0_r3067_20090410-py2.6.egg/diffpy/pdfgui/gui/
errorwrapper.py", line 60, in _f
return func(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/
diffpy.pdfgui-1.0_r3067_20090410-py2.6.egg/diffpy/pdfgui/gui/
mainframe.py", line 992, in updateConfiguration
self.cP.set("STRUCTUREVIEWER", key, value)
File "/usr/lib/python2.6/ConfigParser.py", line 668, in set
"position %d" % (value, percent_index))
ValueError: invalid interpolation syntax in '%s' at position 0


It's a nuisance since it would not save any preferences or recent
files, and I would have to kill the process. Changing the argument
string from %s to "%s" fixed it, and still works for viewing in VESTA.

Pavol Juhas

unread,
Nov 23, 2009, 5:42:09 PM11/23/09
to Daniel Shoemaker, diffpy-dev
Hi Daniel,

This is a bug in loading the configuration file ~/.pdfgui.cfg,
which bites for certain values of structure viewer "argument string".
I have uploaded a fixed package (version 1.0-r3509) to
http://diffpy.org/packages/. You can upgrade your PDFgui
installation by running "easy_install -U diffpy.pdfgui".

Hope this helps,

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