bytedance / bytedance/MegaTTS3

Mac mini M2 macOS 15.3.2 下安装启动失败

Open
#45 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.1k
Forks
474
PR merge metrics
No merged PRs in 30d

Description

docker安装失败,Conda安装也失败
docker启动显示异常:
docker run -it -p 7929:7929 --gpus all -e CUDA_VISIBLE_DEVICES=0 megatts3:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]

Run 'docker run --help' for more information

使用CPU启动成功,运行异常:
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/pydantic/type_adapter.py", line 270, in _init_core_attrs
self.core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__')
File "/opt/conda/lib/python3.10/site-packages/pydantic/type_adapter.py", line 55, in _getattr_no_parents
raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/opt/conda/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
return await self.app(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/starlette/applications.py", line 112, in __call__
await self.middleware_stack(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__
raise exc
File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__
await self.app(scope, receive, _send)
File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/cors.py", line 93, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/cors.py", line 144, in simple_response
await self.app(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/opt/conda/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 714, in __call__
await self.middleware_stack(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 734, in app
await route.handle(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/opt/conda/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/opt/conda/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/opt/conda/lib/python3.10/site-packages/fastapi/routing.py", line 291, in app
solved_result = await solve_dependencies(
File "/opt/conda/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 666, in solve_dependencies
) = await request_body_to_args( # body_params checked above
File "/opt/conda/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 899, in request_body_to_args
fields_to_extract = get_cached_model_fields(first_field.type_)
File "/opt/conda/lib/python3.10/site-packages/fastapi/_compat.py", line 659, in get_cached_model_fields
return get_model_fields(model)
File "/opt/conda/lib/python3.10/site-packages/fastapi/_compat.py", line 285, in get_model_fields
return [
File "/opt/conda/lib/python3.10/site-packages/fastapi/_compat.py", line 286, in
ModelField(field_info=field_info, name=name)
File "", line 6, in __init__
File "/opt/conda/lib/python3.10/site-packages/fastapi/_compat.py", line 111, in __post_init__
self._type_adapter: TypeAdapter[Any] = TypeAdapter(
File "/opt/conda/lib/python3.10/site-packages/pydantic/type_adapter.py", line 227, in __init__
self._init_core_attrs(
File "/opt/conda/lib/python3.10/site-packages/pydantic/type_adapter.py", line 289, in _init_core_attrs
core_schema = schema_generator.generate_schema(self._type)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 699, in generate_schema
schema = self._generate_schema_inner(obj)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 961, in _generate_schema_inner
return self._annotated_schema(obj)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 2211, in _annotated_schema
schema = self._apply_annotations(source_type, annotations)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 2257, in _apply_annotations
schema = get_inner_schema(source_type)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_schema_generation_shared.py", line 83, in __call__
schema = self._handler(source_type)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 2333, in new_handler
schema = get_inner_schema(source)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_schema_generation_shared.py", line 83, in __call__
schema = self._handler(source_type)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 2239, in inner_handler
schema = self._generate_schema_inner(obj)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 982, in _generate_schema_inner
return self.match_type(obj)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1096, in match_type
return self._match_generic_type(obj, origin)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1119, in _match_generic_type
return self._union_schema(obj)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1407, in _union_schema
choices.append(self.generate_schema(arg))
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 699, in generate_schema
schema = self._generate_schema_inner(obj)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 982, in _generate_schema_inner
return self.match_type(obj)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 1100, in match_type
return self._unknown_type_schema(obj)
File "/opt/conda/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 628, in _unknown_type_schema
raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for . Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.

If you got this error by calling handler() within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema()` since we do not call `__get_pydantic_core_schema__` on `` otherwise to avoid infinite recursion.

For further information visit https://errors.pydantic.dev/2.11/u/schema-for-unknown-type

conda 安装 pip install -r requirements.txt
显示pynini安装异常,使用 pip install pynini==2.1.5 安装后执行 pip install -r requirements.txt 也无法成功

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with requirements.txt and the Docker run command on a Mac mini M2. Reproduce the pynini installation failure, the amd64/arm64 and GPU error, and the FastAPI/Pydantic traceback to determine which environment is supported. Done means installation and startup behavior are documented or corrected for the tested configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, fastapi, macos, python
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.