Package: lazygal
Version: 0.10.5-1
Severity: normal
X-Debbugs-Cc: coronal...@yandex.com

Dear Maintainer,

   * What led up to the situation?

Starting lazygal with pictures having illegal (pre-UTF-8) characters in IPTC
keywords. The keyword "Bj�rn" leads to a crash.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Removing the keyword or changing it to UTF-8 "Björn" worked. But: I would like
to create a gallery with all pictures, even old ones, without changing all the
pictures.

   * What was the outcome of this action?

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 2: invalid
start byte

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/lazygal", line 33, in <module>
    sys.exit(load_entry_point('lazygal==0.10.5', 'console_scripts',
'lazygal')())
  File "/usr/lib/python3/dist-packages/lazygal/cmdline.py", line 292, in main
    album.generate(progress=progress)
  File "/usr/lib/python3/dist-packages/lazygal/generators.py", line 943, in
generate
    destgal.make()
  File "/usr/lib/python3/dist-packages/lazygal/generators.py", line 667, in
make
    super().make(force)
  File "/usr/lib/python3/dist-packages/lazygal/make.py", line 120, in make
    self.call_populate_deps()
  File "/usr/lib/python3/dist-packages/lazygal/make.py", line 43, in
call_populate_deps
    self.populate_deps()
  File "/usr/lib/python3/dist-packages/lazygal/generators.py", line 341, in
populate_deps
    media.load_metadata(self.pindex)
  File "/usr/lib/python3/dist-packages/lazygal/sourcetree.py", line 152, in
load_metadata
    self.load_metadata_from_mediafile()
  File "/usr/lib/python3/dist-packages/lazygal/sourcetree.py", line 140, in
load_metadata_from_mediafile
    self._parse_metadata(mdloader)
  File "/usr/lib/python3/dist-packages/lazygal/sourcetree.py", line 233, in
_parse_metadata
    'keywords'    : list(mdloader.get_keywords()),
  File "/usr/lib/python3/dist-packages/lazygal/metadata.py", line 406, in
get_keywords
    values = self._metadata.get_tag_multiple(key)
SystemError: <class 'gobject.Warning'> returned a result with an error set

   * What outcome did you expect instead?

Normal creating of gallery. With keyword "Bj�rn" or without (doesn't matter)



Thank you!



-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'stable-security'), (90, 'experimental'), 
(90, 'unstable'), (70, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.0-5-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lazygal depends on:
ii  gir1.2-gexiv2-0.10  0.14.0-1
ii  libjs-jquery        3.6.0+dfsg+~3.5.13-1
ii  python3             3.9.8-1
ii  python3-genshi      0.7.6-1
ii  python3-gi          3.42.0-3
ii  python3-pil         9.0.1-1

lazygal recommends no packages.

Versions of packages lazygal suggests:
ii  ffmpeg  7:4.4.1-3+b2

-- no debconf information

Reply via email to