jina-ai / dalle-flow

🌊 A Human-in-the-Loop workflow for creating HD images from text
grpcs://dalle-flow.dev.jina.ai
2.83k stars 209 forks source link

facing issues while running it on my ssh server #153

Open rajpratyush opened 1 year ago

rajpratyush commented 1 year ago

Hi, all could you please help me with this issue `dalle/rep-0@1464602 ImportError('can not import [03/22/23 06:03:03] module from
/home/pranoy/dalle/dalle-flow/executors/dalle/execut…
during <class
'jina.serve.runtimes.worker.WorkerRuntime'>
initialization
add "--quiet-error" to suppress the exception
details
Traceback (most recent call last):
File
"/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…
line 128, in _path_import
spec.loader.exec_module(module)
File "", line
883, in exec_module
File "", line 241, in
_call_with_frames_removed
File
"/home/pranoy/dalle/dalle-flow/executors/dalle/execu…
line 1, in
from .dalle import DalleGenerator
File
"/home/pranoy/dalle/dalle-flow/executors/dalle/execu…
line 7, in
from . import dm_helper
File
"/home/pranoy/dalle/dalle-flow/executors/dalle/execu…
line 5, in
import jax
File
"/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…
line 35, in
from jax import config as _config_module
File
"/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…
line 17, in
from jax._src.config import config # noqa: F401
File
"/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…
line 27, in
from jax._src import lib
File
"/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…
line 74, in
version = check_jaxlib_version(
File
"/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…
line 69, in check_jaxlib_version
raise RuntimeError(msg)
RuntimeError: jaxlib version 0.4.6 is newer than and
incompatible with jax version 0.3.25. Please update
your jax and/or jaxlib packages.

   The above exception was the direct cause of the                          
   following exception:                                                     

   Traceback (most recent call last):                                       
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 79, in run                                                          
       runtime = runtime_cls(                                               
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 41, in __init__                                                     
       super().__init__(args, **kwargs)                                     
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 78, in __init__                                                     
       self._loop.run_until_complete(self.async_setup())                    
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/asy…                    
   line 641, in run_until_complete                                          
       return future.result()                                               
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 106, in async_setup                                                 
       self._request_handler = WorkerRequestHandler(                        
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 53, in __init__                                                     
       self._load_executor(                                                 
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 203, in _load_executor                                              
       self._executor: BaseExecutor =                                       
   BaseExecutor.load_config(                                                
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 742, in load_config                                                 
       load_py_modules(                                                     
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 285, in load_py_modules                                             
       PathImporter.add_modules(*mod)                                       
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 161, in add_modules                                                 [](url)
       _path_import(complete_path(m))                                       
     File                                                                   
   "/home/pranoy/anaconda3/envs/jina/lib/python3.10/sit…                    
   line 130, in _path_import                                                
       raise ImportError(f'can not import module from                       
   {absolute_path}') from ex                                                
   ImportError: can not import module from                                  
   /home/pranoy/dalle/dalle-flow/executors/dalle/execut…                    

DEBUG dalle/rep-0@1464602 process terminated ` Screenshot from 2023-03-22 11-39-10 Screenshot from 2023-03-22 11-38-46 Screenshot from 2023-03-22 11-38-38

rajpratyush commented 1 year ago

first of all i am using an ssh server with cuda version 10.1 running on it and ubuntu 20.04. certain fix are available for this first of all run this command

ps axf | grep docker | grep -v grep | awk '{print "kill -9 " $1}' | sudo sh

and then run sudo systemctl start docker

to run docker

and to check whether docker is running or not use the command systemctl status docker

also there are multiple dependency conflicts arising like jax and jaxlib versions should be fixed with 0.3.25 and transformers models should be fixed at 4.25.1