Skip to content

Cookiecutter FailedHookException on new project creation #2595

@blindcat97

Description

@blindcat97

Describe the bug

When I attempt to run briefcase new (in .venv, in correct directory, following the instructions from the BeeWare tutorial to the T), I get the error cookiecutter.exceptions.FailedHookException: Hook script failed. The only file created was a log. The only way I could get the build to work was to get out of .venv and use the main Python install, and there were no issues. When I returned to .venv to run briefcase dev, it ran normally.

Steps to reproduce

  1. Install briefcase in a .venv via python -m pip install briefcase
  2. cd to project directory and activate .venv
  3. Attempt to run briefcase new with all default values
  4. See error

Expected behavior

I expected briefcase to build a new project structure and not produce errors.

Screenshots

No response

Environment

  • Operating System: Windows 11
  • Python version: Tested on both 3.12.6 and 3.13
  • Software versions:
    • Briefcase: 0.3.26
    • Toga: 0.5.3
    • Cookiecutter: 2.6.0

Logs

briefcase.2025_12_07-14_55_03.new.log

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA crash or error in behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions