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

UnboundLocalError: local variable 'db' referenced before assignment #42

Closed
tstupka opened this issue Jan 13, 2022 · 1 comment · Fixed by #56
Closed

UnboundLocalError: local variable 'db' referenced before assignment #42

tstupka opened this issue Jan 13, 2022 · 1 comment · Fixed by #56

Comments

@tstupka
Copy link

tstupka commented Jan 13, 2022

Traceback (most recent call last):
File "/usr/local/bin/dsptoolkit", line 29, in
cmdline.main()
File "/usr/local/lib/python3.7/dist-packages/hifiberrydsp/dsptoolkit.py", line 1021, in main
self.command_mapcmd
File "/usr/local/lib/python3.7/dist-packages/hifiberrydsp/dsptoolkit.py", line 653, in cmd_set_rew_filters_both
self.set_iir_filters(mode=MODE_BOTH, format=REW)
File "/usr/local/lib/python3.7/dist-packages/hifiberrydsp/dsptoolkit.py", line 595, in set_iir_filters
self.dsptk.get_samplerate())
File "/usr/local/lib/python3.7/dist-packages/hifiberrydsp/parser/rew.py", line 112, in readfilters
logging.info("Filter NO fc=%s", fc, db)
UnboundLocalError: local variable 'db' referenced before assignment

@tstupka
Copy link
Author

tstupka commented Jan 13, 2022

also note the gaion typo in REWParser.readfilters: ... /logging.info("Filter EQ fc=%s, q=%s, gaion=%s, fs=%s

@ssalonen ssalonen mentioned this issue Mar 2, 2023
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

Successfully merging a pull request may close this issue.

1 participant