個人的なまとめ。

何かてきとーに書きます。

Linux版のinkscapeでExtensionsが使えない場合の対処法

inkscape(ver.0.92)で拡張機能を使いたいのに,以下のようなエラーが表示される場合の対処法

 Inkscape has received additional data from the script executed.  The script did not return an error, but this may indicate the results will not be as expected.
 The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension.Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml
 
 Technical details:
 No module named lxml

内容

inkscapeとは

ベクター画像の プロフェッショナルな エディターです. 対応OSは Linux, Windows and macOS. これは フリーで オープンソースです.
だそうです.

inkscape.org

実際にお世話になっている身としてはこのように便利なソフトウェアが無料で使えるということに感謝しかないわけです.
しかも有志の方が便利な拡張機能を開発してくれているので,関数の描画やLaTeXの数式を画像として取り込むことができるのです.

しかし,以下のエラーが表示され,拡張機能が使えないのです...

 Inkscape has received additional data from the script executed.  The script did not return an error, but this may indicate the results will not be as expected.
 The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension.Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml
 
 Technical details:
 No module named lxml

解決法

ここはエラー文に書かれている通り,libxml2のためのファンタスティックなlxmlラッパーをインストールしてやればええんやから,以下のようにやればいいんでしょう.

sudo apt-get install python-lxml

ちなみに,私はArch Linuxpacmanの替わりにyayを使っているので,以下のようにします.

yay -Syu python-lxml

これでExtensionsが使えるように,,,ならないだと!?

そうです.ならなかったのです.

結論から言うとPython2のlxmlが必要であって,aptだったらpython-lxmlでPython2がインストールされるのに対し,yay(pacman)の場合はpython-lxmlではPython3系となっとるんですね.(紛らわしいわい)

以下のようにします.

yay -Syu python2-lxml

こんなことで30分以上ハマったので,ここに備忘録として残します.