Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Debapriya-Tula opened this issue Jan 27, 2019 · 5 comments
Open

Comments

@Debapriya-Tula
Copy link

Debapriya-Tula commented Jan 27, 2019

  • the expected behaviour
    Command should have run with no errors

  • the observed behaviour
    Throws DistributionNotFound error

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

  • which operating system and/or browser you're using, if relevant
    OS : Ubuntu 16.04
    Browser: Chromium
@LuckyPigeon
Copy link

What's your docker-compose version?

@Debapriya-Tula
Copy link
Author

Debapriya-Tula commented Feb 3, 2019 via email

@LuckyPigeon
Copy link

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

@Debapriya-Tula
Copy link
Author

Debapriya-Tula commented Feb 24, 2019

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
Copy link

diningPhilosopher64 commented Dec 24, 2019

@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 "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants