how can i properly setup ffmpeg in replit? my application has web UI elements using python and i already added audio player but the problem is it seems its not working properly so i add this in nix file to fix the ffmpeg
{ pkgs, ... }: {
deps = [
pkgs.run
pkgs.ffmpeg
];
environment.systemPackages = [ pkgs.libopus ];
}
but when i am running the application the nix file is turning to this
{ pkgs, ... }: {
deps = [
pkgs.xsimd
pkgs.pkg-config
pkgs.libxcrypt
pkgs.ffmpeg-full
pkgs.run
pkgs.ffmpeg
];
env = {
PYTHON_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.xsimd
pkgs.libxcrypt
];
};environment.systemPackages = [ pkgs.libopus ];
}
and the error now is this
Traceback (most recent call last):
File "/home/runner/musicgen/main.py", line 1, in <module>
import torch
File "/home/runner/musicgen/.pythonlibs/lib/python3.10/site-packages/torch/__init__.py", line 228, in <module>
_load_global_deps()
File "/home/runner/musicgen/.pythonlibs/lib/python3.10/site-packages/torch/__init__.py", line 187, in _load_global_deps
raise err
File "/home/runner/musicgen/.pythonlibs/lib/python3.10/site-packages/torch/__init__.py", line 168, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libstdc++.so.6: cannot open shared object file: No such file or directory
i am not sure why the nix file is changing its should not change right? i already run poetry lock no upgrade