[Bug 247437] net-mgmt/flow-tools: errors with Python 3.7
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jun 20 10:48:49 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247437
Bug ID: 247437
Summary: net-mgmt/flow-tools: errors with Python 3.7
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: bofh at freebsd.org
Reporter: andrew.hotlab at hotmail.com
Assignee: bofh at freebsd.org
Flags: maintainer-feedback?(bofh at freebsd.org)
I just discovered that building this port with the default Python version (at
this time, the 3.7 branch) breaks flow-report(1) because of (I guess) Python's
syntax changes. Here is an example:
% flow-cat 2020-06-19 | flow-report -v
TYPE=ip-destination-address/ip-source-port
File "/usr/local/bin/flow-rptfmt", line 113
print "Ignores: %s" % self.field_vals['ignores']
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print("Ignores: %s" % self.field_vals['ignores'])?
flow-report: pclose(flow-rptfmt -f ascii): failed exit code=1.
I do not know Python, but I tried to fix it by adding parentheses to the
print() calls to the file /usr/local/bin/flow-rptfmt, but I was only able to go
a bit further, and I gave up with this:
File "/usr/local/bin/flow-rptfmt", line 175
print i.ljust(self.field_lens[y]),
^
SyntaxError: invalid syntax
flow-report: pclose(flow-rptfmt -f ascii): failed exit code=1.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list