Your message dated Fri, 14 Sep 2018 14:40:57 +0000
with message-id <e1g0phf-0003zs...@fasolo.debian.org>
and subject line Bug#907370: fixed in python-sh 1.12.14-1.1
has caused the Debian Bug report #907370,
regarding TypeError: object of type 'int' has no len()
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
907370: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907370
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-sh
Version: 1.11-1
Severity: grave

I found a regression in the python3-sh package. I have yet to find
exactly what is going on, but it looks to me like something changed in
Python 3.6 that broke the sh module in some way:

$ lwn get -o blog/2017-12-13-kubecon-overview.mdwn 
https://lwn.net/Articles/741301/
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/sh.py", line 1453, in input_thread
    done = stdin.write()
  File "/usr/lib/python3/dist-packages/sh.py", line 1799, in write
    self.log.debug("got chunk size %d: %r", len(proc_chunk),
TypeError: object of type 'int' has no len()

The source for the `lwn` command is here:

https://gitlab.com/anarcat/lwn/blob/master/lwn.py

It's totally unclear to me, from the backtrace, from *where* exactly
sh is being called, so I am having a hard time writing a
reproducer... But I am *guessing* it's this call:

    result = sh.pandoc(filter_args, _in=content)

But really, I have no frigging clue.

Any brilliant idea of what could possibly be going on here? This used
to work fine in Debian stretch (which has the same version of
python3-sh, so probably no change there).

My best guess so far is something changed in some standard library,
but I really have no idea...

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-sh depends on:
ii  python3  3.6.5-3

python3-sh recommends no packages.

python3-sh suggests no packages.

-- debconf-show failed

--- End Message ---
--- Begin Message ---
Source: python-sh
Source-Version: 1.12.14-1.1

We believe that the bug you reported is fixed in the latest version of
python-sh, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 907...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antoine Beaupré <anar...@debian.org> (supplier of updated python-sh package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 04 Sep 2018 09:04:49 -0400
Source: python-sh
Binary: python-sh python3-sh
Architecture: source
Version: 1.12.14-1.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
Changed-By: Antoine Beaupré <anar...@debian.org>
Description:
 python-sh  - Python subprocess interface
 python3-sh - Python 3 subprocess interface
Closes: 907370
Changes:
 python-sh (1.12.14-1.1) unstable; urgency=medium
 .
   [ Antoine Beaupré ]
   * Non-maintainer upload
   * New upstream version 1.12.14 (Closes: #907370)
 .
   [ Ondřej Nový ]
   * Fixed VCS URL (https)
   * d/control: Set Vcs-* to salsa.debian.org
   * d/copyright: Fix Format URL to correct one
   * d/watch: Use https protocol
   * d/control: Remove ancient X-Python-Version field
   * d/control: Remove ancient X-Python3-Version field
   * Convert git repository from git-dpm to gbp layout
Checksums-Sha1:
 0a945aec99d8f3d11853cacc3ce70cae0dc4e7e8 1799 python-sh_1.12.14-1.1.dsc
 4ba53052560bedc70f8f1cd305c593f8c75f9d10 57288 python-sh_1.12.14.orig.tar.gz
 74eade71871761ec162b906ccb7f88727e5043d3 2596 
python-sh_1.12.14-1.1.debian.tar.xz
 1e73caeed19ef00eb1c84e45815ec30161df835b 6632 
python-sh_1.12.14-1.1_amd64.buildinfo
Checksums-Sha256:
 e3530a4117b85e6473c2d2c29a547832c9cd0f06e6064611b0c82f887c1ccdfe 1799 
python-sh_1.12.14-1.1.dsc
 2347dc0ebcb47370308ebd2499456c6d7ce50d4b693230c91377038f45d88d8d 57288 
python-sh_1.12.14.orig.tar.gz
 637dd735927d4f6d6bca5ee53088ffd1221878f7692473825670ade573e76de8 2596 
python-sh_1.12.14-1.1.debian.tar.xz
 7c385010c3213beb7d8034a3758304233ec45ff1e884683215931cd8fba60e93 6632 
python-sh_1.12.14-1.1_amd64.buildinfo
Files:
 09725e03e258a49587b1c1d96227ad79 1799 python optional python-sh_1.12.14-1.1.dsc
 e5dc0daf4ff5f80c08075c6c38ff1322 57288 python optional 
python-sh_1.12.14.orig.tar.gz
 e4a88fc6c2d2ead622055a9d6202263b 2596 python optional 
python-sh_1.12.14-1.1.debian.tar.xz
 c3cc9b0148b15cf74d0d00e0555c0712 6632 python optional 
python-sh_1.12.14-1.1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEexZCBNCWcjsBljWrPqHd3bJh2XsFAluOhbsACgkQPqHd3bJh
2Xs0Ugf9FaDotQR5EhDtoX6MmHKv0K6aJOZ08AaUHSfJM5d4ZQrfyAB4iLxEK6WR
Y8jv58O1CusACRG6Z6oaycSCmAR8gf1q5Rn9qG+He/HiFvhDdnND07zL4Wi+z1Ea
hOzPKhpvn0Ytdq2XEI2+mKnJiYZDdHHNmMygWZNJJhhzZKBVDfrXciJwBM+LWmJq
g82SEDTkAO60m/KTJaOrNKBSS5t2AJijVfCePwGhbqnJGV4S1s5M1hRFIozDgyJi
e4WZoQPqaDB4UCglIRXogAu9wbvmfZi6Sdqj6ifd9Pfrbv8P9pte9E+di5kJzt8y
TL/uqlaGbyfyfI/somvDXc0kLLf03g==
=mQHQ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to