python-soundfile
python-soundfile copied to clipboard
Having to run sudo apt-get install libsndfile1 on Linux
Hi, Great lib. We are deploying to Linux via an on-prem installation of Pivotal Cloud Foundry. As a result we cannot execute sudo apt-get install libsndfile1 to get that dependency as (due to security) have no access to get any packages at deployment time. Whats the best way to bundle libsndfile1 with our app so that SoundFile finds it? If we did an installation of libsndfile1 on another linux box and then found libsndfile1.lib and copied in into the same folder as the main.py (which imports soundFile) would that potentially work? Thanks for your time. Regards
Hi harkinj,
I am not 100% sure about the import rules on Linux, but if I remember correctly, your suggestion is essentially correct. But you'd need to copy libsndfile.so (the ".so" aka "shared object", not the ".lib", or "static library").
Alternatively, you could try installing libsndfile through conda: https://anaconda.org/conda-forge/libsndfile
Hi, Thanks for the great suggestions. Regards John
Please report back if it works or doesn't work, and close this issue if it's resolved.