Your message dated Sun, 08 May 2022 12:18:52 +0000
with message-id <[email protected]>
and subject line Bug#1010537: fixed in python-msgpack-numpy 0.4.7.1-1
has caused the Debian Bug report #1010537,
regarding python3-msgpack-numpy: please upgrade or remove `encoding` arguments
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.)


-- 
1010537: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010537
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-msgpack-numpy
Version: 0.4.4-1.1
Severity: important
Tags: patch
Control: block 829424 by -1
Control: affects -1 + psychopy

Hello,

When investigating #829424 with upstream developper of
psychopy[1], I was first under the impression that
msgpack_numpy.py still seems to primarily target python2.  This
is causing failure to execute the iohub server in psychopy with
the following symptoms, in python3 console:

        >>> import psychopy.iohub as iohub
        >>> io = iohub.launchHubServer()
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
          File 
"/usr/lib/python3/dist-packages/psychopy/contrib/lazy_import.py", line 118, in 
__call__
            return obj(*args, **kwargs)
          File 
"/usr/lib/python3/dist-packages/psychopy/iohub/client/connect.py", line 256, in 
launchHubServer
            return ioHubConnection(iohub_config)
          File 
"/usr/lib/python3/dist-packages/psychopy/iohub/client/__init__.py", line 294, 
in __init__
            self.iohub_status = self._startServer(ioHubConfig, 
ioHubConfigAbsPath)
          File 
"/usr/lib/python3/dist-packages/psychopy/iohub/client/__init__.py", line 984, 
in _startServer
            self.udp_client = UDPClientConnection(remote_port=server_udp_port, 
timeout=0.1)
          File "/usr/lib/python3/dist-packages/psychopy/iohub/net.py", line 
116, in __init__
            SocketConnection.__init__(self, remote_host=remote_host,
          File "/usr/lib/python3/dist-packages/psychopy/iohub/net.py", line 48, 
in __init__
            self.packer = msgpack.Packer()
          File "/usr/lib/python3/dist-packages/msgpack_numpy.py", line 127, in 
__init__
            super(Packer, self).__init__(default=default,
          File "msgpack/_packer.pyx", line 124, in 
msgpack._cmsgpack.Packer.__init__
        TypeError: __init__() got an unexpected keyword argument 'encoding'

The patch in attachment works around this issue by converting
the script to python3 and removing the calls to encoding
arguments which don't seem available anymore.

[1]: https://github.com/psychopy/psychopy/issues/4440

That being said, I noted a few minutes later that the watch file
was failing to work, and that the python-msypack-numpy package
is actually out-of-date, so I believe solving the issue might
simply be a matter of upgrading the package.

Have a nice day,  :)
Étienne.

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

Kernel: Linux 5.16.0-6-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.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 python3-msgpack-numpy depends on:
ii  python3          3.10.4-1+b1
ii  python3-msgpack  1.0.3-1
ii  python3-numpy    1:1.21.5-1

python3-msgpack-numpy recommends no packages.

python3-msgpack-numpy suggests no packages.

-- no debconf information

-- 
Étienne Mollier <[email protected]>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/8, please excuse my verbosity.
On air: Kansas - Journey From Mariabrown
--- python-msgpack-numpy-0.4.4.orig/msgpack_numpy.py
+++ python-msgpack-numpy-0.4.4/msgpack_numpy.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 """
 Support for serialization of numpy data types with msgpack.
@@ -125,7 +125,6 @@
                      use_bin_type=0):
             default = functools.partial(encode, chain=default)
             super(Packer, self).__init__(default=default,
-                                         encoding=encoding,
                                          unicode_errors=unicode_errors,
                                          use_single_float=use_single_float,
                                          autoreset=autoreset,
@@ -144,7 +143,6 @@
                                            object_hook=object_hook,
                                            object_pairs_hook=object_pairs_hook,
                                            list_hook=list_hook,
-                                           encoding=encoding,
                                            unicode_errors=unicode_errors,
                                            max_buffer_size=max_buffer_size,
                                            ext_hook=ext_hook)
@@ -251,10 +249,10 @@
         def test_str(self):
             assert_equal(type(self.encode_decode('foo')), bytes)
             if sys.version_info.major == 2:
-                assert_equal(type(self.encode_decode(u'foo')), str)
+                assert_equal(type(self.encode_decode('foo')), str)
 
                 # Test non-default string encoding/decoding:
-                assert_equal(type(self.encode_decode(u'foo', True, 'utf=8')), unicode)
+                assert_equal(type(self.encode_decode('foo', True, 'utf=8')), str)
                 
         def test_numpy_scalar_bool(self):
             x = np.bool_(True)
@@ -338,10 +336,10 @@
         def test_dict_complex(self):
             x = {b'foo': 1.0+1.0j, b'bar': 2.0+2.0j}
             x_rec = self.encode_decode(x)
-            assert_array_equal(sorted(x.values(), key=np.linalg.norm),
-                               sorted(x_rec.values(), key=np.linalg.norm))
-            assert_array_equal([type(e) for e in sorted(x.values(), key=np.linalg.norm)],
-                               [type(e) for e in sorted(x_rec.values(), key=np.linalg.norm)])
+            assert_array_equal(sorted(list(x.values()), key=np.linalg.norm),
+                               sorted(list(x_rec.values()), key=np.linalg.norm))
+            assert_array_equal([type(e) for e in sorted(list(x.values()), key=np.linalg.norm)],
+                               [type(e) for e in sorted(list(x_rec.values()), key=np.linalg.norm)])
             assert_array_equal(sorted(x.keys()), sorted(x_rec.keys()))
             assert_array_equal([type(e) for e in sorted(x.keys())],
                                [type(e) for e in sorted(x_rec.keys())])
@@ -369,10 +367,10 @@
         def test_dict_numpy_complex(self):
             x = {b'foo': np.complex128(1.0+1.0j), b'bar': np.complex128(2.0+2.0j)}
             x_rec = self.encode_decode(x)
-            assert_array_equal(sorted(x.values(), key=np.linalg.norm),
-                               sorted(x_rec.values(), key=np.linalg.norm))
-            assert_array_equal([type(e) for e in sorted(x.values(), key=np.linalg.norm)],
-                               [type(e) for e in sorted(x_rec.values(), key=np.linalg.norm)])
+            assert_array_equal(sorted(list(x.values()), key=np.linalg.norm),
+                               sorted(list(x_rec.values()), key=np.linalg.norm))
+            assert_array_equal([type(e) for e in sorted(list(x.values()), key=np.linalg.norm)],
+                               [type(e) for e in sorted(list(x_rec.values()), key=np.linalg.norm)])
             assert_array_equal(sorted(x.keys()), sorted(x_rec.keys()))
             assert_array_equal([type(e) for e in sorted(x.keys())],
                                [type(e) for e in sorted(x_rec.keys())])

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: python-msgpack-numpy
Source-Version: 0.4.7.1-1
Done: Étienne Mollier <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-msgpack-numpy, 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.
Étienne Mollier <[email protected]> (supplier of updated python-msgpack-numpy 
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: Sun, 08 May 2022 12:50:01 +0200
Source: python-msgpack-numpy
Architecture: source
Version: 0.4.7.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Étienne Mollier <[email protected]>
Closes: 829424 1010537
Changes:
 python-msgpack-numpy (0.4.7.1-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream version.  (Closes: #1010537, #829424)
   * Fix watchfile to detect new versions on github
   * Standards-Version: 4.6.0 (routine-update)
   * debhelper-compat 13 (routine-update)
   * Add salsa-ci file (routine-update)
   * Rules-Requires-Root: no (routine-update)
   * Set upstream metadata fields: Bug-Database, Bug-Submit.
   * d/u/metadata: fix upstream-metadata-missing-repository.
   * d/copyright: update copyright years.
   * d/control: add myself to uploaders.
Checksums-Sha1:
 3b3f3e0a0328149cff6bb012e5e68f247db011ee 2347 
python-msgpack-numpy_0.4.7.1-1.dsc
 1403ecb715e932c1016c5a8e1fcf693e20640c25 9846 
python-msgpack-numpy_0.4.7.1.orig.tar.gz
 f5d17a702ac5623ee19b8325cab7b52ef768399c 2424 
python-msgpack-numpy_0.4.7.1-1.debian.tar.xz
Checksums-Sha256:
 da67df23064f593c1041edcc4d9e6913ae31f595c4c506f6053aa08d971d89a8 2347 
python-msgpack-numpy_0.4.7.1-1.dsc
 c1f3fc082efbf733aeb24aa638db622b8f6d6320a82b19116dc97e7afd0ab5cc 9846 
python-msgpack-numpy_0.4.7.1.orig.tar.gz
 e7fdc3b656a0468eeecf9bc4d3f924f257dd4400fef2a15ea45c54abed40d57d 2424 
python-msgpack-numpy_0.4.7.1-1.debian.tar.xz
Files:
 343a4d2b8970dbaafaa1c0709c12f81b 2347 python optional 
python-msgpack-numpy_0.4.7.1-1.dsc
 2fe4651b7220265f8291063f01b6ad3d 9846 python optional 
python-msgpack-numpy_0.4.7.1.orig.tar.gz
 51549c1e1a75be8087a2b36c70e4a106 2424 python optional 
python-msgpack-numpy_0.4.7.1-1.debian.tar.xz

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

iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmJ3rqIUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdqb8g//T/upwyt1g3jyJah32Ay8eNhaTVNH
BR48slO9gWoJbJmey4ThTJeeTwtOo1H99OMnqyTMffLqpOKAaNXiB2gZNnNDS9lg
kgI5ouqZ+vajEVyvG1qFPRt62iuBR/amqjb7OjfrBVEZeJ7asptUuNYfKJ9z6bvh
UNX+1xxSS7qQ+bVqVw7qsesHjaMFeX8XYYxyjm4ZUgn+b0VfJviaKAAeTCaO32a0
FGL12KS4NJf1yIbBbyqIo2ok5kKpDcVW9OlgCutmKKCa2F7appcZxIFolSWy3t01
arYg+/2jM89oKZrBu37IAqZoQWpSN64Be5p00WRNLNpAOEbCczDaXGJqxmEC7Dw2
qFGd6bVHtdaPyzj/EZS1W2CowwGMH7i9HlqjpRclXNCSQQHMfu8IhcegWeD23lBm
yN2KlWKbLp9nXyK7+ubf6VAkds9hJAXt/k9k7LfGAHEf2ImKGDvR/qKDU7M/HgpE
+QZvLQggzYHuFuVnlmp6+bVKOATs4f7wGcyWFEdxrYGWIbLEfcUstitFdLrBtWiv
fbyI2coCSU3UPiDZ9LLlBpMPsQpHsd3/nTBt/bXg3pc3IcAOn/m9a2QyxZoWTqD8
eN7XbnqHC6HE7yh/HYlf7g7uDHBL5L6Yaf5ZtXsK7ZU9k3B0g8zuE/g7jwVCVbst
eRpQVE8/eyTtmTs=
=GDIM
-----END PGP SIGNATURE-----

--- End Message ---
-- 
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to