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

after pulling the latest code today and reinstalling i am getting this error when i am running python3 webui.py -enablemps (using M2) #76

Open
rohitsainier opened this issue Sep 16, 2023 · 0 comments

Comments

@rohitsainier
Copy link

rohitsaini@P443QH2F1Q bark-gui % python3 webui.py -enablemps
Traceback (most recent call last):
File "/Users/rohitsaini/Documents/Robot/AI/bark-gui/webui.py", line 10, in
import torch
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/init.py", line 1239, in
from torch import onnx as onnx
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/onnx/init.py", line 12, in
from . import ( # usort:skip. Keep the order instead of sorting lexicographically
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/onnx/symbolic_caffe2.py", line 4, in
from torch.onnx import symbolic_helper, symbolic_opset9 as opset9
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/onnx/symbolic_helper.py", line 611, in
def _onnx_unsupported(op_name: str, value: Optional[_C.Value] = None) -> NoReturn:
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/decorcache.py", line 77, in beartype
return beartype_object(obj, conf)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/decorcore.py", line 98, in beartype_object
_beartype_object_fatal(obj, conf=conf, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/decorcore.py", line 147, in _beartype_object_fatal
beartype_nontype(obj, **kwargs) # type: ignore[return-value]
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/_decormore.py", line 178, in beartype_nontype
return beartype_func(obj, **kwargs) # type: ignore[return-value]
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/_decormore.py", line 242, in beartype_func
func_wrapper_code = generate_code(bear_call)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/wrap/wrapmain.py", line 187, in generate_code
code_check_return = _code_check_return(bear_call)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/wrap/wrapmain.py", line 669, in _code_check_return
reraise_exception_placeholder(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_util/error/utilerror.py", line 214, in reraise_exception_placeholder
raise exception.with_traceback(exception.traceback)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/wrap/wrapmain.py", line 618, in _code_check_return
) = make_func_wrapper_code(hint_sane, bear_call.conf, cls_stack) # type: ignore[assignment]
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_util/cache/utilcachecall.py", line 259, in _callable_cached
raise exception
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_util/cache/utilcachecall.py", line 251, in _callable_cached
return_value = args_flat_to_return_value[args_flat] = func(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_decor/wrap/_wrapcode.py", line 86, in make_func_wrapper_code
) = make_check_expr(hint, conf, cls_stack)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_util/cache/utilcachecall.py", line 259, in _callable_cached
raise exception
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_util/cache/utilcachecall.py", line 251, in _callable_cached
return_value = args_flat_to_return_value[args_flat] = func(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_check/code/codemake.py", line 706, in make_check_expr
die_if_hint_pep_unsupported(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/beartype/_util/hint/pep/utilpeptest.py", line 205, in die_if_hint_pep_unsupported
raise BeartypeDecorHintPep484Exception(
beartype.roar.BeartypeDecorHintPep484Exception: Function torch.onnx.symbolic_helper._onnx_unsupported() return PEP 484 type hint "typing.NoReturn" invalid in this type hint context (i.e., "typing.NoReturn" valid only as non-nested return annotation).

@C0untFloyd

@rohitsainier rohitsainier changed the title after pulling the code and reinstalling i am getting this error when i am running python3 webui.py -enablemps after pulling the latest code today and reinstalling i am getting this error when i am running python3 webui.py -enablemps (using M2) Sep 16, 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

No branches or pull requests

1 participant