jina-ai / jina-hubble-sdk

Python API for authentication, resource management with Hubble
Apache License 2.0
19 stars 2 forks source link

Failed on building Docker image. #148

Closed MandilKarki closed 1 year ago

MandilKarki commented 1 year ago

jina cloud deploy ./ [01/09/23 19:16:46] INFO envfile .env not found. normalize.py:127 INFO Loading Flow YAML flow.yml ... normalize.py:146 INFO Pushing following Executors to hubble executor1... normalize.py:247

Failed on building Docker image. Potential solutions:

Please report this session_id: [yellow bold]11d534d7-907c-11ed-ac19-744ca175a9fc[/] to https://github.com/jina-ai/jina-hubble-sdk/issues Traceback (most recent call last):
File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Mandil\co-op\biomedicine-nlp\venv\Scripts\jina.exe__main.py", line 7, in File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jinacli__init__.py", line 143, in main getattr(api, args.cli.replace('-', ''))(args) File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jina_cli\api.py", line 233, in cloud getattr(api, args.jccli.replace('-', ''))(args) File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\api.py", line 20, in wrapper return asyncio.run(f(*args, **kwargs)) File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\asyncio\runners.py", line 43, in run return loop.run_until_complete(main) File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 612, in run_until_complete return future.result() File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\api.py", line 27, in deploy return await CloudFlow(path=args.path).aenter() File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\flow.py", line 278, in aenter await self._deploy() File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\flow.py", line 115, in _deploy **await self._get_post_params(), File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\flow.py", line 99, in _get_post_params _flow_path = flow_normalize(_flow_path) File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\normalize.py", line 307, in flow_normalize push_executors_to_hubble(executors, tag, secret, verbose) File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\normalize.py", line 255, in push_executors_tohubble = _fut.result() File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\concurrent\futures_base.py", line 432, in result return self.get_result() File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\concurrent\futures_base.py", line 388, in get_result raise self._exception File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\normalize.py", line 115, in hubble_push executor_id = HubIO(args).push().get('id') File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\hubble\init__.py", line 48, in arg_wrapper return func(*args, **kwargs) File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\hubble\executor\hubio.py", line 593, in push raise e File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\hubble\executor\hubio.py", line 576, in push image = self._send_push_request( File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\hubble\executor\hubio.py", line 398, in _send_push_request raise Exception( Exception: Failed on building Docker image. Potential solutions:

nomagick commented 1 year ago

Hi, the error was caused by ERROR: Failed building wheel for pytorch You can push your executor to hub first by runing jina hub push --verbose <path to your executor> before trying to deploy your flow directly.

Could you provide a Dockerfile in your executor? Or change the pytorch version in your requrements.txt so it does not need building during pip install?

47krishnaveersingh commented 1 year ago

@MandilKarki I am facing the same error i want to upload it to jcloud but cant and the above comment is teeling to push in hub i dont wanna do that any solution pls?

MandilKarki commented 1 year ago

@MandilKarki I am facing the same error i want to upload it to jcloud but cant and the above comment is teeling to push in hub i dont wanna do that any solution pls?

My issue was with the version of pytorch, I changed the requirements.txt file and it worked. You can change files in requirements.txt and try again, let me know if that helps.

47krishnaveersingh commented 1 year ago

👍worked

Jake-00 commented 1 year ago

hi @nomagick When following the instructions of create-first-project,I also meet the same error, my requirements.txt is below, but I dont konw how to fix it

jina==3.13.2
numpy==1.24.2
torch==1.13.1