[Bug 265237] mail/pyzor: Crash on iteritems() on Python 3.9
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Jul 2022 15:37:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265237
Bug ID: 265237
Summary: mail/pyzor: Crash on iteritems() on Python 3.9
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: dbaio@freebsd.org
Reporter: swig.morning0d@icloud.com
Assignee: dbaio@freebsd.org
Flags: maintainer-feedback?(dbaio@freebsd.org)
The pyzor command in the py39-pyzor-1.0.0_1 package crashes because dicts no
longer have an iteritems() method:
% pyzor ping
Traceback (most recent call last):
File "/usr/local/bin/pyzor", line 432, in <module>
main()
File "/usr/local/bin/pyzor", line 131, in main
config, options, args = load_configuration()
File "/usr/local/bin/pyzor", line 113, in load_configuration
for key, value in defaults.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
I can see they fixed this Python 2/3 problem in 2016 upstream:
https://github.com/SpamExperts/pyzor/commit/7afe0aedc320dd2689bfbf45e97fdb09adb89686
I understand that upstream hasn't released anything since 2014, and there's not
much you can do about that. I just wanted to let you know that the port is
broken as is.
I'm testing this in a jail on TrueNAS, but I don't believe that is related.
% uname -a
FreeBSD mail.home.2pi.dk 13.1-RELEASE FreeBSD 13.1-RELEASE n245376-eba770b30ff
TRUENAS amd64
% python3.9 -V
Python 3.9.13
--
You are receiving this mail because:
You are the assignee for the bug.