question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker-Compose crashed because git is not available

See original GitHub issue

Hi,

I wanted to start using this, but when building the docker image it crashes because in one of the images git seems to be missing

Step 6/7 : RUN pip3 install --no-cache-dir -r requirements.txt &&     touch mtt_mastodon_client.secret           mtt_mastodon_user.secret           mtt_mastodon_server.secret           mtt_twitter.secret
 ---> Running in 8d9fcc8209ae
Collecting git+https://github.com/bear/python-twitter.git (from -r requirements.txt (line 6))
  Cloning https://github.com/bear/python-twitter.git to /tmp/pip-req-build-9f2_012x
  Running command git clone -q https://github.com/bear/python-twitter.git /tmp/pip-req-build-9f2_012x
  ERROR: Error [Errno 2] No such file or directory: 'git': 'git' while executing command git clone -q https://github.com/bear/python-twitter.git /tmp/pip-req-build-9f2_012x
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

I’m using openSUSE Leap 15.1. Find attached the full docker-compose log

I really like this project btw 😃

docker-compose-log.txt

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
halcycommented, Feb 13, 2020

Chiming in here: That’s a problem with the newest version of Mastodon.py, I had to rename the parameter from “async” to “run_async”. This change was unfortunately necessary, since python 3.5 made “async” a keyword (so it can’t be used as a variable name anymore). If you replace “async” with “run_async” in the stream_user call, things should work as before.

0reactions
timconsidinecommented, Sep 22, 2021

I’m also getting the error reported by OP Tried the Dockerfile/docker-compose.yml and also pushing to a CapRover server. I don’t see any resolution in https://github.com/AmauryCarrade/MastodonToTwitter/issues/67#issuecomment-585564515 or how to implement https://github.com/AmauryCarrade/MastodonToTwitter/issues/67#issuecomment-585638687.

Is there some fix for this ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker-compose up fails if network attached to container is ...
Container start fails, because network it was attached to has been removed. For some reason docker-compose tries to remove that container ...
Read more >
Docker Compose release notes | Docker Documentation
Fixed a bug where working with containers created with a version of Compose earlier than 1.23.0 would cause unexpected crashes.
Read more >
Install with Docker Compose - Baserow
yml found in the root of our git repository which runs each Baserow service as a separate container. Installing requirements. If you haven't...
Read more >
Troubleshooting GitLab Runner
If you want to use Docker executor, and you are connecting to Docker Engine installed on server. You can see the Permission Denied...
Read more >
Docker-Compose can't connect to Docker Daemon
I got this error when there were files in the Dockerfile directory that were not accessible by the current user ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found