Skip to content

app.py Error, TypeError & ValueError #156

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

Open
MrB07 opened this issue Apr 10, 2025 · 3 comments
Open

app.py Error, TypeError & ValueError #156

MrB07 opened this issue Apr 10, 2025 · 3 comments

Comments

@MrB07
Copy link

MrB07 commented Apr 10, 2025

When I am trying to run the app.py file , I am getting ERROR: Exception in ASGI application & TypeError & ValueError.

This error occurred simultaneously with the running of app_vc.py and app_svc.py

(pytorch_gpu310_seedvc) E:\Seed-VC\seed-vc-main>python app.py
D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\torch\nn\utils\weight_norm.py:134: FutureWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
WeightNorm.apply(module, name, dim)
E:\Seed-VC\seed-vc-main\modules\commons.py:462: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state = torch.load(path, map_location="cpu")
Warning: Skipped loading some keys due to shape mismatch: {'estimator.input_pos', 'estimator.f0_embedder.weight'}
cfm loaded
length_regulator loaded
E:\Seed-VC\seed-vc-main\app.py:42: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
campplus_model.load_state_dict(torch.load(campplus_ckpt_path, map_location="cpu"))
D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\torch\nn\utils\weight_norm.py:134: FutureWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
WeightNorm.apply(module, name, dim)
Loading weights from nvidia/bigvgan_v2_22khz_80band_256x
E:\Seed-VC\seed-vc-main\modules\bigvgan\bigvgan.py:481: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
checkpoint_dict = torch.load(model_file, map_location=map_location)
Removing weight norm...
E:\Seed-VC\seed-vc-main\modules\commons.py:462: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state = torch.load(path, map_location="cpu")
Warning: Skipped loading some keys due to shape mismatch: {'estimator.conv2.bias', 'estimator.input_pos', 'estimator.t_embedder2.mlp.2.weight', 'estimator.t_embedder2.mlp.0.bias', 'estimator.t_embedder2.mlp.2.bias', 'estimator.conv2.weight', 'estimator.res_projection.bias', 'estimator.conv1.bias', 'estimator.res_projection.weight', 'estimator.conv1.weight', 'estimator.t_embedder2.mlp.0.weight'}
cfm loaded
length_regulator loaded
E:\Seed-VC\seed-vc-main\modules\rmvpe.py:514: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
ckpt = torch.load(model_path, map_location="cpu")
Loading weights from nvidia/bigvgan_v2_44khz_128band_512x
Removing weight norm...
Running on local URL: http://127.0.0.1:7860
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\analytics.py:106: UserWarning: IMPORTANT: You are using gradio version 4.44.0, however version 4.44.1 is available, please upgrade.

warnings.warn(
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
Traceback (most recent call last):
File "E:\Seed-VC\seed-vc-main\app.py", line 372, in
).launch()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2466, in launch
raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.

@Plachtaa
Copy link
Owner

Plachtaa commented Apr 11, 2025

Please try adding this at the beginning of app.py script:

import os
os.environ["no_proxy"] = "localhost,127.0.0.1,::1"

let me know if this works, thx

@MrB07
Copy link
Author

MrB07 commented Apr 15, 2025

I tried as you said, but unfortunately it dosen't work, the same Error occurs:

D:\anaconda3\envs\pytorch_gpu310_seedvc\python.exe E:/Seed-VC/seed-vc-main/app.py
D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\torch\nn\utils\weight_norm.py:134: FutureWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
WeightNorm.apply(module, name, dim)
E:\Seed-VC\seed-vc-main\modules\commons.py:462: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state = torch.load(path, map_location="cpu")
Warning: Skipped loading some keys due to shape mismatch: {'estimator.f0_embedder.weight', 'estimator.input_pos'}
cfm loaded
length_regulator loaded
E:\Seed-VC\seed-vc-main\app.py:44: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
campplus_model.load_state_dict(torch.load(campplus_ckpt_path, map_location="cpu"))
D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\torch\nn\utils\weight_norm.py:134: FutureWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
WeightNorm.apply(module, name, dim)
Loading weights from nvidia/bigvgan_v2_22khz_80band_256x
E:\Seed-VC\seed-vc-main\modules\bigvgan\bigvgan.py:481: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
checkpoint_dict = torch.load(model_file, map_location=map_location)
Removing weight norm...
E:\Seed-VC\seed-vc-main\modules\commons.py:462: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state = torch.load(path, map_location="cpu")
Warning: Skipped loading some keys due to shape mismatch: {'estimator.conv2.bias', 'estimator.res_projection.bias', 'estimator.t_embedder2.mlp.2.bias', 'estimator.res_projection.weight', 'estimator.conv1.weight', 'estimator.t_embedder2.mlp.0.bias', 'estimator.t_embedder2.mlp.0.weight', 'estimator.t_embedder2.mlp.2.weight', 'estimator.input_pos', 'estimator.conv1.bias', 'estimator.conv2.weight'}
cfm loaded
length_regulator loaded
E:\Seed-VC\seed-vc-main\modules\rmvpe.py:514: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
ckpt = torch.load(model_path, map_location="cpu")
Loading weights from nvidia/bigvgan_v2_44khz_128band_512x
Removing weight norm...
Running on local URL: http://127.0.0.1:7860
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\analytics.py:106: UserWarning: IMPORTANT: You are using gradio version 4.44.0, however version 4.44.1 is available, please upgrade.

warnings.warn(
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 431, in main
gradio_api_info = api_info(False)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
Traceback (most recent call last):
File "E:\Seed-VC\seed-vc-main\app.py", line 374, in
).launch()
File "D:\anaconda3\envs\pytorch_gpu310_seedvc\lib\site-packages\gradio\blocks.py", line 2466, in launch
raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.

@Plachtaa
Copy link
Owner

since I have no idea how your network environment is configured, you better search ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost. on the Internet for solution, I cannot help with this issue.

@Plachtaa Plachtaa reopened this Apr 15, 2025
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