fastapi / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
MIT License
27.33k stars 4.88k forks source link

unable to run succcessfully #373

Open pvssrikanth opened 3 years ago

pvssrikanth commented 3 years ago

Dear Sir, I am exited of this project

But while running cookiecurter getting following errors Kindly help in resolution.

aefik_constraint_tag_staging [stag.iib.com]: traefik_public_constraint_tag [traefik-public]: flower_auth [admin:Loginiib@321]: sentry_dsn []: docker_image_prefix []: iib docker_image_backend [iibbackend]: docker_image_celeryworker [iibceleryworker]: docker_image_frontend [iibfrontend]: File "/tmp/tmpoGXJgy.py", line 4 path: Path ^ SyntaxError: invalid syntax ERROR: Stopping generation because post_gen_project hook script didn't exit successfully Hook script failed (exit status: 1) iibadmin@iibadmin-uat-ubuntu:~/srik/projeccts$

NMisko commented 3 years ago

Can you check which python version you are using? You'd get this error when running it on python 2.

pvssrikanth commented 3 years ago

Dear Sir, I am using pytho 3.9 in env (fastadminenv) @.:~/srik/mayprojects/full-stack-fastapi-postgresql$ ls CONTRIBUTING.md cookiecutter.json {{cookiecutter.project_slug}} hooks img LICENSE README.md scripts (fastadminenv) @.:~/srik/mayprojects/full-stack-fastapi-postgresql$ python -V Python 3.9.1 (fastadminenv) @.*** :~/srik/mayprojects/full-stack-fastapi-postgresql$

Can you suggest now how to run the cookiecutter command

Please advise i am novice but your project is really useful.

Thanking you , srikanth

On Sun, May 2, 2021 at 2:56 AM Nicola Miskowiec @.***> wrote:

Can you check which python version you are using? You'd get this error when running it on python 2.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/373#issuecomment-830696800, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGUZBASKS2WCLCXIZVB3TLRWXLANCNFSM436AFVKA .

pvssrikanth commented 3 years ago

Dear Sir,

(fastadminenv) @.:~/srik/mayprojects/full-stack-fastapi-postgresql$ sudo cookiecutter https://github.com/tiangolo/full-stack-fastapi-postgresql You've downloaded /home/iibadmin/.cookiecutters/full-stack-fastapi-postgresql before. Is it okay to delete and re-download it? [yes]: yes project_name [Base Project]: iib project_slug [iib]: domain_main [iib.com]: domain_staging [stag.iib.com]: docker_swarm_stack_name_main [iib-com]: docker_swarm_stack_name_staging [stag-iib-com]: secret_key [changethis]: first_superuser @.: first_superuser_password [changethis]: backend_cors_origins [["http://localhost", "http://localhost:4200", " http://localhost:3000", "http://localhost:8080", "https://localhost", " https://localhost:4200", "https://localhost:3000", "https://localhost:8080", "http://dev.iib.com", "https://stag.iib.com", "https://iib.com", " http://local.dockertoolbox.tiangolo.com", "http://localhost.tiangolo.com"]]:

smtp_port [587]: smtp_host []: smtp_user []: smtp_password []: smtp_emails_from_email @.: postgres_password [changethis]: pgadmin_default_user @.: pgadmin_default_user_password [changethis]: traefik_constraint_tag [iib.com]: traefik_constraint_tag_staging [stag.iib.com]: traefik_public_constraint_tag [traefik-public]: flower_auth [admin:changethis]: sentry_dsn []: docker_image_prefix []: docker_image_backend [backend]: docker_image_celeryworker [celeryworker]: docker_image_frontend [frontend]: File "/tmp/tmp3EjvwH.py", line 4 path: Path ^ SyntaxError: invalid syntax ERROR: Stopping generation because post_gen_project hook script didn't exit successfully Hook script failed (exit status: 1) (fastadminenv) @.*** :~/srik/mayprojects/full-stack-fastapi-postgresql$

I DONNOT KNOW HOW TO SETUP THIS UP AND RUNNING.

Kindly help in resolution

On Sun, May 2, 2021 at 11:39 AM Srikanth Pokkuluri @.***> wrote:

Dear Sir, I am using pytho 3.9 in env (fastadminenv) @.:~/srik/mayprojects/full-stack-fastapi-postgresql$ ls CONTRIBUTING.md cookiecutter.json {{cookiecutter.project_slug}} hooks img LICENSE README.md scripts (fastadminenv) @.:~/srik/mayprojects/full-stack-fastapi-postgresql$ python -V Python 3.9.1 (fastadminenv) @.*** :~/srik/mayprojects/full-stack-fastapi-postgresql$

Can you suggest now how to run the cookiecutter command

Please advise i am novice but your project is really useful.

Thanking you , srikanth

On Sun, May 2, 2021 at 2:56 AM Nicola Miskowiec @.***> wrote:

Can you check which python version you are using? You'd get this error when running it on python 2.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/373#issuecomment-830696800, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGUZBASKS2WCLCXIZVB3TLRWXLANCNFSM436AFVKA .

NMisko commented 3 years ago

What does cookiecutter -V return?

pvssrikanth commented 3 years ago

Hi Sir,

It returned below

app.py envmail fastadminenv full-stack-fastapi-postgresql pycache testing testmail.py @.:~/srik/mayprojects$ source fastadminenv/bin/activate (fastadminenv) @.:~/srik/mayprojects$ python -V Python 3.9.1 (fastadminenv) @.***:~/srik/mayprojects$

Please advise how to fix this issue.

Thanks & Regards srikanth

On Sun, May 2, 2021 at 4:34 PM Nicola Miskowiec @.***> wrote:

What does cookiecutter -V return?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/373#issuecomment-830790985, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGUYDE76BTRNNEQNBD7TTLUWUHANCNFSM436AFVKA .

NMisko commented 3 years ago

Yeah, so cookiecutter was installed outside your python 3 environment. You can call python -m 'pip install cookiecutter' to make sure you're using the correct pip. Alternatively: leave the environment (deactivate), then uninstall the python 2 version pip uninstall cookiecutter then install the python 3 version pip3 install cookiecutter.

pvssrikanth commented 3 years ago

Dear Sir, Thanks for your prompt response.

I am novice here

Trying top run the usggested cocmmands But not working

env) @.:~/srik/mayprojects$ python -V Python 3.9.1 (env) @.:~/srik/mayprojects$ python3.9 -m 'pip install cookiecutter' /home/iibadmin/srik/mayprojects/env/bin/python3.9: No module named pip install cookiecutter (env) @.:~/srik/mayprojects$ python -m 'pip install cookiecutter' /home/iibadmin/srik/mayprojects/env/bin/python: No module named pip install cookiecutter (env) @.:~/srik/mayprojects$ Please guide again

Thanks

On Sun, May 2, 2021 at 6:56 PM Nicola Miskowiec @.***> wrote:

Yeah, so cookiecutter was installed outside your python 3 environment. You can call python -m 'pip install cookiecutter' to make sure you're using the correct pip. Alternatively: leave the environment (deactivate), then uninstall the python 2 version pip uninstall cookiecutter then install the python 3 version pip3 install cookiecutter.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/373#issuecomment-830809699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGU7W7WP3MIFMOVRF42TTLVHJ5ANCNFSM436AFVKA .

NMisko commented 3 years ago

Try it without the quotation marks, sorry: python3 -m pip install cookiecutter

pvssrikanth commented 3 years ago

Thanks Sir I will try tomo and let y know

Thanks for your excellent support and guidance

Regards Srikanth On Sunday, May 2, 2021, Nicola Miskowiec @.***> wrote:

Try it without the quotation marks, sorry: python3 -m pip install cookiecutter

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/373#issuecomment-830824217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGUZD4WG2EAVELE62NIDTLVTRPANCNFSM436AFVKA .

pvssrikanth commented 3 years ago

Dear Sir, Now Cookiecutter setup with python3.9 However i am still facing issue

pgadmin_default_user @.***: pgadmin_default_user_password [changethis]: traefik_constraint_tag [iib.com]: traefik_constraint_tag_staging [stag.iib.com]: traefik_public_constraint_tag [traefik-public]: flower_auth [admin:changethis]: sentry_dsn []: iib docker_image_prefix []: iib docker_image_backend [iibbackend]: docker_image_celeryworker [iibceleryworker]: docker_image_frontend [iibfrontend]:

Regards, srikanth

On Sun, May 2, 2021 at 9:41 PM Srikanth Pokkuluri @.***> wrote:

Thanks Sir I will try tomo and let y know

Thanks for your excellent support and guidance

Regards Srikanth On Sunday, May 2, 2021, Nicola Miskowiec @.***> wrote:

Try it without the quotation marks, sorry: python3 -m pip install cookiecutter

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/373#issuecomment-830824217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGUZD4WG2EAVELE62NIDTLVTRPANCNFSM436AFVKA .

pvssrikanth commented 3 years ago

Dear Sir, This is really very exciting project.

Kindly help me in resolving this issue.

I want to see its successful build and see the demo

so kindly help

On Mon, May 3, 2021 at 9:28 AM Srikanth Pokkuluri @.***> wrote:

Dear Sir, Now Cookiecutter setup with python3.9 However i am still facing issue

pgadmin_default_user @.***: pgadmin_default_user_password [changethis]: traefik_constraint_tag [iib.com]: traefik_constraint_tag_staging [stag.iib.com]: traefik_public_constraint_tag [traefik-public]: flower_auth [admin:changethis]: sentry_dsn []: iib docker_image_prefix []: iib docker_image_backend [iibbackend]: docker_image_celeryworker [iibceleryworker]: docker_image_frontend [iibfrontend]:

  • File "/tmp/tmplrmymn.py", line 4 path: Path ^SyntaxError: invalid syntaxERROR: Stopping generation because post_gen_project hook script didn't exit successfullyHook script failed (exit status: 1)* (env) @.:~/srik/fullstackfastapi$ cookiecutter -V Cookiecutter 1.7.2 from /home/iibadmin/srik/fullstackfastapi/env/lib/python3.9/site-packages (Python 3.9) (env) @.:~/srik/fullstackfastapi$

    Kindly help in resolving this issue.

Regards, srikanth

On Sun, May 2, 2021 at 9:41 PM Srikanth Pokkuluri @.***> wrote:

Thanks Sir I will try tomo and let y know

Thanks for your excellent support and guidance

Regards Srikanth On Sunday, May 2, 2021, Nicola Miskowiec @.***> wrote:

Try it without the quotation marks, sorry: python3 -m pip install cookiecutter

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/373#issuecomment-830824217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGAGUZD4WG2EAVELE62NIDTLVTRPANCNFSM436AFVKA .

pvssrikanth commented 3 years ago

Unable to run this and test.

kindly help