New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConfigParser.getint failure on 2.3.3 #39723
Comments
It fails with this traceback:
jarek:~/projekty/jpawrk/trunk$ ./jpa.py
Traceback (most recent call last):
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_mainwindow.py",
line 328, in OnMessageEdit
self.cfg)
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_msgeditwindow.py",
line 35, in editMessage
dlg = MsgEditDlg(tmp, config)
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_msgeditwindow.py",
line 69, in __init__
self.__setProperties(config)
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_msgeditwindow.py",
line 76, in __setProperties
winSize = cfg.getWindowSize('msgedit')
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_cfg.py", line
66, in getWindowSize
return (self.cp.getint(windowName, 'width'),
File "/usr/lib/python2.3/ConfigParser.py", line 315,
in getint
return self._get(section, int, option)
File "/usr/lib/python2.3/ConfigParser.py", line 312,
in _get
return conv(self.get(section, option))
File "/usr/lib/python2.3/ConfigParser.py", line 518,
in get
return self._interpolate(section, option, value, d)
File "/usr/lib/python2.3/ConfigParser.py", line 557,
in _interpolate
if value.find("%(") != -1:
AttributeError: 'int' object has no attribute 'find' The offending line in ConfigParser.py is line 553 which |
Logged In: YES Are you passing non-string values to the .set() method? The The script being run in the traceback you show was not The documentation for the .set() method has been found If you were *not* passing a non-integer as the value |
Logged In: YES Thanks for clarification. And yes, the value passed to |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: