full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

NonTemplatedInputDirException

Open mh-mohaghegh75 opened this issue 1 year ago • 13 comments

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.

mh-mohaghegh75 avatar Nov 16 '23 09:11 mh-mohaghegh75

Same problem

Kotwic4 avatar Nov 19 '23 17:11 Kotwic4

Cookiecutter was remove in this PR: https://github.com/tiangolo/full-stack-fastapi-postgresql/commit/455de4d9a95771931eba35aebacc6d8d282b38e7

Kotwic4 avatar Nov 19 '23 17:11 Kotwic4

@tiangolo why did you remove cookiecutter? https://github.com/tiangolo/full-stack-fastapi-postgresql/pull/553

Kotwic4 avatar Nov 19 '23 17:11 Kotwic4

too monolithic? Strip it down into pluggable components?

sdplatt avatar Nov 20 '23 06:11 sdplatt

So, what's an alternative?

enrique-zarate avatar Nov 20 '23 23:11 enrique-zarate

Alternative to being monolithic?

sdplatt avatar Nov 21 '23 12:11 sdplatt

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.

enrique-zarate avatar Nov 21 '23 12:11 enrique-zarate

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

Kotwic4 avatar Nov 26 '23 17:11 Kotwic4

@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

asalyga avatar Nov 26 '23 23:11 asalyga

how to create project now? readme not updated

CaptainKryuk avatar Dec 01 '23 12:12 CaptainKryuk

how to create project now? readme not updated

Use this

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

nazmi avatar Dec 03 '23 13:12 nazmi

Same problem

nawideck avatar Dec 18 '23 10:12 nawideck

Same problem

webneshin avatar Jan 23 '24 03:01 webneshin