Package: pyqt5-dev-tools
Version: 5.15.7+dfsg-1
Severity: important

Dear Maintainer,

When I run `gbp buildpackage --git-pbuilder` to check debian packages,
it fails when pylupdate5 is invoked:

-------------------8<--------------------------
  File "/usr/lib/python3/dist-packages/PyQt5/pylupdate_main.py", line 73, in
_encoded_path
    return path.encode(locale.getdefaultlocale()[1])
TypeError: encode() argument 'encoding' must be str, not None
-------------------8<--------------------------

This happens since Python3 became Python3.10: in a cowbuilder shell,
locale.getdefaultlocale() returns now (None, None), which may be legitimate.
However it should not prevent pylupdate to make its work. In this case,
the rigth thing to do might be: `encoding="C"; return path.encode(encoding)`

I pushed such a change into our Salsa repository, and I shall make an upload to
DELAYED+15; please feel free to tell me to cancel this upload.

Thank you in advance for any comment.

Best regards,                     Georges.

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: bookworm/sid
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-17-amd64 (SMP w/4 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pyqt5-dev-tools depends on:
ii  libc6          2.35-1
ii  libqt5core5a   5.15.4+dfsg-5
ii  libqt5xml5     5.15.4+dfsg-5
ii  libstdc++6     12.2.0-3
ii  python3        3.10.6-1
ii  python3-pyqt5  5.15.7+dfsg-1

pyqt5-dev-tools recommends no packages.

pyqt5-dev-tools suggests no packages.

-- no debconf information

Reply via email to