-
-
Notifications
You must be signed in to change notification settings - Fork 483
Description
Describe the bug
briefcase.2026_02_27-11_39_09.new.log
can't creat a new project.
[helloworld] Generating a new application 'Hello World'
Using app template: https://github.com/beeware/briefcase-template, branch v0.3.26
Cloning template 'https://github.com/beeware/briefcase-template'...
Using existing template (sha e16f77d8521be0db2a03e71db27a387cbed466bf, updated Sun Nov 30 18:49:06 2025)
Stopping generation because pre_gen_project hook script didn't exit successfully
Log saved to D:\Projects\helloworld\logs\briefcase.2026_02_27-11_39_09.new.log
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "D:\Projects\helloworld.venv\Lib\site-packages\briefcase_main.py", line 65, in
sys.exit(main()) # pragma: no cover
~~~~^^
File "D:\Projects\helloworld.venv\Lib\site-packages\briefcase_main.py", line 27, in main
command(**options)
~~~~~~~^^^^^^^^^^^
File "D:\Projects\helloworld.venv\Lib\site-packages\briefcase\commands\new.py", line 611, in call
return self.new_app(
~~~~~~~~~~~~^
template=template,
^^^^^^^^^^^^^^^^^^
...<2 lines>...
**options,
^^^^^^^^^^
)
^
File "D:\Projects\helloworld.venv\Lib\site-packages\briefcase\commands\new.py", line 564, in new_app
self.generate_template(
~~~~~~~~~~~~~~~~~~~~~~^
template=(
^^^^^^^^^^
...<6 lines>...
extra_context=context,
^^^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\Projects\helloworld.venv\Lib\site-packages\briefcase\commands\base.py", line 1324, in generate_template
self._generate_template(
~~~~~~~~~~~~~~~~~~~~~~~^
template=template,
^^^^^^^^^^^^^^^^^^
...<2 lines>...
extra_context=extra_context,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\Projects\helloworld.venv\Lib\site-packages\briefcase\commands\base.py", line 1266, in _generate_template
self.tools.cookiecutter(
~~~~~~~~~~~~~~~~~~~~~~~^
str(cached_template),
^^^^^^^^^^^^^^^^^^^^^
...<8 lines>...
default_config={"replay_dir": str(self.template_cache_path(".replay"))},
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\Projects\helloworld.venv\Lib\site-packages\cookiecutter\main.py", line 182, in cookiecutter
result = generate_files(
repo_dir=repo_dir,
...<5 lines>...
keep_project_on_failure=keep_project_on_failure,
)
File "D:\Projects\helloworld.venv\Lib\site-packages\cookiecutter\generate.py", line 342, in generate_files
run_hook_from_repo_dir(
~~~~~~~~~~~~~~~~~~~~~~^
repo_dir, 'pre_gen_project', project_dir, context, delete_project_on_failure
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\Projects\helloworld.venv\Lib\site-packages\cookiecutter\hooks.py", line 157, in run_hook_from_repo_dir
run_hook(hook_name, project_dir, context)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\helloworld.venv\Lib\site-packages\cookiecutter\hooks.py", line 140, in run_hook
run_script_with_context(script, project_dir, context)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\helloworld.venv\Lib\site-packages\cookiecutter\hooks.py", line 123, in run_script_with_context
run_script(temp.name, cwd)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "D:\Projects\helloworld.venv\Lib\site-packages\cookiecutter\hooks.py", line 94, in run_script
raise FailedHookException(
f'Hook script failed (exit status: {exit_status})'
)
cookiecutter.exceptions.FailedHookException: Hook script failed (exit status: 1)