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

ImportError: No module named __future__ #4277

Closed
RichardJECooke opened this issue Dec 27, 2016 · 2 comments
Closed

ImportError: No module named __future__ #4277

RichardJECooke opened this issue Dec 27, 2016 · 2 comments

Comments

@RichardJECooke
Copy link

I installed the latest version of docker-compose on my Ubuntu VM using Linux Brew (Homebrew) version 1.1.5.

rje@ubuntu16vm:~/projects/wp$ brew list docker-compose
/home/rje/.linuxbrew/Cellar/docker-compose/1.9.0/bin/docker-compose
/home/rje/.linuxbrew/Cellar/docker-compose/1.9.0/etc/bash_completion.d/docker-compose
/home/rje/.linuxbrew/Cellar/docker-compose/1.9.0/libexec/bin/ (17 files)
/home/rje/.linuxbrew/Cellar/docker-compose/1.9.0/libexec/include/python2.7
/home/rje/.linuxbrew/Cellar/docker-compose/1.9.0/libexec/lib/ (761 files)
/home/rje/.linuxbrew/Cellar/docker-compose/1.9.0/libexec/pip-selfcheck.json
/home/rje/.linuxbrew/Cellar/docker-compose/1.9.0/share/zsh/site-functions/_docker-compose

When trying to run any command, e.g. docker-compose start I now get this error:

rje@ubuntu16vm:~/projects/wp$ docker-compose up
Traceback (most recent call last):
  File "/home/rje/.linuxbrew/bin/docker-compose", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/home/rje/.linuxbrew/Cellar/docker-compose/1.9.0/libexec/lib/python2.7/site-packages/pkg_resources/__init__.py", line 18, in <module>
    from __future__ import absolute_import
ImportError: No module named __future__
@shin-
Copy link

shin- commented Jan 5, 2017

Sorry, we don't support *brew as an install method - it's proven to be riddled with issues like this one that are out of our control. Please see our install docs for the recommended packages.

@rdlester
Copy link

rdlester commented Feb 8, 2017

As a follow-up for future searchers - I ran into this issue b/c I tried to install docker-compose via the default Ubuntu apt repo, which installs an old version, before trying brew. The two things somehow conflict with one another. Uninstalling the apt packages fixed things.

milas added a commit to milas/compose that referenced this issue Feb 24, 2023
This follows the "action-first" approach to use the apiserver model
for `FileWatch` and dispatch simple create/update/delete actions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants