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

2 years 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/yolov10_flask_app

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

2 years ago

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


larizia
FREEOP

2 years ago

okay, thank you

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


2 years 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.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...