Your message dated Sat, 13 Oct 2018 14:50:32 +0000
with message-id <[email protected]>
and subject line Bug#907992: fixed in xdot 1.0-1
has caused the Debian Bug report #907992,
regarding xdot: Cannot read from standard input
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 [email protected]
immediately.)


-- 
907992: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907992
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xdot
Version: 0.9-2
Severity: important

Dear Maintainer,

xdot cannot read from stdin.

This is unfortunately how I usually use xdot..

I usually do like:

  debtree ...  | xdot -

It fails like this:

Traceback (most recent call last):
  File "/usr/bin/xdot", line 4, in <module>
    main()
  File "/usr/lib/python3/dist-packages/xdot/__main__.py", line 75, in main
    win.set_dotcode(sys.stdin.read())
  File "/usr/lib/python3/dist-packages/xdot/ui/window.py", line 598, in 
set_dotcode
    if self.dotwidget.set_dotcode(dotcode, filename):
  File "/usr/lib/python3/dist-packages/xdot/ui/window.py", line 142, in 
set_dotcode
    if self._set_dotcode(dotcode, filename):
  File "/usr/lib/python3/dist-packages/xdot/ui/window.py", line 128, in 
_set_dotcode
    assert isinstance(dotcode, bytes)
AssertionError


Luckily, the fix is easy, and already done upstream:

https://github.com/jrfonseca/xdot.py/commit/fc02ef4940a8894472fafba47b21e0df3b3c6315

Just change one line with a patch:


diff --git a/xdot/__main__.py b/xdot/__main__.py
index a7c404b..41ec65e 100755
--- a/xdot/__main__.py
+++ b/xdot/__main__.py
@@ -72,7 +72,7 @@ def main():
     win.set_filter(options.filter)
     if inputfile and len(inputfile) >= 1:
         if inputfile == '-':
-            win.set_dotcode(sys.stdin.read())
+            win.set_dotcode(sys.stdin.buffer.read())
         else:
             win.open_file(inputfile)


Best regards
Ruben


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

Kernel: Linux 4.9.0-8-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages xdot depends on:
ii  gir1.2-gtk-3.0    3.22.30-2
ii  graphviz          2.40.1-3
ii  python3           3.6.6-1
ii  python3-gi        3.28.3-1
ii  python3-gi-cairo  3.28.3-1
ii  python3-graphviz  0.8.4-2

xdot recommends no packages.

xdot suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: xdot
Source-Version: 1.0-1

We believe that the bug you reported is fixed in the latest version of
xdot, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <[email protected]> (supplier of updated xdot 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 13 Oct 2018 15:41:40 +0200
Source: xdot
Binary: xdot
Architecture: source
Version: 1.0-1
Distribution: unstable
Urgency: medium
Maintainer: Python Applications Packaging Team 
<[email protected]>
Changed-By: Stefano Rivera <[email protected]>
Description:
 xdot       - interactive viewer for Graphviz dot files
Closes: 907992
Changes:
 xdot (1.0-1) unstable; urgency=medium
 .
   * New upstream release. (Closes: #907992)
   * Bump Standards-Version to 4.2.1, no changes needed.
Checksums-Sha1:
 871f4d27e4c61a24ca1fcefbcc204b9e7c9c3102 1618 xdot_1.0-1.dsc
 a634ab0844732b86045680f8c6f52a7fb7d04a4f 26507 xdot_1.0.orig.tar.gz
 ac21bfb7ffa8fc5fd4b983eefa24d672a1162a11 4524 xdot_1.0-1.debian.tar.xz
 910486ccaaa3e37c353b9aecd5083d870bc75fc7 5456 xdot_1.0-1_source.buildinfo
Checksums-Sha256:
 996ce0866d1c7dc444c3b6f5e1f11941f91681cb70a3225b9e8149f6fdf5a043 1618 
xdot_1.0-1.dsc
 7e067896d729af82f1fd0758e265f129944d469c30f550e3f15dbdb751cc42a1 26507 
xdot_1.0.orig.tar.gz
 49f82370c513344686210f78152ae435205743cc5c2fa6762f54477555baac39 4524 
xdot_1.0-1.debian.tar.xz
 b836adf99fdfabbba69d830517e15281f0476280a801949cba43046887b4de9a 5456 
xdot_1.0-1_source.buildinfo
Files:
 036d1aa7fc197f87dc7c0e1beafd928c 1618 python optional xdot_1.0-1.dsc
 976e76184ca1587b7697c2e828e2fa49 26507 python optional xdot_1.0.orig.tar.gz
 eff6cea35556b66d3c4306bb36c844a6 4524 python optional xdot_1.0-1.debian.tar.xz
 c0cd8dc493719d7e9b4ad5bfb3bf4a14 5456 python optional 
xdot_1.0-1_source.buildinfo

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

iQFIBAEBCgAyFiEE/zEtpbjiRmXHk+j/6vGSvKo/D1EFAlvB9iUUHHN0ZWZhbm9y
QGRlYmlhbi5vcmcACgkQ6vGSvKo/D1GaEQf9G06C0XHxMmb2xm7KvcUiZmtZvSVr
gQS0PqUDF0Lkk+ahk2EIKgSTja76mJ4ToDxTTBAKbKlYETjOle2K1jO/KRnmuLer
b3om/ri5hovf6VLHpPZt1mEZ/Ek0BBPuX+ZvMxk0zz40c/N5R3k7j4AQfKShOhtm
X02tmDvXKDYa+INvjPEtYyOYlsqiXqrSvSO7Don3xzA+ScjzG2IZgYxmiNiE+St6
HwwEeXnIBhVhgvk1da3+H0o2AAaZEA1qRSYVtJEqTGDicNySfr/pO1fKTCWTRxS4
vKJTfAsAc1m/la/bMCLjc6dhtC8rPFm2StxkvF/9YBzSHaNWSrUVAYUoRw==
=V//G
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to