cookiecutter / cookiecutter

A cross-platform command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, C projects.
https://pypi.org/project/cookiecutter/
BSD 3-Clause "New" or "Revised" License
22.03k stars 1.97k forks source link

FileNotFoundError: [WinError 2] The system cannot find the file specified #1079

Open red8888 opened 6 years ago

red8888 commented 6 years ago

Description:

Can use cookiecutter I get a weird error when trying to use a template.

cookiecutter gh:Pylons/pyramid-cookiecutter-starter --checkout 1.9-branch Traceback (most recent call last): File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\MEEEE\AppData\Local\Programs\Python\Python36-32\Scripts\cookiecutter.exe__main.py", line 9, in File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 722, in call__ return self.main(args, kwargs) File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 697, in main rv = self.invoke(ctx) File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 535, in invoke return callback(args, kwargs) File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\site-packages\cookiecutter\cli.py", line 120, in main password=os.environ.get('COOKIECUTTER_REPO_PASSWORD') File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\site-packages\cookiecutter\main.py", line 63, in cookiecutter password=password File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\site-packages\cookiecutter\repository.py", line 103, in determine_repo_dir no_input=no_input, File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\site-packages\cookiecutter\vcs.py", line 99, in clone stderr=subprocess.STDOUT, File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\subprocess.py", line 336, in check_output kwargs).stdout File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\subprocess.py", line 403, in run with Popen(*popenargs, **kwargs) as process: File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\subprocess.py", line 709, in init restore_signals, start_new_session) File "c:\users\MEEEE\appdata\local\programs\python\python36-32\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

pydanny commented 6 years ago

Does this problem occur just with pyramid-cookiecutter-starter or with other Cookiecutter templates?

red8888 commented 6 years ago

All templates. I can run it with --help but anything with templates fails

bradfox2 commented 5 years ago

@red8888 Did you ever figure this error out? Happening to me on Win10 with cookiecutter and pyscaffold.