ubuntu@box1607:~$ uname -a
Linux box1607.localdomain 3.13.0-100-generic #147-Ubuntu SMP Tue Oct 18 16:48:51 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@box1607:~$ python3.5
Python 3.5.2 (default, Jul 25 2016, 02:11:18)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lzma
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/circleci/.pyenv/versions/3.5.2/lib/python3.5/lzma.py", line 26, in <module>
from _lzma import *
ImportError: No module named '_lzma'
I haven’t seen this error before… I have nothing special in circle.yml. How to fix it?
My solution (temporary I hope): use custom built Python - specify Python version other than that is available on the Ubuntu image. It will be built by pyenv from source code and the lzma module will work.