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

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' #71

Open
Guilded-Aurora opened this issue May 9, 2024 · 1 comment

Comments

@Guilded-Aurora
Copy link

Traceback (most recent call last):
File "#Redacted#\xtts-webui\app.py", line 67, in
from xtts_webui import demo
File "#Redacted#\xtts-webui\xtts_webui.py", line 97, in
import modules
File "#Redacted#\xtts-webui\modules_init_.py", line 1, in
import modules.text2voice
File "#Redacted#\xtts-webui\modules\text2voice_init_.py", line 1, in
import modules.text2voice.generation
File "#Redacted#\xtts-webui\modules\text2voice\generation.py", line 7, in
from scripts.funcs import improve_and_convert_audio, resemble_enhance_audio, str_to_list
File "#Redacted#\xtts-webui\scripts\funcs.py", line 4, in
from scripts.resemble_enhance.enhancer.inference import denoise, enhance
File "#Redacted#\xtts-webui\scripts\resemble_enhance\enhancer\inference.py", line 6, in
from ..inference import inference
File "#Redacted#\xtts-webui\scripts\resemble_enhance\inference.py", line 12, in
from .hparams import HParams
File "#Redacted#\xtts-webui\scripts\resemble_enhance\hparams.py", line 36, in
class HParams:
File "#Redacted#\xtts-webui\scripts\resemble_enhance\hparams.py", line 105, in HParams
def load(cls, run_dir, yaml: Path | None = None):
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

I also had to re-install modules like requests and gradio manually, but after all the reinstalls I got to this.

@MackNcD
Copy link

MackNcD commented May 10, 2024

Having a very similar issue, I wonder if a module that operated on this particular syntax was changed? It can't be python, can it... Literally a day prior it was working on both 3.10 and 3.11

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

2 participants