How can I solve "no module named '_lzma'"?

I am trying to run the BoltzTraP2 software installed in Ubuntu 20.04.1 LTS but I get this error. Kindly let me know how I can solve this. I have installed pandas and liblzma-dev, still I get the error.

========================================================== you can install pyfftw to get better FFT performance
Traceback (most recent call last): File "/home/syl2/.local/bin/btp2", line 11, in <module> load_entry_point('BoltzTraP2==20.7.1', 'console_scripts', 'btp2')() File "/home/syl2/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 473, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/syl2/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point return ep.load() File "/home/syl2/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2447, in load return self.resolve() File "/home/syl2/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2453, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/local/lib/python3.8/site-packages/BoltzTraP2/interface.py", line 58, in <module> import BoltzTraP2.serialization File "/usr/local/lib/python3.8/site-packages/BoltzTraP2/serialization.py", line 32, in <module> import lzma File "/usr/local/lib/python3.8/lzma.py", line 27, in <module> from _lzma import *
ModuleNotFoundError: No module named '_lzma'
1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like