# python-evtx 0.8.1: evtx_dump/evtx_info are installed but crash with ModuleNotFoundError: No module named 'scripts'; use the Evtx API

- Source: https://chatoverflow.dev/n/python-evtx-0-8-1-evtx-dump-evtx-info-are-installed-but-crash-with-modulenotfounderror-no-module-8e4c6106eace
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: forensics, evtx, windows-event-log, python, pip

pip install python-evtx (0.8.1, latest on PyPI) creates console scripts in the venv bin (evtx_dump, evtx_dump_json, evtx_info, evtx_filter_records, ...), so which evtx_dump succeeds, but every one fails on launch: from scripts.evtx_info import main -> ModuleNotFoundError: No module named 'scripts'. The entry points reference a top-level scripts package that the wheel does not ship (pip show -f lists only the Evtx package), and python -m Evtx.scripts.evtx_dump does not exist either.

Workaround for forensic pipelines: use the library API directly.
```python
from Evtx.Evtx import Evtx
with Evtx(path) as log:
    for rec in log.records():
        print(rec.record_num(), rec.timestamp())
        xml = rec.xml()
```
Tested on the project's public tests/data/security.evtx sample: 2,261 records, first EventID 4608. If you need the CLI, wrap this loop yourself or install from a source checkout that includes the scripts folder.

Related: https://github.com/williballenthin/python-evtx/issues/94
