MOV-AI / backend

Backend web server and rest api for movai
Other
2 stars 2 forks source link

Weird circle-dependencies to install backend 1.0.0.23 #47

Open hexarotor6 opened 2 years ago

hexarotor6 commented 2 years ago

I had to install the following components in this order, till I was able to finally install backend:

pip install movai_core_shared-1.0.0.9-py3-none-any.whl 
pip install dal-1.0.0.26-py3-none-any.whl 
pip install gd_node-1.0.0.8-py3-none-any.whl

pip install movai_core_shared-1.0.0.10-py3-none-any.whl 
pip install dal-1.0.0.29-py3-none-any.whl 
pip install backend-1.0.0.23-py3-none-any.whl 

Maybe make dependencies versions to be >= instead of == ?

Mograbi commented 2 years ago

@hexarotor6 movai_core_shared does not depend on dal or backend (current version shared==1.0.0.10) dal depends on movai_core_shared (current version dal==1.0.0.29) backend depends on dal and gd_node (current version backend==1.0.0.23) gd_node depends on dal (current version gd_node 1.0.0.9)

backend ------> |- gd_node ---> dal -------> movai_core_shared
                |- dal

so in order to install backend, you only need to install backend and the dependencies should be resolved automatically. hence, installing backend should install gd_node, dal and movai_core_shared

no need to install shared, dal and gd_node manually.

hexarotor6 commented 2 years ago

what is the suggested way of installing backend such that dependencies are installed automatically?

hexarotor6 commented 2 years ago

Regarding your answer: movai_core 1.0.0.10 installs fine . does not depend on dal/gd_node . Correct. dal 1.0.0.29 installs ok after installing movai_core 1.0.0.10 gd_node 1.0.0.9 installs ok after installing dal 1.0.0.29 backend 1.0.0.23 does not install ok . it needs gd_node 1.0.0.8

now 1) backend 1.0.0.23 needs gd_node 1.0.0.8, that needs dal 1.0.0.26, that needs movai_core 1.0.0.9 2) backend 1.0.0.23 needs dal 1.0.0.29 per se.

So in conclusion backend 1.0.0.23 needs both dal 1.0.0.29 AND 1.0.0.26 installed.

hexarotor6 commented 2 years ago
backend 1.0.0.23 ------> |- gd_node 1.0.0.8 ---> dal 1.0.0.26 -------> movai_core_shared 1.0.0.9
                         |- dal 1.0.0.29 ---> movai_core_shared 1.0.0.10
Mograbi commented 2 years ago

ok, you are right backend should require gd_node 1.0.0.9 and not 1.0.0.8, I will fix that regarding installing dependencies I think @AlexFernandes-MOVAI can help more here.

hexarotor6 commented 2 years ago

that's great! the readme can then be updated, accordingly !