Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jun 2020 10:48:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 247437] net-mgmt/flow-tools: errors with Python 3.7
Message-ID:  <bug-247437-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247437

            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@freebsd.org
          Reporter: andrew.hotlab@hotmail.com
          Assignee: bofh@freebsd.org
             Flags: maintainer-feedback?(bofh@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) Pytho=
n's
syntax changes. Here is an example:

% flow-cat 2020-06-19 | flow-report -v
TYPE=3Dip-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=3D1.



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 t=
o 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=3D1.

--=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-247437-7788>