InTime

How to fix “Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.”?

850 views October 26, 2020 October 26, 2020 pohheng 0

Symptom:

When running InTime in Linux, you encounter an error message containing:

“Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.”

or similar.

This may be due to the fact that the lzma library is not installed / detected properly.

Resolution:

(Ubuntu) Install the lzma library.

[user@host ~]# apt-get install liblzma
[user@host ~]# cd /lib/x86_64-linux-gnu

Create a symbolic link to the liblzma library file.

[user@host x86_64-linux-gnu]# ln -s liblzma.so liblzma.so.0

(Note: The liblzma library file may be named differently on your system, but the symbolic link must be named liblzma.so.0)

(CentOS/RHEL) Install the lzma library.

[user@host ~]# yum install xz-libs

Applies to:

  • Linux Operating System (CentOS/RHEL/Ubuntu)

Knowledge Base ID: 202008201 - Last Review: Oct 26, 2020 - Revision: 1.0