R
Railway11mo ago
Yash

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

requirements.txt aiohttp==3.8.6 aiosignal==1.3.1 amqp==5.1.1 annotated-types==0.6.0 anyio==3.7.1 async-timeout==4.0.3 attrs==23.1.0 av==10.0.0 billiard==4.1.0 boto3 botocore celery==5.3.4 certifi==2023.7.22 charset-normalizer==3.3.1 click==8.1.7 click-didyoumean==0.3.0 click-plugins==1.1.1 click-repl==0.3.0 coloredlogs==15.0.1 ctranslate2==3.20.0 dataclasses-json==0.6.1 decorator==5.1.1 fastapi==0.104.0 faster-whisper==0.7.0 ffmpeg-python==0.2.0 filelock==3.13.0 flatbuffers==23.5.26 flower==2.0.1 frozenlist==1.4.0 fsspec==2023.10.0 future==0.18.3 h11==0.14.0 huggingface-hub==0.18.0 humanfriendly==10.0 humanize==4.8.0 idna==3.4 imageio==2.31.6 imageio-ffmpeg==0.4.9 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==2.4 kombu==5.3.2 langchain==0.0.325 langsmith==0.0.53 marshmallow==3.20.1 moviepy @ git+https://github.com/Zulko/moviepy.git@bc8d1a831d2d1f61abfdf1779e8df95d523947a5 mpmath==1.3.0 multidict==6.0.4 mypy-extensions==1.0.0 onnxruntime==1.16.1 openai==0.28.1 packaging==23.2 Pillow==10.0.1 proglog==0.1.10 prometheus-client==0.17.1 prompt-toolkit==3.0.39 protobuf==4.24.4 pydantic==2.4.2 pydantic_core==2.10.1 pydub==0.25.1 python-dateutil==2.8.2 python-dotenv==1.0.0 pytz==2023.3.post1 PyYAML==6.0.1 redis==5.0.1 requests s3transfer==0.7.0 scipy six==1.16.0 sniffio==1.3.0 SQLAlchemy==2.0.22 starlette==0.27.0 sympy==1.12 tenacity==8.2.3 tokenizers==0.13.3 tornado==6.3.3 tqdm==4.66.1 typing-inspect==0.9.0 typing_extensions==4.8.0 tzdata==2023.3 urllib3 uvicorn==0.23.2 vine==5.0.0 wcwidth==0.2.8 yarl==1.9.2 opencv-python==4.6.0.66 numpy mtcnn tensorflow alive_progress==3.1.5 opencv-python-headless nixpacks: [phases.setup] aptPkgs = [ "...", "ffmpeg", "imagemagick", "ghostscript", "gsfonts", "fonts-droid-fallback", "fonts-noto-mono", "fonts-urw-base35", "fonts-liberation", "libsm6", "libxext6", "libgl1", "python3-opencv", "libglib2.0-0", ] ]
19 Replies
Percy
Percy11mo ago
Project ID: ca440142-97f8-497c-8374-bdd45e8e3749
Yash
YashOP11mo ago
ca440142-97f8-497c-8374-bdd45e8e3749
Fragly
Fragly11mo ago
could you try adding libgl as a aptLibs in your nixpacks.toml too?
Yash
YashOP11mo ago
like this? aptLibs = [ "libgl1-mesa-glx", "libglib2.0-0", ]
Fragly
Fragly11mo ago
I believe so
Yash
YashOP11mo ago
ok, trying! did not work ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Brody
Brody11mo ago
1. please enclose all code / code-like text in triple backticks 2. do not install the non headless version of opencv-python
Yash
YashOP11mo ago
haven't installed headless i removed it, i still see the same error
Brody
Brody11mo ago
send your new requirements.txt
Yash
YashOP11mo ago
aiohttp==3.8.6
aiosignal==1.3.1
amqp==5.1.1
annotated-types==0.6.0
anyio==3.7.1
async-timeout==4.0.3
attrs==23.1.0
av==10.0.0
billiard==4.1.0
boto3
botocore
celery==5.3.4
certifi==2023.7.22
charset-normalizer==3.3.1
click==8.1.7
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.3.0
coloredlogs==15.0.1
ctranslate2==3.20.0
dataclasses-json==0.6.1
decorator==5.1.1
fastapi==0.104.0
faster-whisper==0.7.0
ffmpeg-python==0.2.0
filelock==3.13.0
flatbuffers==23.5.26
flower==2.0.1
frozenlist==1.4.0
fsspec==2023.10.0
future==0.18.3
h11==0.14.0
huggingface-hub==0.18.0
humanfriendly==10.0
humanize==4.8.0
idna==3.4
imageio==2.31.6
imageio-ffmpeg==0.4.9
jmespath==1.0.1
jsonpatch==1.33
jsonpointer==2.4
kombu==5.3.2
langchain==0.0.325
langsmith==0.0.53
marshmallow==3.20.1
moviepy @ git+https://github.com/Zulko/moviepy.git@bc8d1a831d2d1f61abfdf1779e8df95d523947a5
mpmath==1.3.0
multidict==6.0.4
mypy-extensions==1.0.0
onnxruntime==1.16.1
openai==0.28.1
packaging==23.2
Pillow==10.0.1
proglog==0.1.10
prometheus-client==0.17.1
prompt-toolkit==3.0.39
protobuf==4.24.4
pydantic==2.4.2
pydantic_core==2.10.1
pydub==0.25.1
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2023.3.post1
PyYAML==6.0.1
redis==5.0.1
requests
s3transfer==0.7.0
scipy
six==1.16.0
sniffio==1.3.0
SQLAlchemy==2.0.22
starlette==0.27.0
sympy==1.12
tenacity==8.2.3
tokenizers==0.13.3
tornado==6.3.3
tqdm==4.66.1
typing-inspect==0.9.0
typing_extensions==4.8.0
tzdata==2023.3
urllib3
uvicorn==0.23.2
vine==5.0.0
wcwidth==0.2.8
yarl==1.9.2
opencv-python==4.6.0.66
numpy
mtcnn
tensorflow
alive_progress==3.1.5
opencv-python-headless
aiohttp==3.8.6
aiosignal==1.3.1
amqp==5.1.1
annotated-types==0.6.0
anyio==3.7.1
async-timeout==4.0.3
attrs==23.1.0
av==10.0.0
billiard==4.1.0
boto3
botocore
celery==5.3.4
certifi==2023.7.22
charset-normalizer==3.3.1
click==8.1.7
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.3.0
coloredlogs==15.0.1
ctranslate2==3.20.0
dataclasses-json==0.6.1
decorator==5.1.1
fastapi==0.104.0
faster-whisper==0.7.0
ffmpeg-python==0.2.0
filelock==3.13.0
flatbuffers==23.5.26
flower==2.0.1
frozenlist==1.4.0
fsspec==2023.10.0
future==0.18.3
h11==0.14.0
huggingface-hub==0.18.0
humanfriendly==10.0
humanize==4.8.0
idna==3.4
imageio==2.31.6
imageio-ffmpeg==0.4.9
jmespath==1.0.1
jsonpatch==1.33
jsonpointer==2.4
kombu==5.3.2
langchain==0.0.325
langsmith==0.0.53
marshmallow==3.20.1
moviepy @ git+https://github.com/Zulko/moviepy.git@bc8d1a831d2d1f61abfdf1779e8df95d523947a5
mpmath==1.3.0
multidict==6.0.4
mypy-extensions==1.0.0
onnxruntime==1.16.1
openai==0.28.1
packaging==23.2
Pillow==10.0.1
proglog==0.1.10
prometheus-client==0.17.1
prompt-toolkit==3.0.39
protobuf==4.24.4
pydantic==2.4.2
pydantic_core==2.10.1
pydub==0.25.1
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2023.3.post1
PyYAML==6.0.1
redis==5.0.1
requests
s3transfer==0.7.0
scipy
six==1.16.0
sniffio==1.3.0
SQLAlchemy==2.0.22
starlette==0.27.0
sympy==1.12
tenacity==8.2.3
tokenizers==0.13.3
tornado==6.3.3
tqdm==4.66.1
typing-inspect==0.9.0
typing_extensions==4.8.0
tzdata==2023.3
urllib3
uvicorn==0.23.2
vine==5.0.0
wcwidth==0.2.8
yarl==1.9.2
opencv-python==4.6.0.66
numpy
mtcnn
tensorflow
alive_progress==3.1.5
opencv-python-headless
nixpacks:
[phases.setup]
aptPkgs = [
"...",
"ffmpeg",
"imagemagick",
"ghostscript",
"gsfonts",
"fonts-droid-fallback",
"fonts-noto-mono",
"fonts-urw-base35",
"fonts-liberation",
"libsm6",
"libxext6",
"libgl1",
"python3-opencv",
"libglib2.0-0",
]
]
nixpacks:
[phases.setup]
aptPkgs = [
"...",
"ffmpeg",
"imagemagick",
"ghostscript",
"gsfonts",
"fonts-droid-fallback",
"fonts-noto-mono",
"fonts-urw-base35",
"fonts-liberation",
"libsm6",
"libxext6",
"libgl1",
"python3-opencv",
"libglib2.0-0",
]
]
Brody
Brody11mo ago
see #2
Yash
YashOP11mo ago
Tried it without #2 as well same issue
Brody
Brody11mo ago
send me your new requirements.txt please
Yash
YashOP11mo ago
aiohttp==3.8.6
aiosignal==1.3.1
amqp==5.1.1
annotated-types==0.6.0
anyio==3.7.1
async-timeout==4.0.3
attrs==23.1.0
av==10.0.0
billiard==4.1.0
boto3
botocore
celery==5.3.4
certifi==2023.7.22
charset-normalizer==3.3.1
click==8.1.7
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.3.0
coloredlogs==15.0.1
ctranslate2==3.20.0
dataclasses-json==0.6.1
decorator==5.1.1
fastapi==0.104.0
faster-whisper==0.7.0
ffmpeg-python==0.2.0
filelock==3.13.0
flatbuffers==23.5.26
flower==2.0.1
frozenlist==1.4.0
fsspec==2023.10.0
future==0.18.3
h11==0.14.0
huggingface-hub==0.18.0
humanfriendly==10.0
humanize==4.8.0
idna==3.4
imageio==2.31.6
imageio-ffmpeg==0.4.9
jmespath==1.0.1
jsonpatch==1.33
jsonpointer==2.4
kombu==5.3.2
langchain==0.0.325
langsmith==0.0.53
marshmallow==3.20.1
moviepy @ git+https://github.com/Zulko/moviepy.git@bc8d1a831d2d1f61abfdf1779e8df95d523947a5
mpmath==1.3.0
multidict==6.0.4
mypy-extensions==1.0.0
onnxruntime==1.16.1
openai==0.28.1
packaging==23.2
Pillow==10.0.1
proglog==0.1.10
prometheus-client==0.17.1
prompt-toolkit==3.0.39
protobuf==4.24.4
pydantic==2.4.2
pydantic_core==2.10.1
pydub==0.25.1
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2023.3.post1
PyYAML==6.0.1
redis==5.0.1
requests
s3transfer==0.7.0
scipy
six==1.16.0
sniffio==1.3.0
SQLAlchemy==2.0.22
starlette==0.27.0
sympy==1.12
tenacity==8.2.3
tokenizers==0.13.3
tornado==6.3.3
tqdm==4.66.1
typing-inspect==0.9.0
typing_extensions==4.8.0
tzdata==2023.3
urllib3
uvicorn==0.23.2
vine==5.0.0
wcwidth==0.2.8
yarl==1.9.2
opencv-python-headless==4.6.0.66
numpy
git+https://github.com/whyashthakker/mtcnn-headless.git#egg=mtcnn
tensorflow
alive_progress==3.1.5
aiohttp==3.8.6
aiosignal==1.3.1
amqp==5.1.1
annotated-types==0.6.0
anyio==3.7.1
async-timeout==4.0.3
attrs==23.1.0
av==10.0.0
billiard==4.1.0
boto3
botocore
celery==5.3.4
certifi==2023.7.22
charset-normalizer==3.3.1
click==8.1.7
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.3.0
coloredlogs==15.0.1
ctranslate2==3.20.0
dataclasses-json==0.6.1
decorator==5.1.1
fastapi==0.104.0
faster-whisper==0.7.0
ffmpeg-python==0.2.0
filelock==3.13.0
flatbuffers==23.5.26
flower==2.0.1
frozenlist==1.4.0
fsspec==2023.10.0
future==0.18.3
h11==0.14.0
huggingface-hub==0.18.0
humanfriendly==10.0
humanize==4.8.0
idna==3.4
imageio==2.31.6
imageio-ffmpeg==0.4.9
jmespath==1.0.1
jsonpatch==1.33
jsonpointer==2.4
kombu==5.3.2
langchain==0.0.325
langsmith==0.0.53
marshmallow==3.20.1
moviepy @ git+https://github.com/Zulko/moviepy.git@bc8d1a831d2d1f61abfdf1779e8df95d523947a5
mpmath==1.3.0
multidict==6.0.4
mypy-extensions==1.0.0
onnxruntime==1.16.1
openai==0.28.1
packaging==23.2
Pillow==10.0.1
proglog==0.1.10
prometheus-client==0.17.1
prompt-toolkit==3.0.39
protobuf==4.24.4
pydantic==2.4.2
pydantic_core==2.10.1
pydub==0.25.1
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2023.3.post1
PyYAML==6.0.1
redis==5.0.1
requests
s3transfer==0.7.0
scipy
six==1.16.0
sniffio==1.3.0
SQLAlchemy==2.0.22
starlette==0.27.0
sympy==1.12
tenacity==8.2.3
tokenizers==0.13.3
tornado==6.3.3
tqdm==4.66.1
typing-inspect==0.9.0
typing_extensions==4.8.0
tzdata==2023.3
urllib3
uvicorn==0.23.2
vine==5.0.0
wcwidth==0.2.8
yarl==1.9.2
opencv-python-headless==4.6.0.66
numpy
git+https://github.com/whyashthakker/mtcnn-headless.git#egg=mtcnn
tensorflow
alive_progress==3.1.5
Brody
Brody11mo ago
seems like something else is installing the non headless version of opencv-python anyway
Yash
YashOP11mo ago
mtcnn was installing headless, but i forked it to headless version
Brody
Brody11mo ago
wow thats dedication, but it looks like you would need to move to a dockerfile based build, i have not been able to get nixpacks to install anything to satisfy the libgl.so.i error
Yash
YashOP11mo ago
OK, any decent guides on how to approach that sorry i know it's out of scope
Brody
Brody11mo ago
share your repo and i might be able to write one for you
Want results from more Discord servers?
Add your server