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 'pitch' referenced before assignment #13

Closed
Summerxu86 opened this issue May 14, 2022 · 0 comments
Closed

Comments

@Summerxu86
Copy link

Hi, when I run preprocessor.py, I have this problem:
/preprocessor.py", line 92, in build_from_path
if len(pitch) > 0:
UnboundLocalError: local variable 'pitch' referenced before assignment
When I try to add a global declaration to the function, it shows
NameError: name 'pitch' is not defined
How should this be resolved? I would be grateful if I could get your guidance soon.

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