<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>Use <b>python2</b> instead of <b>python</b>.</p>
    <p>The header should be: <b>/usr/bin/python2</b> instead of <b>/usr/bin/python</b>.</p>
    <p>Regards,</p>
    <p>Jorge<br>
    </p>
    <div class="moz-cite-prefix">Às 04:46 de 04/02/19, JIA Pei escreveu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADh8Q_UgoxWmfT35BoFCmrg3az33LZpjbPcp_KWsVhDo1B9iUQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><br>
        <div>Thank you Avenida....</div>
        <div><br>
        </div>
        <div>My current <b>txt2tags</b> file is ALREADY like that. Did
          you miss anything?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div><span style="font-family:monospace"><span
                style="font-weight:bold;color:rgb(84,255,84)">➜  </span><span
                style="font-weight:bold;color:rgb(84,255,255)">~</span><span
                style="color:rgb(0,0,0)"> cat /usr/bin/txt2tags  </span></span></div>
          <div><span style="font-family:monospace">#! /usr/bin/python </span></div>
          <div><span style="font-family:monospace"><br>
            </span></div>
          <div><span style="font-family:monospace">import txt2tags </span></div>
          <div><span style="font-family:monospace">txt2tags.exec_command_line()</span></div>
        </blockquote>
        <div><span style="font-family:monospace"> <br>
          </span></div>
        <div><span style="font-family:monospace"><br>
          </span></div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sun, Feb 3, 2019 at 3:42 PM
          Jorge Gustavo Rocha <<a href="mailto:jgr@geomaster.pt"
            moz-do-not-send="true">jgr@geomaster.pt</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div 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="gmail-m_813114933646827806ch">#! /usr/bin/python2</span>

<span class="gmail-m_813114933646827806kn">import</span> <span class="gmail-m_813114933646827806nn">txt2tags</span>
<span class="gmail-m_813114933646827806n">txt2tags</span><span class="gmail-m_813114933646827806o">.</span><span class="gmail-m_813114933646827806n">exec_command_line</span><span class="gmail-m_813114933646827806p">()</span>
</pre>
            <p>I hope that helps,</p>
            <p>Jorge Gustavo<br>
            </p>
            <div class="gmail-m_813114933646827806moz-cite-prefix">Às
              13:52 de 03/02/19, JIA Pei escreveu:<br>
            </div>
            <blockquote type="cite">
              <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"
                        target="_blank" 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-m_813114933646827806gmail_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="gmail-m_813114933646827806mimeAttachmentHeader"></fieldset>
              <pre class="gmail-m_813114933646827806moz-quote-pre">_______________________________________________
Qgis-user mailing list
<a class="gmail-m_813114933646827806moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org" target="_blank" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a>
List info: <a class="gmail-m_813114933646827806moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="gmail-m_813114933646827806moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
            </blockquote>
            <div class="gmail-m_813114933646827806moz-signature">-- <br>
              <div class="gmail-m_813114933646827806moz-signature">
                <div class="gmail-m_813114933646827806moz-signature">
                  <div class="gmail-m_813114933646827806moz-signature">
                    <div class="gmail-m_813114933646827806moz-signature">
                      <div
                        class="gmail-m_813114933646827806moz-signature"><img
                          src="cid:part8.DA6D49D4.AD8BEFCA@geomaster.pt"
                          alt="Logo" class="" width="50" height="50"
                          align="left"><span
                          class="gmail-m_813114933646827806im"><b><font
                              size="+2"><font size="-2">   </font>Geomaster,
                              LDA</font></b></span><br>
                        <div
                          class="gmail-m_813114933646827806moz-signature">
                          <div
                            class="gmail-m_813114933646827806moz-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>
                            <div
                              class="gmail-m_813114933646827806moz-signature">
                              <div
                                class="gmail-m_813114933646827806moz-signature">
                                <div
                                  class="gmail-m_813114933646827806moz-signature">
                                  <div
                                    class="gmail-m_813114933646827806moz-signature">
                                    <div
                                      class="gmail-m_813114933646827806moz-signature">
                                      <div
                                        class="gmail-m_813114933646827806moz-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="gmail-m_813114933646827806im"><font
                                                      size="-2"> </font><br>
                                                    Avenida Barros e
                                                    Soares<br>
                                                    N.º 423, 4715-214
                                                    Braga<br>
                                                    VAT/NIF</span><span
class="gmail-m_813114933646827806im"> 510 906 109<br>
                                                    Phone</span><span
                                                    class="gmail-m_813114933646827806im">
                                                      +351 253 680 323<br>
                                                  </span>Site       <a
href="http://geomaster.pt" rel="noreferrer" target="_blank"
                                                    moz-do-not-send="true">geomaster.pt</a><br>
                                                  GPS       41.53322,
                                                  -8.41929</font><br>
                                                <span
                                                  class="gmail-m_813114933646827806im"></span></td>
                                              <td width="25"
                                                valign="top"
                                                align="right"><font
                                                  size="-1"><span
                                                    class="gmail-m_813114933646827806im"></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="gmail-m_813114933646827806im"> 
                                                    +351 910 333 888<br>
                                                    Email    <a
                                                      class="gmail-m_813114933646827806moz-txt-link-abbreviated"
href="mailto:jgr@geomaster.pt" target="_blank" moz-do-not-send="true">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>
          </div>
          _______________________________________________<br>
          Qgis-user mailing list<br>
          <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank"
            moz-do-not-send="true">Qgis-user@lists.osgeo.org</a><br>
          List info: <a
            href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
          Unsubscribe: <a
            href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>
      </div>
      <br clear="all">
      <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>
    </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:part8.DA6D49D4.AD8BEFCA@geomaster.pt"
                  alt="Logo" class="" 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"
                                            moz-do-not-send="true">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" moz-do-not-send="true">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>