On Fri, Sep 25, 2020 at 5:35 PM Daniel P. Berrangé <berrange@redhat.com> wrote:> On Fri, Sep 25, 2020 at 05:31:09PM +0800, Wei Wang wrote: > > On Fri, Sep 25, 2020 at 5:24 PM Andrea Bolognani <abologna@redhat.com> > > wrote: > > > > > On Fri, 2020-09-25 at 10:16 +0100, Daniel P. Berrangé wrote: > > > > On Fri, Sep 25, 2020 at 05:03:24PM +0800, Wei Wang wrote: > > > > > /usr/local/bin/rst2html5 --stylesheet= --strict > docs/manpages/virsh.rst > > > > > docs/manpages/virsh.rst:41: (ERROR/3) Error in "code-block" > directive: > > > > > 1 argument(s) required, 0 supplied. > > > > > > > > > > .. code-block:: > > > > > > > > > > virsh [OPTION]... <command> <domain> [ARG]... > > > > > > > > This is a sign of having a bad version of "rst2html5" installed. > > > > > > > > We expect to be using rst2html5 that comes with python docutils > > > > package. > > > > > > Yeah, the python3-docutils Debian package will contain a working > > > rst2html5 binary. > > > > > > > > That's strange, my rst2html5 comes from docutils: > > python3-docutils: /usr/share/docutils/scripts/python3/rst2html5 > > > > and > > /usr/local/bin/rst2html5 --version > > rst2html5 (Docutils 0.16 [release], Python 3.8.2, on linux) > > I wouldn't expect this to have been in /usr/local/bin - that is usually > a sign of a local adminstrator install, via "pip" or some other means. > The distro provided version would be in /usr/bin > > >I reinstalled it via "apt-get install python3-docutils", still the same error. Here is my check whereis rst2html5 rst2html5: /usr/bin/rst2html5 /usr/local/bin/rst2html5.py /usr/local/bin/rst2html5 /usr/share/man/man1/rst2html5.1.gz /usr/bin/rst2html5 is a link to /usr/share/docutils/scripts/python3/rst2html5 Thanks, Wei
On Fri, 2020-09-25 at 17:46 +0800, Wei Wang wrote:> On Fri, Sep 25, 2020 at 5:35 PM Daniel P. Berrangé <berrange@redhat.com> wrote: > > On Fri, Sep 25, 2020 at 05:31:09PM +0800, Wei Wang wrote: > > > That's strange, my rst2html5 comes from docutils: > > > python3-docutils: /usr/share/docutils/scripts/python3/rst2html5 > > > > > > and > > > /usr/local/bin/rst2html5 --version > > > rst2html5 (Docutils 0.16 [release], Python 3.8.2, on linux) > > > > I wouldn't expect this to have been in /usr/local/bin - that is usually > > a sign of a local adminstrator install, via "pip" or some other means. > > The distro provided version would be in /usr/bin > > I reinstalled it via "apt-get install python3-docutils", still the same error. > > Here is my check > whereis rst2html5 > rst2html5: /usr/bin/rst2html5 /usr/local/bin/rst2html5.py /usr/local/bin/rst2html5 /usr/share/man/man1/rst2html5.1.gz > > /usr/bin/rst2html5 is a link to /usr/share/docutils/scripts/python3/rst2html5You seem to have both /usr/bin/rst2html5 from the python3-docutils Debian package *and* /usr/local/bin/rst2html5 from the rst2html5 PyPi package installed on your system, and Meson is apparently picking up the latter rather than the former. Please uninstall the PyPi version with "pip uninstall rst2html5" (or something like that) and try again. Make sure you wipe out the build directory to force Meson to look for binaries again. -- Andrea Bolognani / Red Hat / Virtualization
On Fri, Sep 25, 2020 at 6:20 PM Andrea Bolognani <abologna@redhat.com> wrote:> On Fri, 2020-09-25 at 17:46 +0800, Wei Wang wrote: > > On Fri, Sep 25, 2020 at 5:35 PM Daniel P. Berrangé <berrange@redhat.com> > wrote: > > > On Fri, Sep 25, 2020 at 05:31:09PM +0800, Wei Wang wrote: > > > > That's strange, my rst2html5 comes from docutils: > > > > python3-docutils: /usr/share/docutils/scripts/python3/rst2html5 > > > > > > > > and > > > > /usr/local/bin/rst2html5 --version > > > > rst2html5 (Docutils 0.16 [release], Python 3.8.2, on linux) > > > > > > I wouldn't expect this to have been in /usr/local/bin - that is usually > > > a sign of a local adminstrator install, via "pip" or some other means. > > > The distro provided version would be in /usr/bin > > > > I reinstalled it via "apt-get install python3-docutils", still the same > error. > > > > Here is my check > > whereis rst2html5 > > rst2html5: /usr/bin/rst2html5 /usr/local/bin/rst2html5.py > /usr/local/bin/rst2html5 /usr/share/man/man1/rst2html5.1.gz > > > > /usr/bin/rst2html5 is a link to > /usr/share/docutils/scripts/python3/rst2html5 > > You seem to have both /usr/bin/rst2html5 from the python3-docutils > Debian package *and* /usr/local/bin/rst2html5 from the rst2html5 PyPi > package installed on your system, and Meson is apparently picking up > the latter rather than the former. > > Please uninstall the PyPi version with "pip uninstall rst2html5" (or > something like that) and try again. Make sure you wipe out the build > directory to force Meson to look for binaries again. > >pip3 uninstall rst2html5 reports: WARNING: Skipping rst2html5 as it is not installed. But after directly "rm /usr/local/bin/rst2html5", Just get a warning: ../tests/qemuxml2xmltest.c: In function ‘mymain’: ../tests/qemuxml2xmltest.c:131:1: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without 131 | mymain(void) | ^~~~~~ [1250/1250] Linking target tests/cputest It works now. Thanks, everyone! Wei