Lzma error while running module and its not importing meshio

Hi Andras,
I am getting the following error. Could you please help how can I resolve it in slicer 4.11.0-2020-02-25.

Traceback (most recent call last):
File “/home/saima/slicer/Slicer-4.11.0-2019-09-17-linux-amd64/ImageAsaModel/MeshNodesToFiducials/MeshNodesToFiducials.py”, line 210, in onVMeshButton
logic.createVolumeMesh(sMesh, meshAlgo, int(cMin), int(cMax), int(optimize), int(meshQuality), int(lFactor))
File “/home/saima/slicer/Slicer-4.11.0-2019-09-17-linux-amd64/ImageAsaModel/MeshNodesToFiducials/MeshNodesToFiducials.py”, line 367, in createVolumeMesh
import meshio
File “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/lib/Python/lib/python3.6/site-packages/meshio/init.py”, line 1, in
from . import (
File “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/lib/Python/lib/python3.6/site-packages/meshio/_cli/init.py”, line 1, in
from ._ascii import ascii
File “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/lib/Python/lib/python3.6/site-packages/meshio/_cli/_ascii.py”, line 5, in
from … import ansys, flac3d, gmsh, mdpa, ply, stl, vtk, vtu, xdmf
File “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/lib/Python/lib/python3.6/site-packages/meshio/vtu/init.py”, line 1, in
from ._vtu import read, write
File “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/lib/Python/lib/python3.6/site-packages/meshio/vtu/_vtu.py”, line 8, in
import lzma
File “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/lib/Python/lib/python3.6/lzma.py”, line 27, in
from _lzma import *
ModuleNotFoundError: No module named ‘_lzma’

Lzma is typically a built in module in Python, but the Python that Slicer is using does not currently include it. You can follow https://github.com/Slicer/Slicer/issues/4920 to track the progress of starting to include it. It really only becomes an issue if the specific methods in that Python package are using it. If you are importing the entire package but don’t actually need it then you can ignore it.

1 Like