Cloud-CV / Fabrik

:factory: Collaboratively build, visualize, and design neural nets in browser
GNU General Public License v3.0
1.12k stars 235 forks source link

"docker-compose up --build" throws DistributionNotFound error #510

Open Debapriya-Tula opened 5 years ago

Debapriya-Tula commented 5 years ago

Traceback:

Traceback (most recent call last): File "/usr/bin/docker-compose", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2927, in @_call_aside File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2913, in _call_aside f(*args, **kwargs) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2940, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 635, in _build_master ws.require(requires) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 943, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 829, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'docker-compose==1.8.0' distribution was not found and is required by the application

LuckyPigeon commented 5 years ago

What's your docker-compose version?

Debapriya-Tula commented 5 years ago

1.8.0 build 94f7016.

As was asked to.

On Sun, Feb 3, 2019, 2:16 PM Pigeon notifications@github.com wrote:

What's your docker-compose version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Cloud-CV/Fabrik/issues/510#issuecomment-460033810, or mute the thread https://github.com/notifications/unsubscribe-auth/AhiMzhEC9dw25Y1Tt_sikvhWCNZhebbqks5vJqH8gaJpZM4aUt_B .

LuckyPigeon commented 5 years ago

Can your docker-compose run other docker-compose.yml?

Debapriya-Tula commented 5 years ago

It was able to run other .yml files. I tried installing docker-compose again. It did not pose the same error this time. But now I am facing a new error while running docker-compose up as was mentioned in the steps.

Starting fabrik_db_1    ... error
908faf63e45b8e07e6871e2724ab097183e4d5dbfbafa): Error starting userland proxy: listen tcp 0.0.0.0:6379: bind: address already in use
Recreating reactjs      ... done
ERROR: for fabrik_db_1  Cannot start service db: driver failed programming external connectivity on endpoint fabrik_db_1 (db2f8deb65ea53cb7f9396cb8a5adf3a1cce3630ea81d6316f7f8094dd0ab8c9): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use

ERROR: for redis  Cannot start service redis: driver failed programming external connectivity on endpoint fabrik_redis_1 (7012507ad4faefe9d4f908faf63e45b8e07e6871e2724ab097183e4d5dbfbafa): Error starting userland proxy: listen tcp 0.0.0.0:6379: bind: address already in use

ERROR: for db  Cannot start service db: driver failed programming external connectivity on endpoint fabrik_db_1 (db2f8deb65ea53cb7f9396cb8a5adf3a1cce3630ea81d6316f7f8094dd0ab8c9): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use
ERROR: Encountered errors while bringing up the project.

Sorry for closing the issue mistakenly.

diningPhilosopher64 commented 4 years ago

@Debapriya-Tula , looks like you have been running some other docker/ docker-compose command which is already using the ports (maybe cloudcv/EvalAI ? ). In my case I had been building both cloudcv/EvalAI and cloudcv/Fabrik simultaneously which led to the same error.

Stop other running docker containers and/ or docker-compose commands. That should fix it.

Another way would be to run "docker ps" and see which of the ports are already occupied by which containers and stop them by doing "docker container stop "