[ovs-dev] [PATCH] bugtool: Fix for Python3

William Tu u9012063 at gmail.com
Thu Mar 19 14:28:16 UTC 2020


On Thu, Mar 19, 2020 at 4:03 AM Timothy Redaelli <tredaelli at redhat.com> wrote:
>
> On Wed, 18 Mar 2020 14:25:43 -0700
> William Tu <u9012063 at gmail.com> wrote:
>
> > On Wed, Mar 18, 2020 at 8:23 AM Timothy Redaelli <tredaelli at redhat.com> wrote:
> > >
> > > Currently ovs-bugtool tool doesn't start on Python3.
> > > This commit fixes ovs-bugtool to make it works on Python.3
> > >
> > > Reported-at: https://bugzilla.redhat.com/1809241
> > > Reported-by: Flavio Leitner <fbl at sysclose.org>
> > > Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
> > > ---
> >
> > Thanks for the patch. I tried to fix it before but haven't get it done yet.
> > I run your patch and got this error, can you take a look?
> >
> > ovs# ./utilities/bugtool/ovs-bugtool -y -s --output=tar.gz
> > --outfile=/var/log/bugtool-report.tgz
> > Traceback (most recent call last):
> >   File "./utilities/bugtool/ovs-bugtool", line 1405, in <module>
> >     sys.exit(main())
> >   File "./utilities/bugtool/ovs-bugtool", line 717, in main
> >     collect_data()
> >   File "./utilities/bugtool/ovs-bugtool", line 366, in collect_data
> >     run_procs(process_lists.values())
> >   File "./utilities/bugtool/ovs-bugtool", line 1344, in run_procs
> >     p.read_line()
> >   File "./utilities/bugtool/ovs-bugtool", line 1313, in read_line
> >     self.inst.write(line.decode())
> > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position
> > 67: invalid continuation byte
> >
> > Thanks
> > William
> >
>
> Thank you,
> I'll send a v2 as soon as possibile
>
thanks!
my previous patch here FYI, if it helps
https://mail.openvswitch.org/pipermail/ovs-dev/2020-February/368111.html


More information about the dev mailing list