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.
[root@host ~]# apt install liblzma-dev [root@host ~]# cd /lib/x86_64-linux-gnu
Create a symbolic link to the liblzma library file.
[root@host x86_64-linux-gnu]# ln -s liblzma.so.5 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.
[root@host ~]# yum install xz-libs
(SUSE) Install the lzma library.
[root@host ~]# zypper install lzma
Create a symbolic link to the liblzma library file to bin6 folder of InTime installation directory.
[root@host ~]# cd <intime_installation_directory>/bin6 [root@host bin6]$ ln -s /usr/lib64/liblzma.so.5 liblzma.so.0
Applies to:
- Linux Operating System (CentOS/RHEL/Ubuntu/SUSE 12)
Knowledge Base ID: 202008202 - Last Review: Jan 01 2021 - Revision: 1.0