{"id":23251,"library":"antiword","title":"antiword","description":"A Python library to convert MS Word .doc files to plain text, wrapping the external antiword command-line tool. Version 0.1.0 (stable).","status":"active","version":"0.1.0","language":"python","source_language":"en","source_url":"https://github.com/2e0byo/antiword","tags":["antiword","doc","text extraction"],"install":[{"cmd":"pip install antiword","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"The Python library is a wrapper; requires the antiword command-line tool installed","package":"antiword (system binary)","optional":false}],"imports":[{"note":"Correct import path","wrong":null,"symbol":"antiword","correct":"from antiword import antiword"}],"quickstart":{"code":"from antiword import antiword\ntext = antiword('document.doc')\nprint(text)","lang":"python","description":"Convert a .doc file to text; requires antiword binary installed."},"warnings":[{"fix":"Install antiword system package: `brew install antiword` (macOS) or `apt-get install antiword` (Debian/Ubuntu).","message":"The library is a thin wrapper and requires the `antiword` command-line tool to be installed on the system (e.g., via `apt install antiword`).","severity":"gotcha","affected_versions":"all"},{"fix":"Use `from antiword import antiword`; not `import antiword` or other imports.","message":"The package `antiword` on PyPI (version 0.1.0) is not the same as the commonly known `antiword` CLI tool. It is a Python wrapper with a different API than older third-party wrappers.","severity":"breaking","affected_versions":"0.1.0"},{"fix":"Ensure input files are .doc format, or use a library like `python-docx` for .docx.","message":"Only supports .doc files (not .docx). Attempting to convert .docx will raise an error.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from antiword import antiword` then `antiword('file.doc')`.","cause":"Trying `import antiword; antiword.antiword('file.doc')` but the import is incorrect.","error":"AttributeError: module 'antiword' has no attribute 'antiword'"},{"fix":"Install the system package: `sudo apt-get install antiword` or `brew install antiword`.","cause":"The system binary `antiword` is not installed.","error":"antiword: command not found"},{"fix":"Verify the file is a proper .doc file (not .docx) and not corrupted.","cause":"The input file is not a valid .doc file or is corrupt.","error":"Exception: Antiword returned non-zero exit status 1"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}