lifelike / hexmapextension

Inkscape extension for creating hex grids suitable for boardgame maps.
129 stars 16 forks source link

"No module named lxml" but I have it installed #31

Closed dosaki closed 5 years ago

dosaki commented 5 years ago

When trying to create a hex-grid (using the default values), I get the error below:

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

But I have lxml installed:

$ sudo pip install lxml
Requirement already satisfied: lxml in /usr/lib/python3.7/site-packages (4.4.0)

And I can use it: image

I'm using Anarchy Linux and these are the versions I'm using:

$ inkscape --version && python --version && uname -a
Inkscape 0.92.4 5da689c313, 2019-01-14
Python 3.7.4
Linux metztli 5.2.5-arch1-1-ARCH #1 SMP PREEMPT Wed Jul 31 08:30:34 UTC 2019 x86_64 GNU/Linux
lifelike commented 5 years ago

I suspect that you need to install lxml for python 2 as well? As far as I know Inkscape python extensions are still executed with python 2.

Do any other inkscape extensions run for you that require lxml (probably most of them do)?

dosaki commented 5 years ago

That was it. Thanks!

Had to install python2-pip and then run

sudo pip2 install lxml

Had no idea inkscape still used python 2.7!