Fix NameError Subdoc is not defined#623
Conversation
|
I am still facing this same issue when trying to run any of the tests files. I have already tried a couple different approaches and all of them lead to different errors:
I have tried running different python versions (3.12 and 3.10) and tried executing from different paths (from within the tests folder, and from the project's root folder), but all led to errors. How to approach this error and keep on using the lib? Is it still being maintained and actively supported or should I just use the root engine lib (python-docx)? |
|
@brdacost I'm sorry for introduce the name 'Subdoc' is not defined error. Before this PR merged, you can use this library by: pip install "docxtpl[subdoc]"Or if you don't want the "docxcompose" to be installed, use the head of this pull: For local development, I recommend to use uv which is so fast so good: uv sync --all-extras --all-groups |
|
@elapouya Cloud you review this PR. It only changes two lines. |
Description
Fixes #615 (comment)