R

Railway

βœ‹ο½œhelp

Join Server

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

Nnova5/24/2023
Error: Docker build failed
Nnova5/24/2023
e4949be4-03c7-44a7-a413-32ffc2e9c2f7
Aangelo5/24/2023
Can you retry the build?
Nnova5/24/2023
still same issue
Aangelo5/24/2023
Did the build start failing now or is this a new project?
Nnova5/24/2023
new project
Bbrody5/24/2023
build logs please?
Nnova5/24/2023
Bbrody5/24/2023
full build logs please
Bbrody5/24/2023
also, this wouldn't cause your build to fail, but definably don't use the --reload flag to run your app on railway
Nnova5/24/2023
I think it may be due to the requirements.txt actually
Bbrody5/24/2023
i cant help much without full build logs
Nnova5/24/2023
oh ok - sure thanks :salute:
Bbrody5/24/2023
^
Nnova5/24/2023
I'm struggling to copy and paste πŸ˜…
Bbrody5/24/2023
understandable
Nnova5/24/2023
every time I do it most of it gets cut off
Bbrody5/24/2023
copy it into a .txt file, not directly into discord
Nnova5/24/2023
Bbrody5/24/2023
send your reqirements.txt file please
Nnova5/24/2023
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
Bbrody5/24/2023
can you send your repo?
Nnova5/24/2023
Is there any way I can share it privately?
Bbrody5/24/2023
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
Nnova5/24/2023
Thanks
Bbrody5/24/2023
do you mind telling me what you use beautifulsoup and selenium for?
Nnova5/24/2023
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
Nnova5/24/2023
and it worked fine
Nnova5/24/2023
this worked great btw. deploy times were slightly longer than usual, but it's working fine. Thanks for that.
Nnova5/24/2023
I assume that opencv-python was the issue then?
Bbrody5/24/2023
you arent even installing opencv anymore
Nnova5/24/2023
what do you mean
Bbrody5/24/2023
bruh
Nnova5/24/2023
:awk:
Bbrody5/24/2023
thats me irl
Nnova5/24/2023
πŸ˜…
Bbrody5/24/2023
you do not have opencv-python here anymore, thus you are not installing it
Bbrody5/24/2023
assuming those 3 lines make up your entire requirements.txt file
Nnova5/24/2023
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)
Nnova5/24/2023
I can be thick sometimes but not that thick πŸ˜…
Bbrody5/24/2023
if you do use that opencv package, make sure you are using the headless version
Nnova5/24/2023
will do :salute:
Nnova5/24/2023
thanks a lot πŸ™‚
Bbrody5/24/2023
and remember, no reload flag on your start command
Nnova5/24/2023
yep - just removed that flag πŸ‘
Nnova5/24/2023
thanks
Bbrody5/24/2023
no problem!