Your message dated Sun, 11 Mar 2018 22:20:45 +0000
with message-id <e1ev9kf-0009dl...@fasolo.debian.org>
and subject line Bug#819542: fixed in pywinrm 0.3.0-1
has caused the Debian Bug report #819542,
regarding python3-winrm unusable due to encoding error
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.)


-- 
819542: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819542
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-winrm
Version: 0.0.3-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

After installing python3-winrm and trying to follow the getting started example 
on https://pypi.python.org/pypi/pywinrm

This fails:

edb@lapelidb:/tmp$ cat test.py
#!/usr/bin/env python

import winrm
s = winrm.Session("1.2.3.4", auth=("admin", "admin"))
s.run_cmd("ipconfig", ["/all"])
edb@lapelidb:/tmp$ python3 test.py
Traceback (most recent call last):
  File "test.py", line 5, in <module>
    s.run_cmd("ipconfig", ["/all"])
  File "/usr/lib/python3/dist-packages/winrm/__init__.py", line 28, in run_cmd
    shell_id = self.protocol.open_shell()
  File "/usr/lib/python3/dist-packages/winrm/protocol.py", line 103, in 
open_shell
    rs = self.send_message(xmltodict.unparse(rq))
  File "/usr/lib/python3/dist-packages/winrm/protocol.py", line 173, in 
send_message
    return self.transport.send_message(message)
  File "/usr/lib/python3/dist-packages/winrm/transport.py", line 76, in 
send_message
    response = urlopen(request, timeout=self.timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 162, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 463, in open
    req = meth(req)
  File "/usr/lib/python3.5/urllib/request.py", line 1170, in do_request_
    raise TypeError(msg)
TypeError: POST data should be bytes or an iterable of bytes. It cannot be of 
type str.


There are some reports upstream:
 - https://github.com/diyan/pywinrm/issues/47
 - https://github.com/diyan/pywinrm/issues/80

I tested the latest upstream release (0.1.1 installed through pip3) which gave 
the same result.

On my system I tried to hotfix the version form the package, inspired upon this 
pull request https://github.com/diyan/pywinrm/pull/70

Mainly patching send_message() in protocol.py (lines 170-173) into


    def send_message(self, message):
        # TODO add message_id vs relates_to checking
        # TODO port error handling code
        return self.transport.send_message(message.encode("utf-8"))


And for me the package continued beyond this point.


So summary:
 - python3-winrm as available through apt is broken.
 - pywinrm as available today through pip (v 0.1.1) suffers from the same 
problem on my system.

my 2 cents
E.



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

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-winrm depends on:
ii  python3-isodate    0.5.4-1
ii  python3-xmltodict  0.9.2-3
pn  python3:any        <none>

Versions of packages python3-winrm recommends:
ii  python3-kerberos  1.1.5-2+b2

python3-winrm suggests no packages.

-- no debconf information
This message is subject to the following terms and conditions: MAIL 
DISCLAIMER<http://www.barco.com/en/maildisclaimer>

--- End Message ---
--- Begin Message ---
Source: pywinrm
Source-Version: 0.3.0-1

We believe that the bug you reported is fixed in the latest version of
pywinrm, 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 819...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Harlan Lieberman-Berg <hlieber...@debian.org> (supplier of updated pywinrm 
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: SHA512

Format: 1.8
Date: Sun, 11 Mar 2018 17:13:20 -0400
Source: pywinrm
Binary: python3-winrm
Architecture: source
Version: 0.3.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
Changed-By: Harlan Lieberman-Berg <hlieber...@debian.org>
Description:
 python3-winrm - Python 3 library for Windows Remote Management
Closes: 819542
Changes:
 pywinrm (0.3.0-1) unstable; urgency=medium
 .
   * New upstream release. (Closes: #819542)
   * Drop python2 module.
   * Switch to git for packaging.
Checksums-Sha1:
 4006af3696dcec4f5fd14276b9a5147524b1c197 2344 pywinrm_0.3.0-1.dsc
 239211ecb78197d1f995763387c3899d65e29264 25175 pywinrm_0.3.0.orig.tar.gz
 4bce4fcb12d8af0ccda7af56453fb064f9446df6 2052 pywinrm_0.3.0-1.debian.tar.xz
 3797444abb0a1d889ada2c872bc577b5fdcee3f2 6692 pywinrm_0.3.0-1_amd64.buildinfo
Checksums-Sha256:
 344091521efbf0bfff6594cbd4f6eb5421bf64e73908c7218ca4f482df0e7267 2344 
pywinrm_0.3.0-1.dsc
 799fc3e33fec8684443adf5778860388289102ea4fa1458f1bf307d167855573 25175 
pywinrm_0.3.0.orig.tar.gz
 15dc558ddee275467e18183db83d55f2510c5bc98cabefa25ef01faf04ee1531 2052 
pywinrm_0.3.0-1.debian.tar.xz
 de3f886998fe94eceb8b0399046e0cb72442649fa5d1c77c48efe0da377430be 6692 
pywinrm_0.3.0-1_amd64.buildinfo
Files:
 c6c206491e3d3fcc423820d3d163a881 2344 python optional pywinrm_0.3.0-1.dsc
 2e097509b7ddd5c08f8249ec5c23506b 25175 python optional 
pywinrm_0.3.0.orig.tar.gz
 0ad4f6c725e356c1f18f6b19b1bdeda4 2052 python optional 
pywinrm_0.3.0-1.debian.tar.xz
 27e2b9cb5e5a2cc850247db0f061e54a 6692 python optional 
pywinrm_0.3.0-1_amd64.buildinfo

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

iQKqBAEBCgCUFiEEhiNlIJf/8kpE2Nai6afXk4v2O6UFAlqlpxBfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDg2
MjM2NTIwOTdGRkYyNEE0NEQ4RDZBMkU5QTdENzkzOEJGNjNCQTUWHGhsaWViZXJt
YW5AZGViaWFuLm9yZwAKCRDpp9eTi/Y7pdxPD/4hJ/7SeOJF0iigyb3oBwg8P5YI
SXUw8ocR+hmcC0MC/VKgxKy+XzZu0k//+JQ2GJgskBsp/XIvKhKVfgVvN6JIWvD/
YSSMbiP9ZW9LQNmwoptJI3ukOTv3aUvbbkKgSFrnM/RzNVi4C7dB7i/2xGy5AAze
g2fr9CtTZaO6cphS4t7TGOTwAleUYA2lh4+vzFUoGrtUMFVuxbTmy8P1pIuJD8yR
Rc3BHeX5obkdd+oebUlfQnOsxwSewky8x1LG0HhHy0RvKjsQeCOlHr5cp4A1PFTU
7LFsC2J3v+M1ZY7ZBvHtVwjk+Ekv6A1MEqvOCJPjMAIoz8rscIAh8ndxcieqrtV0
GBWDN5o5+Qo9IsGAUYQfiOv8080rLFcUv4Wi2Zh7Kit/d6XlGjeES+RsePmBhSvM
YdHd9aaTzYmjyyRbm8jSNatt6wMavhDfzPWLEbW5NW3kgXA/gmcNKWiJXmw1Masi
yXUMTC80hZEVrXuz3SUuNX0tZDVmgvg3PJJ79v+zVbP4cWEWONLn7JSxN7CH4Kbk
yec3NJ8qytYxKcn3CzhzMFgrDalUtHob5T97Un76LuXEb5roHKwsWDimQtI2sBpL
VYEfgqpa35/uTUCNKb0hf5rZSxTw6kHp+Icurb6M7db8VPclM18D5jC8+JWKmhJ+
Z2zWPQOZVN6Oa5sCQw==
=YQbz
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to