litestar-org / litestar-fullstack

Litestar Fullstack Reference Application with React, Vite, SQLAlchemy, Docker, Task Queues, and more!
https://fullstack.litestar.dev/
MIT License
315 stars 51 forks source link

Bug: CLI doesn't work #77

Closed sfermigier closed 11 months ago

sfermigier commented 1 year ago

Description

app command doesn't work:

ModuleNotFoundError: No module named 'app.cli'; 'app' is not a package

URL to code causing the issue

No response

MCVE

poetry install
app

Steps to reproduce

No response

Screenshots

No response

Logs

No response

Litestar Version

2.0.0 9e67d91 (from poetry.lock)

Platform

sfermigier commented 1 year ago

The bug doesn't appear with a clean virtualenv. I suspect a name collision with another package named app.

cofin commented 1 year ago

Just as a note, if you want to change the name from app to something else, you can edit this line and change app to whatever you want your command name to be. Afterwards, run poetry install to ensure the link is created in the venv.

cofin commented 1 year ago

I think we should make the documentation a bit more clear that you should run make install, this will ensure there is a clean environment at the start.

swapbee commented 12 months ago

Had to run poetry shell before running app then it works. Haven't tried after change to pdm.

cofin commented 11 months ago

Resolved by #92