[3dprinter-general] Bug#999335: cura: Zeroconf no longer works due to API change

Gregor Riepl onitake at gmail.com
Tue Nov 9 23:17:28 GMT 2021


Package: cura
Version: 4.8-4
Severity: normal
X-Debbugs-Cc: onitake at gmail.com

When loading the zeroconf module, the following stack trace is produced:

UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]: Exception: Failed to get service info for [_ultimaker._tcp.local.]
[ultimakersystem-ccbdd3003991._ultimaker._tcp.local.], the request will be
rescheduled
UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]: Traceback (most recent call last):
UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]:   File
"/usr/lib/cura/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py", line
95, in _handleOnServiceChangedRequests
UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]:     result = self._onServiceChanged(zeroconf, service_type, name,
state_change)
UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]:   File
"/usr/lib/cura/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py", line
117, in _onServiceChanged
UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]:     return self._onServiceAdded(zero_conf, service_type, name)
UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]:   File
"/usr/lib/cura/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py", line
132, in _onServiceAdded
UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]:     if info.address:
UM3NetworkPrinting.src.Network.ZeroConfClient._handleOnServiceChangedRequests
[99]: AttributeError: 'ServiceInfo' object has no attribute 'address'

This was caused by: https://github.com/jstasiak/python-zeroconf/pull/260

It shouldn't be too hard fix. Here's and example how it could be done:
https://github.com/rytilahti/python-miio/pull/898/files
And it's possibly already fixed upstream?


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

Kernel: Linux 5.14.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_USER
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cura depends on:
ii  cura-engine                         1:4.8-1
ii  fdm-materials                       4.8-1
ii  fonts-open-sans                     1.11-1.1
ii  python3                             3.9.2-3
ii  python3-certifi                     2020.6.20-1
ii  python3-charon                      4.8-1
ii  python3-cryptography                3.3.2-1
ii  python3-pynest2d                    4.8.0-2
ii  python3-pyqt5                       5.15.6+dfsg-1
ii  python3-pyqt5.qtopengl              5.15.6+dfsg-1
ii  python3-requests                    2.25.1+dfsg-2
ii  python3-savitar                     4.8-1+b1
ii  python3-serial                      3.5~b0-1
ii  python3-shapely                     1.8.0-1
ii  python3-uranium                     4.8-1
ii  qml-module-qt-labs-folderlistmodel  5.15.2+dfsg-8
ii  qml-module-qt-labs-settings         5.15.2+dfsg-8
ii  qml-module-qtqml-models2            5.15.2+dfsg-8
ii  qml-module-qtquick-controls         5.15.2-2
ii  qml-module-qtquick-controls2        5.15.2+dfsg-4
ii  qml-module-qtquick-dialogs          5.15.2-2
ii  uranium-plugins                     4.8-1

Versions of packages cura recommends:
ii  python3-zeroconf  0.36.9-1

cura suggests no packages.

-- no debconf information



More information about the 3dprinter-general mailing list