harbor run -t openthoughts/tasktrove-swe-rebench-patched-oracle-swe_rebench-01985harbor download openthoughts/tasktrove-swe-rebench-patched-oracle-swe_rebench-01985cd /testbed
git clone https://github.com/datafolklabs/cement.git . && git checkout 775fc4d933a4674f131418671c87f79944778e13
apt-get update
apt-get install -y gcc
pip install -r /setup_files/requirements.txt
pip install -e .[dev]
pip install pytest
Configparser 'getboolean' exception System Information
Steps to Reproduce (Bugs Only)
Create a boolean setting: configparser only supports string values so this has to be a string representation of a boolean. According to configparser, this includes
'yes'/'no', 'on'/'off', 'true'/'false' and '1'/'0'
Access this value using the getboolean method recommended by configparser. This should automatically convert the string value to a bool. Example usage:
if self.app.config['hydra'].getboolean('validator_metrics'):
Exception:
File "/home/adam/.pyenv/versions/hydra/bin/hydra", line 11, in <module>
load_entry_point('hydra', 'console_scripts', 'hydra')()
File "/home/adam/PycharmProjects/hydra/hydra/main.py", line 152, in main
app.run()
File "/home/adam/.pyenv/versions/hydra/lib/python3.6/site-packages/cement-3.0.0-py3.6.egg/cement/core/foundation.py", line 916, in run
return_val = self.controller._dispatch()
File "/home/adam/.pyenv/versions/hydra/lib/python3.6/site-packages/cement-3.0.0-py3.6.egg/cement/ext/ext_argparse.py", line 806, in _dispatch
return func()
File "/home/adam/PycharmProjects/hydra/hydra/controllers/client.py", line 621, in enable_metrics
self.app.client.configure_metrics()
File "/home/adam/PycharmProjects/hydra/hydra/helpers/client.py", line 275, in configure_metrics
if self.app.config['hydra'].getboolean('validator_metrics'):
File "/home/adam/.pyenv/versions/3.6.8/lib/python3.6/configparser.py", line 1283, in get
fallback=fallback, **kwargs)
File "/home/adam/.pyenv/versions/3.6.8/lib/python3.6/configparser.py", line 829, in getboolean
raw=raw, vars=vars, fallback=fallback, **kwargs)
File "/home/adam/.pyenv/versions/3.6.8/lib/python3.6/configparser.py", line 809, in _get_conv
**kwargs)
File "/home/adam/.pyenv/versions/3.6.8/lib/python3.6/configparser.py", line 803, in _get
return conv(self.get(section, option, **kwargs))
TypeError: get() got an unexpected keyword argument 'raw'
I am thinking this is due to the fact that cement does not pass kwargs to configparser's wrapped get method. I am going to attempt making a PR to address this issue.