allient / create-fastapi-project

CLI to create Fastapi projects easily.
https://pypi.org/project/create-fastapi-project
MIT License
80 stars 10 forks source link

make install fails with error #3

Closed aringa closed 10 months ago

aringa commented 10 months ago

I used the "full" template but server is not starting up.

When I run "make install" in the project dir, I get this message:

$ make install
cd backend/app && \
    poetry shell && \
    poetry install
Spawning shell within /Users/marc/Library/Caches/pypoetry/virtualenvs/app-gaC1xxoJ-py3.11
sh-3.2$ . /Users/marc/Library/Caches/pypoetry/virtualenvs/app-gaC1xxoJ-py3.11/bin/activate
$ exit
exit
Installing dependencies from lock file

No dependencies to install or update

[Errno 2] No such file or directory: '/Users/marc/Meine Ablage/youshift/youshift/backend/app/README.md'
make: *** [install] Error 1

The command is not completing properly. Can you advise?

When I run "make run-dev-build", I get things like

youshift_celery_beat          | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "database" (172.18.0.4), port 5432 failed: Connection refused

youshift_fastapi_server       |   File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
youshift_fastapi_server       |     raise OSError(err, f'Connect call failed {address}')
youshift_fastapi_server       | ConnectionRefusedError: [Errno 111] Connect call failed ('172.18.0.4', 5432)

Is it possible that postgresql is not properly configured?

jonra1993 commented 10 months ago

Hello @aringa thanks for opening this issue. it has been already solved in this new version https://github.com/allient/create-fastapi-project/releases/tag/0.2.4 . I tested it using poetry 1.6.1. Please check it and let me know your feedback.

aringa commented 10 months ago

Thanks a lot. I works smoothly now on my machine.