[Bug 251054] net-mgmt/flow-tools: errors with Python 3.7

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 11 16:42:50 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251054

            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 at freebsd.org
          Reporter: andrew.hotlab at hotmail.com
          Assignee: bofh at freebsd.org
             Flags: maintainer-feedback?(bofh at 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 
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 = string.split(line2,',')
AttributeError: module 'string' has no attribute 'split'
flow-report: pclose(flow-rptfmt -f ascii): failed exit code=1.

Another example:

# flow-cat ft-v05.2020-06-19.000001+0200 | flow-report -v
TYPE=ip-destination-address/ip-destination-port -v SORT=+octets -v
OPTIONS=-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=1.


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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list