Problem
Running the cookiecutter on macOS fails immediately after the final prompt with:
Error: name 'unicode' is not defined
Current Behavior
After answering all prompts, template generation aborts before any files are created. The error originates from the {% now %} Jinja2 tag used in cookiecutter.json and several template files (mkdocs.yml, model_card_template.md, CONTRIBUTING.md).
The {% now %} tag is provided by the jinja2-time extension. This was a transitive dependency of cookiecutter up to version 2.2.x but was removed in 2.3.0+. On a fresh macOS install with a current version of cookiecutter, jinja2-time is not present. When it is missing, the internal arrow package (which jinja2-time depends on) falls back to Python 2 compatibility code that references unicode as a builtin — which does not exist in Python 3.
Expected Behavior
Template generation completes successfully on macOS without requiring jinja2-time to be installed.
Problem
Running the cookiecutter on macOS fails immediately after the final prompt with:
Current Behavior
After answering all prompts, template generation aborts before any files are created. The error originates from the
{% now %}Jinja2 tag used incookiecutter.jsonand several template files (mkdocs.yml,model_card_template.md,CONTRIBUTING.md).The
{% now %}tag is provided by thejinja2-timeextension. This was a transitive dependency ofcookiecutterup to version 2.2.x but was removed in 2.3.0+. On a fresh macOS install with a current version ofcookiecutter,jinja2-timeis not present. When it is missing, the internalarrowpackage (whichjinja2-timedepends on) falls back to Python 2 compatibility code that referencesunicodeas a builtin — which does not exist in Python 3.Expected Behavior
Template generation completes successfully on macOS without requiring
jinja2-timeto be installed.