locale.Error: unsupported locale setting
On a brand new Debian Bullseye, minimally configured with MyPhotoShare 5.3.12, scanner
crashes with:
63 2021-11-05 15:25:46.724480 [PRE geonames_language and language options unset] using system language (en) for geonames_language option
163 2021-11-05 15:25:46.724643 [PRE WARNING] /etc/myphotoshare/myphotoshare.passwords doesn't exist or unreadable, not using it
75 2021-11-05 15:25:46.724718 [PRE WARNING] /etc/myphotoshare/myphotoshare.excluded doesn't exist or unreadable, not using it
Traceback (most recent call last):
File "/usr/bin/myphotoshare_scanner", line 57, in <module>
main()
File "/usr/bin/myphotoshare_scanner", line 25, in main
from TreeWalker import TreeWalker
File "/usr/share/myphotoshare/scanner/TreeWalker.py", line 29, in <module>
from PhotoAlbum import SingleMedia, Album, PhotoAlbumEncoder, Position, Positions, NumsProtected, Sizes, SizesProtected
File "/usr/share/myphotoshare/scanner/PhotoAlbum.py", line 53, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.9/locale.py", line 610, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
Configured locales:
# locale -a
C
C.UTF-8
en_CA.utf8
POSIX
Edited by Pierre Métras