-
I bought a raspberry pi to run tgcf, but it doesn't seem to work. Docker : standard_init_linux.go:207: exec user process caused "exec format error"
pip install tgcf : 'could not find a version that satisfies the requirement tgcf' Is there any way to run tgcf on the Raspberry Pi? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
I think Please tell me what command did you run to install For using tgcf on docker, For using the python --version
pip --version |
Beta Was this translation helpful? Give feedback.
-
thank you for a detailed response. The last line is helpful.
The docker image published at If you have knowledge of docker, you can build a docker image for raspberry pi, and publish it to docker hub, or upload the docker image from your computer to raspberry pi. Simpler alternative for you would be to :
|
Beta Was this translation helpful? Give feedback.
-
A dockerfile for rasbberry piYou can build a docker image for raspberry pi.
Step 1. Create a folder and a file Step 2. Put this in the Dockerfile FROM arm64v8/python:3.9
# search docker hub for the base image for the architecture of your hardware
WORKDIR /app
RUN pip install --upgrade tgcf
CMD tgcf Step 3. Open your terminal inside the folder that contains the Dockerfile, and run this docker build -t tgcf-rspi . The name Once the image has been build, you can upload it to DockerHub, in your account. Then you may pull and run that in your raspberry pi. |
Beta Was this translation helpful? Give feedback.
-
I've been trying to run tgcf on Raspberry Pi for a few days, but unfortunately I've given it up. First, how to create a Dockerfile.
Then run the The problem is, Tgcf needs Python 3.9. If you use a file compiled with Python3.7, when you type
To solve this problem, I changed the contents of Dockerfile to Python:3.9. However, the compile is not working properly and shows an error. This seems to be a problem related to 'Pillow', but I have not found a solution. Also, Raspberry Pie OS does not officially support Python3.9 yet. Of course, I can install version 3.9 in Raspberry Pi, but I didn't go that far. Because, as I said before, I failed to cross compile. I have little knowledge of programming. (I'm just starting to learn) So I tried to figure it out by rule of thumb, but unfortunately it didn't work out. For the time being, I'll just use andriod. But I hope someone will solve this problem well. Go for it! |
Beta Was this translation helpful? Give feedback.
-
Thanks to @aahnik help, I succeeded in running tgcf on Raspberry Pi 4b. It's been working properly for two days now. Here's how:
Dockerfile
From the folder this Dockerfile is stored,
If the image is made,
https://downloads.raspberrypi.org/raspios_arm64/images/
https://itheo.nl/install-python-3-9-on-raspberry-pi
If you need more help, leave a reply. I'll help you with what I can. |
Beta Was this translation helpful? Give feedback.
-
Make sure you have git and docker installed on your Raspberry pi. Run these to check. git --version
docker --version You need a host of arm architecture to build a docker image for To see the architecture of the host machine, uname -m Follow the steps on your raspberry pi.
|
Beta Was this translation helpful? Give feedback.
Make sure you have git and docker installed on your Raspberry pi.
Run these to check.
You need a host of arm architecture to build a docker image for
arm
.To see the architecture of the host machine,
Follow the steps on your raspberry pi.
Clone the tgcf repo and move into it.
Build the docker image
docker build -t tgcf:rasp .
Come out of the
tgcf
folder, and create a new folder to store your configuration.Run
tgcf
# make sure to be in the directory which has .env and tgcf.config.yml docker run -v /path/to/tgcf.config.yml:/app/tgcf.config.yml -d --env-file .env tgcf:rasp