Résolu le 6-04-23 Calcul du replaygain fonctionnel mais message d'erreur

Postez ici toutes vos demandes d’assistance.
Répondre
Avatar du membre
Nerva
Messages : 376
Enregistré le : lun. 4 mars 2019 18:48

Calcul du replaygain fonctionnel mais message d'erreur

Message par Nerva »

Bonjour.

Le logiciel replaygain est à nouveau (je ne sais pas depuis quand) disponible en version "standalone" (depuis LM20, il fallait passer par l'option idoine dans le convertisseur FLAC). Mais, sur la commande :

Code : Tout sélectionner

replaygain -h
J'ai ce retour :

Code : Tout sélectionner

/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
Usage: replaygain [options] AUDIO_FILE [AUDIO_FILE ...]

Etc..........
J'ai fait malgré tout un petit test :

Code : Tout sélectionner

replaygain -f test.flac
Le calcul est fait (les valeurs calculées sont identiques à celles trouvées en passant par le convertisseur FLAC) mais j'ai quand même un message d'erreur dans le retour :

Code : Tout sélectionner

/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
Calculating Replay Gain information ...
  test.flac:-5.51 dB
  Album gain: -5.51 dB
Writing Replay Gain information to files ...
  test.flac:done
Done
Problème de compatibilité ?

Merci.
Linux Mint 21.3 Virginia | Cinnamon 6.0.4

Avatar du membre
cyrille
Administrateur du site
Messages : 13037
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: Calcul du replaygain fonctionnel mais message d'erreur

Message par cyrille »

Ces avertissements sont causés par des versions non conformes à PEP 440 de ces packages Python.
Normalement il ne s'agit que d'avertissements, rien de plus

Si tu ouvres le fichier en question, vers ligne 116 tu trouveras la fonction qui confirme cette hypothèse

Code : Tout sélectionner

class PEP440Warning(RuntimeWarning):
    """
    Used when there is an issue with a version or specifier not complying with
    PEP 440.
    """


def parse_version(v):
    try:
        return packaging.version.Version(v)
    except packaging.version.InvalidVersion:
        warnings.warn(
            f"{v} is an invalid version and will not be supported in "
            "a future release",
            PkgResourcesDeprecationWarning,
        )
        return packaging.version.LegacyVersion(v)


_state_vars = {}
Si vraiment tu ne plus voir cet avertissement, remplace par ce code

Code : Tout sélectionner

class PEP440Warning(RuntimeWarning):
    """
    Used when there is an issue with a version or specifier not complying with
    PEP 440.
    """


def parse_version(v):
    try:
        return packaging.version.Version(v)
    except packaging.version.InvalidVersion:
        """warnings.warn(
            f"{v} is an invalid version and will not be supported in "
            "a future release",
            PkgResourcesDeprecationWarning,
        ) """
        return packaging.version.LegacyVersion(v)


_state_vars = {}
Sans fonction modifiée

Code : Tout sélectionner

 replaygain -f 04-Track-4.mp3 
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
Calculating Replay Gain information ...
  04-Track-4.mp3:-5.41 dB
  Album gain: -5.41 dB
Writing Replay Gain information to files ...
  04-Track-4.mp3:done
Done
Avec fonction modifiée

Code : Tout sélectionner

replaygain -f 04-Track-4.mp3 
Calculating Replay Gain information ...
  04-Track-4.mp3:-5.41 dB
  Album gain: -5.41 dB
Writing Replay Gain information to files ...
  04-Track-4.mp3:done
Done
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Avatar du membre
Nerva
Messages : 376
Enregistré le : lun. 4 mars 2019 18:48

Re: Calcul du replaygain fonctionnel mais message d'erreur

Message par Nerva »

Merci bien. ;)
Linux Mint 21.3 Virginia | Cinnamon 6.0.4

Répondre