Hi Jia, For a quick work around, just edit the file and change the header:
sudo vi /usr/bin/txt2tags #! /usr/bin/python2 import txt2tags txt2tags.exec_command_line() I hope that helps, Jorge Gustavo Às 13:52 de 03/02/19, JIA Pei escreveu: > > Hi, all: > > I'm using *Ubuntu 18.04*. And I'm quite sure I've *txt2tags* (an > *EXE*) installed. And I also successfully installed *txt2tags* Python > module from https://github.com/txt2tags/txt2tags . However, I still > failed to build QGIS with the following *ERROR* messages??? Any > suggestions? > > > make[2]: Entering directory '....../QGIS/build' > [ 0%] Building ....../QGIS/build/doc/INSTALL from > ....../QGIS/doc/INSTALL.t2t > cd ....../QGIS/build/doc && /usr/bin/txt2tags --encoding=utf-8 > -o....../QGIS/build/doc/INSTALL -t txt ....../QGIS/doc/INSTALL.t2t > Traceback (most recent call last): > File "/usr/bin/txt2tags", line 3, in <module> > import txt2tags > ModuleNotFoundError: No module named 'txt2tags' > doc/CMakeFiles/t2tdoc.dir/build.make:66: recipe for target > 'doc/INSTALL' failed > make[2]: *** [doc/INSTALL] Error 1 > make[2]: Leaving directory '....../QGIS/build' > CMakeFiles/Makefile2:1090: recipe for target > 'doc/CMakeFiles/t2tdoc.dir/all' failed > make[1]: *** [doc/CMakeFiles/t2tdoc.dir/all] Error 2 > make[1]: Leaving directory '....../QGIS/build' > Makefile:165: recipe for target 'all' failed > make: *** [all] Error 2 > > > > > -- > > Pei JIA, Ph.D. > > Email: jp4w...@gmail.com <mailto:jp4w...@gmail.com> > cell in Canada: +1 778-863-5816 > cell in China: +86 186-8244-3503 > > Welcome to Vision Open > http://www.visionopen.com > > _______________________________________________ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user -- Logo* Geomaster, LDA* *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O * Avenida Barros e Soares N.º 423, 4715-214 Braga VAT/NIF510 906 109 Phone +351 253 680 323 Site geomaster.pt <http://geomaster.pt> GPS 41.53322, -8.41929 ------------------------------------------------------------------------ Jorge Gustavo Rocha CTO Mobile +351 910 333 888 Email j...@geomaster.pt
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user