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

Requirements.txt not found #1

Open
cmcrabi opened this issue Apr 20, 2024 · 2 comments
Open

Requirements.txt not found #1

cmcrabi opened this issue Apr 20, 2024 · 2 comments

Comments

@cmcrabi
Copy link

cmcrabi commented Apr 20, 2024

I am trying to run this in docker. But I am getting the following error as "requirements.txt" was not present. here is the full output after docker build. Please help

(base) D:\Development\cliobot>docker build -t cliobot .
[+] Building 1.1s (9/11) docker:default
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 796B 0.0s
=> [internal] load metadata for docker.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 0.8s
=> [auth] nvidia/cuda:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 122B 0.0s
=> CANCELED [1/6] FROM docker.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04@sha256:8f9dd0d09d3ad3900357a1cf7f88 0.1s
=> => resolve docker.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04@sha256:8f9dd0d09d3ad3900357a1cf7f887888b5b74 0.1s
=> => sha256:8f9dd0d09d3ad3900357a1cf7f887888b5b74056636cd6ef03c160c3cd4b1d95 743B / 743B 0.0s
=> => sha256:bd746eb3b9953805ebe644847a227e218b5da775f47007c69930569a75c9ad7d 2.84kB / 2.84kB 0.0s
=> => sha256:d0117ee15b5fd0bbcb42c8fd3e35f9bc0f06fe3a947a4ec240f9b73738c7cf54 17.79kB / 17.79kB 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 443.10kB 0.0s
=> CACHED [2/6] WORKDIR /content 0.0s
=> CACHED [3/6] RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgl1 0.0s
=> ERROR [4/6] COPY requirements.txt /content/requirements.txt 0.0s

[4/6] COPY requirements.txt /content/requirements.txt:


Dockerfile:29

27 | rm -rf /var/lib/apt/lists/*
28 |
29 | >>> COPY requirements.txt /content/requirements.txt
30 | RUN pip3 install -r /content/requirements.txt
31 |

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 6bb44c53-d532-4dd8-9bd2-e441a466126f::94xiwjiywus901zp3ngmh3wlp: "/requirements.txt": not found

View build details: docker-desktop://dashboard/build/default/default/xmp125bzc3y1knxgx7suyq6ba

@sebaxakerhtc
Copy link

sebaxakerhtc commented Nov 3, 2024

@herval There's no requirements.txt file in the project

Please, run poetry export --without-hashes --format=requirements.txt > requirements.txt

@sebaxakerhtc
Copy link

sebaxakerhtc commented Nov 3, 2024

@cmcrabi Hi. Have you resolve it?
My steps to make it work
Use this requirements.txt attached
Rename .env to env (without dot in front)
docker run command

docker run -it --rm -v data:/content/data -v env:/content/.env -v config.yml:/content/config.yml cliobot

But mow I have this error

python: can't open file '/content/app.py': [Errno 2] No such file or directory

But there's no app.py... Maybe we should do this:
I will try to add it manually like -v fullbot.py:/content/app.py

Upd /usr/bin/python: can't find '__main__' module in '/content/app.py'

requirements.txt

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

2 participants