This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 138
lc-serve deploy local - Doesn't work on Windows 10 #135
Comments
This is not windows specific. I also have the same error using Error message:
Full error logai-service git:(main) ✗ lc-serve deploy local app
⠙ Waiting gateway... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/1 0:00:00INFO gateway/rep-0@49279 Registering HTTP route: ask [09/02/23 11:28:26]
ERROR gateway/rep-0@49279 AttributeError('__pydantic_parent_namespace__') during 'GatewayRuntime' initialization
add "--quiet-error" to suppress the exception details
Traceback (most recent call last):
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/orchestrate/pods/__init__.py", line 89, in run
runtime = AsyncNewLoopRuntime(
^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/serve/runtimes/asyncio.py", line 81, in __init__
self._loop.run_until_complete(self.async_setup())
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/nest_asyncio.py", line 99, in run_until_complete
return f.result()
^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/lib/python3.11/asyncio/futures.py", line 203, in result
raise self._exception.with_traceback(self._exception_tb)
File "/home/sina/.pyenv/versions/3.11.5/lib/python3.11/asyncio/tasks.py", line 267, in __step
result = coro.send(None)
^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/serve/runtimes/asyncio.py", line 257, in async_setup
await self.server.setup_server()
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/serve/runtimes/servers/http.py", line 119, in setup_server
_install_health_check(app, self.logger)
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/serve/runtimes/servers/http.py", line 200, in _install_health_check
from jina.serve.runtimes.gateway.models import JinaHealthModel
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/serve/runtimes/gateway/models.py", line 214, in <module>
protobuf_to_pydantic_model(proto)
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/serve/runtimes/gateway/models.py", line 173, in
protobuf_to_pydantic_model
field_type = protobuf_to_pydantic_model(f.message_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/serve/runtimes/gateway/models.py", line 173, in
protobuf_to_pydantic_model
field_type = protobuf_to_pydantic_model(f.message_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/serve/runtimes/gateway/models.py", line 207, in
protobuf_to_pydantic_model
model.update_forward_refs()
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/typing_extensions.py", line 2562, in wrapper
return __arg(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/pydantic/main.py", line 1211, in update_forward_refs
cls.model_rebuild(force=True)
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/pydantic/main.py", line 458, in model_rebuild
_model_construction.unpack_lenient_weakvaluedict(cls.__pydantic_parent_namespace__) or {}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 210, in __getattr__
raise AttributeError(item)
AttributeError: __pydantic_parent_namespace__
ERROR Flow@49194 Flow is aborted due to ['gateway'] can not be started. [09/02/23 11:28:26]
Traceback (most recent call last):
File "/home/sina/.pyenv/versions/ai-service/bin/lc-serve", line 8, in <module>
sys.exit(serve())
^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/lcserve/__main__.py", line 664, in local
serve_locally(module_str=module_str, fastapi_app_str=app, port=port, env=env)
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/lcserve/__main__.py", line 57, in serve_locally
with Flow.load_config(f_yaml) as f:
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/orchestrate/orchestrator.py", line 14, in __enter__
return self.start()
^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/orchestrate/flow/builder.py", line 33, in arg_wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/orchestrate/flow/base.py", line 1832, in start
self._wait_until_all_ready()
File "/home/sina/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/jina/orchestrate/flow/base.py", line 1975, in _wait_until_all_ready
raise RuntimeFailToStart
jina.excepts.RuntimeFailToStart |
I am also having the same error with 3.8.18 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've tried deploying an api.py app on Windows 10 and keep getting the same error. Script works fine on WSL through PowerShell.
Here are my logs:
The text was updated successfully, but these errors were encountered: