Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NonTemplatedInputDirException #556

Open
mh-mohaghegh75 opened this issue Nov 16, 2023 · 13 comments
Open

NonTemplatedInputDirException #556

mh-mohaghegh75 opened this issue Nov 16, 2023 · 13 comments

Comments

@mh-mohaghegh75
Copy link

hi
I'm trying to deploy this project but when i ran this command:

$ pip install cookiecutter
$ cookiecutter https://github.com/tiangolo/full-stack-fastapi-postgresql

i have got this error:

Traceback (most recent call last):
  File "/home/user/.local/bin/cookiecutter", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/cookiecutter/cli.py", line 202, in main
    cookiecutter(
  File "/home/user/.local/lib/python3.11/site-packages/cookiecutter/main.py", line 184, in cookiecutter
    result = generate_files(
             ^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/cookiecutter/generate.py", line 304, in generate_files
    template_dir = find_template(repo_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/cookiecutter/find.py", line 24, in find_template
    raise NonTemplatedInputDirException
cookiecutter.exceptions.NonTemplatedInputDirException

it seems template directory has been removed. but i would be appreciate if anyone answer my problem.
thanks.

@Kotwic4
Copy link

Kotwic4 commented Nov 19, 2023

Same problem

@Kotwic4
Copy link

Kotwic4 commented Nov 19, 2023

Cookiecutter was remove in this PR: 455de4d

@Kotwic4
Copy link

Kotwic4 commented Nov 19, 2023

@tiangolo why did you remove cookiecutter? #553

@sdplatt
Copy link

sdplatt commented Nov 20, 2023

too monolithic? Strip it down into pluggable components?

@enrique-zarate
Copy link

So, what's an alternative?

@sdplatt
Copy link

sdplatt commented Nov 21, 2023

Alternative to being monolithic?

@enrique-zarate
Copy link

enrique-zarate commented Nov 21, 2023

Sorry, I mean an alternative to running cookiecutter https://github.com/tiangolo/full-stack-fastapi-postgresql. I want to start the project from scratch since it had a few changes last week.

@Kotwic4
Copy link

Kotwic4 commented Nov 26, 2023

I think @tiangolo instead of making master an usable, should instead have a branch with new version and merge to master when it is ready. The warning that the master is not updated until refactor in new version would good enough. The main problem is that this repo is pointed on the official docs of fastapi

@asalyga
Copy link

asalyga commented Nov 26, 2023

@enrique-zarate Cookiecutter allows to run from .zip files, My way of handling it was to download the pre #553 merge version as zip file and just ran it with zip file, worked completely fine

@CaptainKryuk
Copy link

how to create project now? readme not updated

@nazmi
Copy link

nazmi commented Dec 3, 2023

how to create project now? readme not updated

Use this

cookie-cutter https://github.com/tiangolo/full-stack-fastapi-postgresql --checkout 30c722339b4fa6d4c2bd3deb7cca6fc3d9568f83

@nawideck
Copy link

Same problem

1 similar comment
@webneshin
Copy link

Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants