Skip to content
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

Error: 'ConfigParser' object has no attribute '_knobs' #2

Open
Mingowzm opened this issue Oct 22, 2023 · 0 comments
Open

Error: 'ConfigParser' object has no attribute '_knobs' #2

Mingowzm opened this issue Oct 22, 2023 · 0 comments

Comments

@Mingowzm
Copy link

Hi! I tried to recreate the experiments and found this error:

Traceback (most recent call last):
File "train.py", line 160, in
tuner.tune()
File "/home/mingo/Desktop/KnobsTuningEA-master/DB/lib/python3.7/site-packages/autotune/tuner.py", line 110, in tune
self.tune_lhs()
File "/home/mingo/Desktop/KnobsTuningEA-master/DB/lib/python3.7/site-packages/autotune/tuner.py", line 303, in tune_lhs
metrics, internal_metrics, resource = self.env.step_GP(knobs)
File "/home/mingo/Desktop/KnobsTuningEA-master/DB/lib/python3.7/site-packages/autotune/dbenv.py", line 842, in step_GP
flag = self.apply_knobs(knobs)
File "/home/mingo/Desktop/KnobsTuningEA-master/DB/lib/python3.7/site-packages/autotune/dbenv.py", line 179, in apply_knobs
knobs_rdsL = self._gen_config_file(knobs)
File "/home/mingo/Desktop/KnobsTuningEA-master/DB/lib/python3.7/site-packages/autotune/dbenv.py", line 551, in _gen_config_file
cnf_parser.set(key, knobs[key])
File "/home/mingo/Desktop/KnobsTuningEA-master/DB/lib/python3.7/site-packages/autotune/utils/parser.py", line 57, in set
self._knobs[k] = v
AttributeError: 'ConfigParser' object has no attribute '_knobs'

I can not figure out what is going on since the _knobs has been defined in init. Could anyone kindly point out why this happened? I really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant