Projet

Général

Profil

Bug #15511

unsupported locale setting

Ajouté par Frédéric Péters il y a environ 7 ans. Mis à jour il y a presque 7 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
20 mars 2017
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Non
Planning:

Description

Déjà remarqué à 3M (#15418), pareil sur la recette guichet grand lyon :

 # sudo -u bijoe /usr/lib/bijoe/import-wcs-data.sh
Exception:
  type = '<class 'locale.Error'>', value = 'unsupported locale setting'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs_olap/cmd.py", line 21, in main
    19         raise
    20     except:
>   21         tb.print_tb()
    22         raise SystemExit(1)
    23 

  File "/usr/lib/python2.7/dist-packages/wcs_olap/cmd.py", line 43, in main2
    41 
    42 def main2():
>   43     locale.setlocale(locale.LC_ALL, '')
    44     parser = argparse.ArgumentParser(description='Export W.C.S. data as a star schema in a '
    45                                      'postgresql DB', add_help=False)

  File "/usr/lib/python2.7/locale.py", line 579, in setlocale
   577         # convert to string
   578         locale = normalize(_build_localename(locale))
>  579     return _setlocale(category, locale)
   580 
   581 def resetlocale(category=LC_ALL):

  locals: 
     locale = ''
     category = 6

Révisions associées

Révision 8da1053e (diff)
Ajouté par Benjamin Dauvergne il y a environ 7 ans

ignore locale errors (fixes #15511)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 7 ans

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#2

Mis à jour par Benjamin Dauvergne il y a environ 7 ans

Mais t'as quoi dans LANG quand tu fais ça ? Parce qu'à 3M je n'ai jamais ça. En attendant j'ignore l'erreur.

#3

Mis à jour par Frédéric Péters il y a environ 7 ans

LANG=en_US.UTF-8
LC_MEASUREMENT=fr_BE.utf8
LC_MONETARY=fr_BE.utf8
LC_NUMERIC=fr_BE.utf8
LC_PAPER=fr_BE.utf8
LC_TIME=fr_BE.utf8

(c'est le fr_BE.utf8 qui ne doit pas passer)

#4

Mis à jour par Benjamin Dauvergne il y a presque 7 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF