This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年03月22日 13:40 by solj, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg156559 - (view) | Author: Sol Jerome (solj) | Date: 2012年03月22日 13:40 | |
This seems like it could be user error, but the traceback doesn't provide useful information on where the problem could be. The relevant class is at the following URL. https://github.com/Bcfg2/bcfg2/blob/master/src/lib/Server/Plugin.py#L1180 Traceback (most recent call last): File "/root/bcfg2/Bcfg2/Server/FileMonitor.py", line 64, in handle_one_event self.handles[event.requestID].HandleEvent(event) File "/root/bcfg2/Bcfg2/Server/Plugins/Packages/PackagesSources.py", line 52, in HandleEvent self.pkg_obj.Reload() File "/root/bcfg2/Bcfg2/Server/Plugins/Packages/__init__.py", line 193, in Reload self._load_config() File "/root/bcfg2/Bcfg2/Server/Plugins/Packages/__init__.py", line 203, in _load_config self._load_sources(force_update) File "/root/bcfg2/Bcfg2/Server/Plugins/Packages/__init__.py", line 221, in _load_sources if not self.disableMetaData: File "/root/bcfg2/Bcfg2/Server/Plugins/Packages/__init__.py", line 65, in disableMetaData return not self.config.getboolean("global", "resolver") File "/root/bcfg2/Bcfg2/Server/Plugin.py", line 1216, in getboolean section, option) File "/usr/lib64/python3.2/configparser.py", line 819, in getboolean raw=raw, vars=vars) File "/usr/lib64/python3.2/configparser.py", line 793, in _get return conv(self.get(section, option, **kwargs)) TypeError: get() got an unexpected keyword argument 'raw' Please let me know if more information is required. |
|||
| msg156562 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2012年03月22日 13:56 | |
Looking at the traceback and your code, configparser is calling 'get', expecting to call its own get method (that takes a 'raw' keyword), but instead is calling the get on your subclass, which doesn't take a 'raw' keyword. Since this appears to be example code, probably what you should do to fix this is remove those get methods. Your 'default' is spelled 'fallback' in Python3.2 configparser and does the same thing your code does. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:28 | admin | set | github: 58596 |
| 2012年03月22日 13:56:25 | r.david.murray | set | status: open -> closed nosy: + r.david.murray, lukasz.langa messages: + msg156562 type: crash -> behavior resolution: not a bug |
| 2012年03月22日 13:40:32 | solj | create | |