Docker-Compose crashed because git is not available
See original GitHub issueHi,
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 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 ?