<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Jia,</p>
    <p>For a quick work around, just edit the file and change the
      header:</p>
    <pre>sudo vi /usr/bin/txt2tags

<span class="ch">#! /usr/bin/python2</span>

<span class="kn">import</span> <span class="nn">txt2tags</span>
<span class="n">txt2tags</span><span class="o">.</span><span class="n">exec_command_line</span><span class="p">()</span>
</pre>
    <p>I hope that helps,</p>
    <p>Jorge Gustavo<br>
    </p>
    <div class="moz-cite-prefix">Às 13:52 de 03/02/19, JIA Pei escreveu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADh8Q_UwnRhgjve7DGsva8RXfv2bVyXvy8n=68ZufhzRHHFsGA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div><br>
            </div>
            <div>Hi, all:</div>
            <div><br>
            </div>
            <div>I'm using <b>Ubuntu 18.04</b>. And I'm quite sure I've
              <b>txt2tags</b> (an <b>EXE</b>) installed. And I also
              successfully installed <b>txt2tags</b> Python module
              from <a href="https://github.com/txt2tags/txt2tags"
                moz-do-not-send="true">https://github.com/txt2tags/txt2tags</a>
              . However, I still failed to build QGIS with the following
              <b>ERROR</b> messages??? Any suggestions?</div>
          </div>
          <blockquote style="margin:0px 0px 0px
            40px;border:none;padding:0px">
            <div>
              <div><br>
              </div>
            </div>
            <div>
              <div>make[2]: Entering directory '....../QGIS/build'</div>
            </div>
            <div>
              <div>[  0%] Building ....../QGIS/build/doc/INSTALL from
                ....../QGIS/doc/INSTALL.t2t</div>
            </div>
            <div>
              <div>cd ....../QGIS/build/doc && /usr/bin/txt2tags
                --encoding=utf-8 -o....../QGIS/build/doc/INSTALL -t txt
                ....../QGIS/doc/INSTALL.t2t</div>
            </div>
            <div>
              <div>Traceback (most recent call last):</div>
            </div>
            <div>
              <div>  File "/usr/bin/txt2tags", line 3, in <module></div>
            </div>
            <div>
              <div>    import txt2tags</div>
            </div>
            <div>
              <div>ModuleNotFoundError: No module named 'txt2tags'</div>
            </div>
            <div>
              <div>doc/CMakeFiles/t2tdoc.dir/build.make:66: recipe for
                target 'doc/INSTALL' failed</div>
            </div>
            <div>
              <div>make[2]: *** [doc/INSTALL] Error 1</div>
            </div>
            <div>
              <div>make[2]: Leaving directory '....../QGIS/build'</div>
            </div>
            <div>
              <div>CMakeFiles/Makefile2:1090: recipe for target
                'doc/CMakeFiles/t2tdoc.dir/all' failed</div>
            </div>
            <div>
              <div>make[1]: *** [doc/CMakeFiles/t2tdoc.dir/all] Error 2</div>
            </div>
            <div>
              <div>make[1]: Leaving directory '....../QGIS/build'</div>
            </div>
            <div>
              <div>Makefile:165: recipe for target 'all' failed</div>
            </div>
            <div>
              <div>make: *** [all] Error 2</div>
            </div>
          </blockquote>
          <div dir="ltr">
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            -- <br>
            <div dir="ltr" class="gmail_signature">
              <div dir="ltr">
                <div><br>
                </div>
                <div>Pei JIA, Ph.D.</div>
                <div><br>
                </div>
                <div>Email: <a href="mailto:jp4work@gmail.com"
                    target="_blank" moz-do-not-send="true">jp4work@gmail.com</a></div>
                <div>cell in Canada:    +1 778-863-5816</div>
                <div>cell in China: +86 186-8244-3503</div>
                <div><br>
                </div>
                Welcome to Vision Open<br>
                <a href="http://www.visionopen.com" target="_blank"
                  moz-do-not-send="true">http://www.visionopen.com</a></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div class="moz-signature">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div class="moz-signature">
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          <div class="moz-signature">
            <div class="moz-signature">
              <div class="moz-signature"><img
                  src="cid:part4.5478D545.ED5D7C1A@geomaster.pt"
                  alt="Logo" width="50" height="50" align="left"><span
                  class="im"><b><font size="+2"><font size="-2">   </font>Geomaster,
                      LDA</font></b></span><br>
                <div class="moz-signature">
                  <div class="moz-signature">  <b><font size="-2"
                        color="#999999">VENHA DESCOBRIR O CAMINHO DO
                        OPEN SOURCE CONNOSC</font></b><b><font size="-2"
                        color="#999999">O<br>
                        <br>
                      </font></b>
                    <meta http-equiv="content-type" content="text/html;
                      charset=UTF-8">
                    <title></title>
                    <div class="moz-signature">
                      <div class="moz-signature">
                        <div class="moz-signature">
                          <div class="moz-signature">
                            <div class="moz-signature">
                              <div class="moz-signature">
                                <table width="450" height="126"
                                  cellspacing="1" cellpadding="2"
                                  border="0">
                                  <tbody>
                                    <tr>
                                      <td width="150" valign="top"
                                        height="50"><font size="-1"><span
                                            class="im"><font size="-2"> </font><br>
                                            Avenida Barros e Soares<br>
                                            N.º 423, 4715-214 Braga<br>
                                            VAT/NIF</span><span
                                            class="im"> 510 906 109<br>
                                            Phone</span><span class="im">
                                              +351 253 680 323<br>
                                          </span>Site       <a
                                            href="http://geomaster.pt"
                                            rel="noreferrer"
                                            target="_blank"
data-saferedirecturl="https://www.google.com/url?hl=pt-PT&q=http://geomaster.pt&source=gmail&ust=1532515644545000&usg=AFQjCNEUP4MdlcHYefwCgfNLz4DspDBtXA">geomaster.pt</a><br>
                                          GPS       41.53322, -8.41929</font><br>
                                        <span class="im"></span></td>
                                      <td width="25" valign="top"
                                        align="right"><font size="-1"><span
                                            class="im"></span></font>
                                        <hr width="2" size="100"
                                          align="right"></td>
                                      <td width="150" valign="top"
                                        nowrap="nowrap" height="50"><font
                                          size="-1"><font size="-1"><font
                                              size="-2"> </font><br>
                                            Jorge Gustavo Rocha</font><br>
                                          <font size="-2"
                                            color="#999999">CTO<br>
                                            <br>
                                          </font>Mobile</font><font
                                          size="-1"><span class="im"> 
                                            +351 910 333 888<br>
                                            Email    <a class="moz-txt-link-abbreviated" href="mailto:jgr@geomaster.pt">jgr@geomaster.pt</a></span></font></td>
                                    </tr>
                                  </tbody>
                                </table>
                                <br>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>