R
Railway2y ago
nova

ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv /opt/venv && . /opt/venv/b

Error: Docker build failed
39 Replies
Percy
Percy2y ago
Project ID: e4949be4-03c7-44a7-a413-32ffc2e9c2f7
nova
novaOP2y ago
e4949be4-03c7-44a7-a413-32ffc2e9c2f7
angelo
angelo2y ago
Can you retry the build?
nova
novaOP2y ago
still same issue
angelo
angelo2y ago
Did the build start failing now or is this a new project?
nova
novaOP2y ago
new project
Brody
Brody2y ago
build logs please?
nova
novaOP2y ago
Brody
Brody2y ago
full build logs please also, this wouldn't cause your build to fail, but definably don't use the --reload flag to run your app on railway
nova
novaOP2y ago
I think it may be due to the requirements.txt actually
Brody
Brody2y ago
i cant help much without full build logs
nova
novaOP2y ago
oh ok - sure thanks salute
Brody
Brody2y ago
^
nova
novaOP2y ago
I'm struggling to copy and paste 😅
Brody
Brody2y ago
understandable
nova
novaOP2y ago
every time I do it most of it gets cut off
Brody
Brody2y ago
copy it into a .txt file, not directly into discord
nova
novaOP2y ago
Brody
Brody2y ago
send your reqirements.txt file please
nova
novaOP2y ago
git+https://github.com/DisnakeDev/disnake.git requests==2.28.2 pymongo==4.3.3 pandas~=1.5.3 Django~=4.2.1 djangorestframework~=3.14.0 Flask~=2.2.3 opencv-python~=4.5.5.62 numpy~=1.24.3 scikit-image~=0.20.0 beautifulsoup4~=4.12.2 selenium~=4.9.1 dhooks~=1.1.4 nltk~=3.8.1 tensorflow~=2.12.0 scipy~=1.9.1 fastapi~=0.95.2 uvicorn~=0.22.0 httpx~=0.24.1
Brody
Brody2y ago
can you send your repo?
nova
novaOP2y ago
Is there any way I can share it privately?
Brody
Brody2y ago
try this for your requirements.txt file
git+https://github.com/DisnakeDev/disnake.git
requests==2.28.2
pymongo==4.3.3
pandas~=1.5.3
Django~=4.2.1
djangorestframework~=3.14.0
Flask~=2.2.3
opencv-python-headless~=4.5.5.62
numpy
scikit-image~=0.20.0
beautifulsoup4~=4.12.2
selenium~=4.9.1
dhooks~=1.1.4
nltk~=3.8.1
tensorflow~=2.12.0
scipy~=1.9.1
fastapi~=0.95.2
uvicorn~=0.22.0
httpx~=0.24.1
git+https://github.com/DisnakeDev/disnake.git
requests==2.28.2
pymongo==4.3.3
pandas~=1.5.3
Django~=4.2.1
djangorestframework~=3.14.0
Flask~=2.2.3
opencv-python-headless~=4.5.5.62
numpy
scikit-image~=0.20.0
beautifulsoup4~=4.12.2
selenium~=4.9.1
dhooks~=1.1.4
nltk~=3.8.1
tensorflow~=2.12.0
scipy~=1.9.1
fastapi~=0.95.2
uvicorn~=0.22.0
httpx~=0.24.1
nova
novaOP2y ago
Thanks
Brody
Brody2y ago
do you mind telling me what you use beautifulsoup and selenium for?
nova
novaOP2y ago
they were for a different project but I left them in the requirements. The only requirements I needed for this project were:
fastapi~=0.95.2
uvicorn~=0.22.0
httpx~=0.24.1
fastapi~=0.95.2
uvicorn~=0.22.0
httpx~=0.24.1
and it worked fine this worked great btw. deploy times were slightly longer than usual, but it's working fine. Thanks for that. I assume that opencv-python was the issue then?
Brody
Brody2y ago
you arent even installing opencv anymore
nova
novaOP2y ago
what do you mean
Brody
Brody2y ago
bruh
nova
novaOP2y ago
awk
Brody
Brody2y ago
thats me irl
nova
novaOP2y ago
😅
Brody
Brody2y ago
you do not have opencv-python here anymore, thus you are not installing it assuming those 3 lines make up your entire requirements.txt file
nova
novaOP2y ago
yeah, I'm aware of that. I deployed it with those three requirements first and it worked fine. Then I deployed it with the updated requirements that you sent and it also worked fine (after changing open-cv versions) I can be thick sometimes but not that thick 😅
Brody
Brody2y ago
if you do use that opencv package, make sure you are using the headless version
nova
novaOP2y ago
will do salute a lot 🙂
Brody
Brody2y ago
and remember, no reload flag on your start command
nova
novaOP2y ago
yep - just removed that flag 👍 thanks
Brody
Brody2y ago
no problem!
Want results from more Discord servers?
Add your server