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.29 FLAC support not compiled in #15

Closed rookwood101 closed 3 years ago

rookwood101 commented 3 years ago

Issue: 👋

I updated my conda environment and libsndfile updated from 1.0.28 to 1.0.29. I am using libsndfile via the python library pysoundfile. previously pysoundfile included FLAC in its available formats list

I checked the commit log of this repository and I could not see it having been compiled out, however I am no expert. Although I did find an issue requesting for FLAC support to be removed, which I strongly oppose! (https://github.com/conda-forge/libsndfile-feedstock/issues/2) I also found an issue about unimplemented format errors: https://github.com/bastibe/SoundFile/issues/237

With version 1.0.28:

import soundfile as sf
sf._libname
-> '/.../envs/<redacted>/lib/libsndfile.so.1'
sf.available_formats()
-> {'AIFF': 'AIFF (Apple/SGI)',
 'AU': 'AU (Sun/NeXT)',
 'AVR': 'AVR (Audio Visual Research)',
 'CAF': 'CAF (Apple Core Audio File)',
 'FLAC': 'FLAC (Free Lossless Audio Codec)',
 '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)',
 'OGG': 'OGG (OGG Container format)',
 '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)'}

With version 1.0.29:

import soundfile as sf
sf._libname
->'/.../envs/<redacted>/lib/libsndfile.so.1'
sf.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):

As stated above, I am using libsndfile (1.0.28, 1.0.29) and pysoundfile 0.10.2 both from the conda-forge channel.


Details about conda and system ( conda info ):

``` $ conda info active environment : active env location : //envs/ shell level : 2 user config file : //.condarc populated config files : //.condarc conda version : 4.9.0 conda-build version : not installed python version : 3.8.3.final.0 virtual packages : base environment : (writable) channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /pkgs //.conda/pkgs envs directories :/envs //.conda/envs platform : linux-64 user-agent : conda/4.9.0 requests/2.24.0 CPython/3.8.3 Linux/-generic ubuntu/18.04 glibc/ UID:GID : 2557:513 netrc file : None offline mode : False ```
wolfv commented 3 years ago

yep, there was an issue with the FLAC package on conda-forge that I have fixed. Rebuilding libsndfile right now #16

wolfv commented 3 years ago

fixed, thanks for the bug report!