Missing system modules in Python - Personal weblog
carl.duevel.online › blog › python_missing_system_depsModuleNotFoundError: No module named '_lzma' I found this error at the bottom of a very long stack trace after running a unit test. That was suprising as the tests had worked fine before. I stashed all current changes, but the error persisted. I recognized that the lzma module is part of the standard library. I could not find the module _lzma though. It turned out that the problem could be reproduced with a simple import statement: