[Qgis-user] ModuleNotFoundError: No module named 'txt2tags'
Jorge Gustavo Rocha
jgr at geomaster.pt
Sun Feb 3 15:41:29 PST 2019
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: jp4work at gmail.com <mailto:jp4work at 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 at 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 jgr at geomaster.pt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190203/48deab0a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cropped-geomaster300x300-1.png
Type: image/png
Size: 33896 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190203/48deab0a/attachment-0001.png>
More information about the Qgis-user
mailing list