Package: opgpcard
Version: 0.3.0-2
Severity: important
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Running opgpcard on unstable and testing leads to the attached lxml error.

I've reported the issue upstream and proposed a patch:
- https://github.com/juga0/opgpcard/issues/5
- https://github.com/juga0/opgpcard/pull/6

I believe the Debian package can fix this temporarily as the patch is trivial.

Also, opgpcard could use autopkgtests to prevent a breakage like this from
happening.

I'm willing to help implement these. Please let me know what you think.

Br,

Pieter


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.18.3+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=nl_BE:nl
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages opgpcard depends on:
ii  libjs-sphinxdoc  8.2.3-12
ii  python3          3.13.9-2
ii  python3-gpg      2.0.0-2+b1
ii  python3-lxml     6.0.2-1+b3
ii  python3-qrcode   8.2-1

opgpcard recommends no packages.

opgpcard suggests no packages.

-- no debconf information
Jan 13 21:18:37 opgpcard.opgpcard opgpcard[90734]: INFO - No arguments 
provided, searching for keys.
Jan 13 21:18:37 opgpcard.gpg_utils gpg_utils[90734]: INFO - Found private keys 
in your keyring.
Jan 13 21:18:37 opgpcard.gpg_utils gpg_utils[90734]: INFO - Using the first key 
found.
Jan 13 21:18:37 opgpcard.gpg_utils gpg_utils[90734]: INFO - Using attributes 
from the first UID {'mail': '[email protected]', 'fingerprint': 
'62EDE2D772D48680F99376A46D69C8F8529DB017', 'fname': 'Pieter', 'lname': 
'Lenaerts'}.
Jan 13 21:18:37 opgpcard.vcard_utils vcard_utils[90734]: INFO - VCard generated 
in output/opgpcard_PieterLenaerts.vcf.
Jan 13 21:18:37 opgpcard.opgpcard opgpcard[90734]: INFO - Generated base card 
in output/opgpcard_noqr_PieterLenaerts.svg
Traceback (most recent call last):
  File "/usr/bin/opgpcard", line 33, in <module>
    sys.exit(load_entry_point('opgpcard==0.3.0', 'console_scripts', 
'opgpcard')())
             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/opgpcard/cli.py", line 95, in main
    gen_opgpcard(args)
    ~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3/dist-packages/opgpcard/opgpcard.py", line 188, in 
gen_opgpcard
    qrsvg.gen_qr_svgimage(vcard, qr_path)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/opgpcard/qrsvg.py", line 38, in 
gen_qr_svgimage
    img = qr.make_image(fit=True)
  File "/usr/lib/python3/dist-packages/qrcode/main.py", line 369, in make_image
    im = image_factory(
        self.border,
    ...<3 lines>...
        **kwargs,
    )
  File "/usr/lib/python3/dist-packages/qrcode/image/svg.py", line 141, in 
__init__
    super().__init__(*args, **kwargs)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qrcode/image/svg.py", line 25, in 
__init__
    super().__init__(*args, **kwargs)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qrcode/image/base.py", line 139, in 
__init__
    super().__init__(*args, **kwargs)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qrcode/image/base.py", line 30, in 
__init__
    self._img = self.new_image(**kwargs)
                ~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qrcode/image/svg.py", line 59, in 
new_image
    return self._svg(**kwargs)
           ~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qrcode/image/svg.py", line 147, in _svg
    return super()._svg(viewBox=viewBox, **kwargs)
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qrcode/image/svg.py", line 92, in _svg
    svg = super()._svg(tag=tag, **kwargs)
  File "/usr/lib/python3/dist-packages/qrcode/image/svg.py", line 65, in _svg
    return ET.Element(
           ~~~~~~~~~~^
        tag,  # type: ignore
        ^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        **kwargs,
        ^^^^^^^^^
    )
    ^
  File "src/lxml/etree.pyx", line 3204, in lxml.etree.Element.__new__
  File "src/lxml/apihelpers.pxi", line 138, in lxml.etree._makeElement
  File "src/lxml/apihelpers.pxi", line 126, in lxml.etree._makeElement
  File "src/lxml/apihelpers.pxi", line 322, in lxml.etree._initNodeAttributes
  File "src/lxml/apihelpers.pxi", line 336, in lxml.etree._addAttributeToNode
  File "src/lxml/apihelpers.pxi", line 1536, in lxml.etree._utf8
TypeError: Argument must be bytes or unicode, got 'bool'

Reply via email to