ImportError: libGL.so.1: cannot open shared object file: No such file or directory

lariziaFREE

9 months ago

im trying to deploy a flask app with yolov10,
but the error im facing is
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
the project is here:
https://github.com/LariZia/yolov10flaskapp
heres my requirements.txt :
torch==2.0.1
torchvision==0.15.2
onnx==1.14.0
onnxruntime==1.15.1
pycocotools==2.0.7
PyYAML==6.0.1
scipy==1.13.0
onnxslim==0.1.31
ultralytics
onnxruntime-gpu==1.18.0
gradio==4.31.5
opencv-python-headless==4.9.0.80
psutil==5.9.8
py-cpuinfo==9.0.0
huggingface-hub==0.23.2
safetensors==0.4.3
flask==3.0.2
git+https://github.com/THU-MIG/yolov10.git
gunicorn
torchaudio

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

3 Replies

9 months ago

Hello, Unfortunately Nixpacks wouldn't be a good fit for this application, you would need to write a Dockerfile to build your application.


lariziaFREE

9 months ago

okay, thank you

would you be able to help me with creating a docker image for railway ?


9 months ago

You would want to create a Dockerfile, not a docker image, and there are many great resources that you will be able to find online on how to write a Dockerfile.