tiangolo / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NonTemplatedInputDirException

mh-mohaghegh75 opened this issue · 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.

Same problem

Cookiecutter was remove in this PR: 455de4d

@tiangolo why did you remove cookiecutter? #553

too monolithic? Strip it down into pluggable components?

So, what's an alternative?

Alternative to being monolithic?

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.

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

@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

how to create project now? readme not updated

how to create project now? readme not updated

Use this

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

Same problem

Same problem