Closed PawKanarek closed 9 months ago
I looked into the codebase and looks like a simple import was missing: from typing import Union
.
https://github.com/gitmylo/audio-webui/assets/15096514/afd4d79b-6f5f-48f7-9122-61e16d60e0ed
With this additional line, the server starts successfully. I can open new PR with this change, but it's strange that I'm the only one experiencing this kind of error.
That's odd, Union indeed does not have any issues when being used in my code without the import.
Maybe there's a difference between python 3.10.8 (mine) and 3.10.13 (yours) Regardless, I will add the import.
Describe the bug When i try to build code from current master (sha: 4b54d93744e680a94bb0fda581f76fe5d28fc8a5) i got error:
To Reproduce
python main.py -sv -u 'user' -p 'pass'
NameError: name 'Union' is not defined
Expected behavior Builds without error