Date: Wed, 11 Nov 2020 16:42:49 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 251054] net-mgmt/flow-tools: errors with Python 3.7 Message-ID: <bug-251054-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251054 Bug ID: 251054 Summary: net-mgmt/flow-tools: errors with Python 3.7 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: bofh@freebsd.org Reporter: andrew.hotlab@hotmail.com Assignee: bofh@freebsd.org Flags: maintainer-feedback?(bofh@freebsd.org) After transition from python 2.7 to 3.7, flow-report(1) seems to have some issues... for example: # flow-cat ft-v05.2020-06-19.000001+0200 | flow-report=20 Traceback (most recent call last): File "/usr/local/bin/flow-rptfmt", line 533, in <module> rpt.load(sys.stdin, opt_sort_field, opt_max_lines, opt_percent) File "/usr/local/bin/flow-rptfmt", line 297, in load splt =3D string.split(line2,',') AttributeError: module 'string' has no attribute 'split' flow-report: pclose(flow-rptfmt -f ascii): failed exit code=3D1. Another example: # flow-cat ft-v05.2020-06-19.000001+0200 | flow-report -v TYPE=3Dip-destination-address/ip-destination-port -v SORT=3D+octets -v OPTIONS=3D-header Traceback (most recent call last): File "/usr/local/bin/flow-rptfmt", line 533, in <module> rpt.load(sys.stdin, opt_sort_field, opt_max_lines, opt_percent) File "/usr/local/bin/flow-rptfmt", line 324, in load for i in string.split(line[8:],','): AttributeError: module 'string' has no attribute 'split' flow-report: pclose(flow-rptfmt -f ascii): failed exit code=3D1. As asked in bug #249388, comment #6, here is the content of /usr/local/etc/cfg/stat.cfg: stat-report default type @{TYPE:-summary-detail} output format ascii sort @{SORT:-+} fields @{FIELDS:-+} options @{OPTIONS:-+header,+xheader,+totals} path |flow-rptfmt @{RPTOPT:--f ascii} stat-definition default report default --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251054-7788>