conda-forge / libsndfile-feedstock

A conda-smithy repository for libsndfile.
BSD 3-Clause "New" or "Revised" License
2 stars 13 forks source link

1.0.31 FLAC support not compiled in #21

Closed mgrachten closed 3 years ago

mgrachten commented 3 years ago

Issue: With the 1.0.31 version of libsndfile in conda, soundfile cannot open flac files (nor ogg).

>>> soundfile._libname
'$HOME/Library/miniconda3/envs/test_flac_support/bin/../lib/libsndfile.dylib'

>>> soundfile.available_formats()
{
    "AIFF": "AIFF (Apple/SGI)",
    "AU": "AU (Sun/NeXT)",
    "AVR": "AVR (Audio Visual Research)",
    "CAF": "CAF (Apple Core Audio File)",
    "HTK": "HTK (HMM Tool Kit)",
    "SVX": "IFF (Amiga IFF/SVX8/SV16)",
    "MAT4": "MAT4 (GNU Octave 2.0 / Matlab 4.2)",
    "MAT5": "MAT5 (GNU Octave 2.1 / Matlab 5.0)",
    "MPC2K": "MPC (Akai MPC 2k)",
    "PAF": "PAF (Ensoniq PARIS)",
    "PVF": "PVF (Portable Voice Format)",
    "RAW": "RAW (header-less)",
    "RF64": "RF64 (RIFF 64)",
    "SD2": "SD2 (Sound Designer II)",
    "SDS": "SDS (Midi Sample Dump Standard)",
    "IRCAM": "SF (Berkeley/IRCAM/CARL)",
    "VOC": "VOC (Creative Labs)",
    "W64": "W64 (SoundFoundry WAVE 64)",
    "WAV": "WAV (Microsoft)",
    "NIST": "WAV (NIST Sphere)",
    "WAVEX": "WAVEX (Microsoft)",
    "WVE": "WVE (Psion Series 3)",
    "XI": "XI (FastTracker 2)",
}


Environment (conda list):

``` $ conda list # Name Version Build Channel ca-certificates 2020.12.5 h033912b_0 conda-forge certifi 2020.12.5 py39h6e9494a_1 conda-forge cffi 1.14.5 py39h319c39b_0 conda-forge gettext 0.19.8.1 h7937167_1005 conda-forge libblas 3.9.0 8_openblas conda-forge libcblas 3.9.0 8_openblas conda-forge libcxx 11.1.0 habf9029_0 conda-forge libffi 3.3 hb1e8313_2 libflac 1.3.3 h046ec9c_1 conda-forge libgfortran 5.0.0 9_3_0_h6c81a4c_20 conda-forge libgfortran5 9.3.0 h6c81a4c_20 conda-forge libiconv 1.16 haf1e3a3_0 conda-forge liblapack 3.9.0 8_openblas conda-forge libogg 1.3.4 h35c211d_1 conda-forge libopenblas 0.3.12 openmp_h54245bb_1 conda-forge libopus 1.3.1 hc929b4f_1 conda-forge libsndfile 1.0.31 h046ec9c_0 conda-forge libvorbis 1.3.7 h046ec9c_0 conda-forge llvm-openmp 11.1.0 hda6cdc1_0 conda-forge ncurses 6.2 h0a44026_1 numpy 1.20.1 py39h3c955ea_0 conda-forge openssl 1.1.1j hbcf498f_0 conda-forge pip 21.0.1 py39hecd8cb5_0 pycparser 2.20 pyh9f0ad1d_2 conda-forge pysoundfile 0.10.3.post1 pyhd3deb0d_0 conda-forge python 3.9.2 h88f2d9e_0 python_abi 3.9 1_cp39 conda-forge readline 8.1 h9ed2024_0 setuptools 52.0.0 py39hecd8cb5_0 sqlite 3.35.2 hce871da_0 tk 8.6.10 hb0a8c7a_0 tzdata 2020f h52ac0ba_0 wheel 0.36.2 pyhd3eb1b0_0 xz 5.2.5 h1de35cc_0 zlib 1.2.11 h1de35cc_3 ```


Details about conda and system ( conda info ):

``` $ conda info active environment : test_flac_support active env location : $HOME/Library/miniconda3/envs/test_flac_support shell level : 1 user config file : $HOME/.condarc populated config files : conda version : 4.9.2 conda-build version : not installed python version : 3.7.2.final.0 virtual packages : __osx=10.16=0 __unix=0=0 __archspec=1=x86_64 base environment : $HOME/Library/miniconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch package cache : $HOME/Library/miniconda3/pkgs $HOME/.conda/pkgs envs directories : $HOME/Library/miniconda3/envs $HOME/.conda/envs platform : osx-64 user-agent : conda/4.9.2 requests/2.25.1 CPython/3.7.2 Darwin/20.3.0 OSX/10.16 UID:GID : 501:20 netrc file : None offline mode : False ```
wolfv commented 3 years ago

I have a potential fix here #20

wolfv commented 3 years ago

Thanks for opening this issue. let me know how it goes with build number 1 (should be avialalbe in an hour or so on cnda-forge).

mgrachten commented 3 years ago

That works, thanks a lot for your rapid solution @wolfv !