Bug#1010537: python3-msgpack-numpy: please upgrade or remove `encoding` arguments
Étienne Mollier
emollier at emlwks999.eu
Tue May 3 21:21:43 BST 2022
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 <emollier at emlwks999.eu>
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2to3.patch
Type: text/x-diff
Size: 3986 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20220503/0ab5095a/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20220503/0ab5095a/attachment.sig>
More information about the debian-science-maintainers
mailing list