Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: No such command 'assets' #60

Open
1 of 4 tasks
cj opened this issue Dec 18, 2024 · 0 comments
Open
1 of 4 tasks

Bug: No such command 'assets' #60

cj opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cj
Copy link
Contributor

cj commented Dec 18, 2024

Description

litestar assets init throws error: No such command 'assets'

URL to code causing the issue

No response

MCVE

pip install litestar-vite
Collecting litestar-vite
  Downloading litestar_vite-0.11.1-py3-none-any.whl.metadata (6.2 kB)
Collecting litestar>=2.7.0 (from litestar[jinja]>=2.7.0->litestar-vite)
  Downloading litestar-2.13.0-py3-none-any.whl.metadata (107 kB)
Requirement already satisfied: anyio>=3 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (4.7.0)
Requirement already satisfied: click in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (8.1.7)
Requirement already satisfied: httpx>=0.22 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (0.27.2)
Collecting litestar-htmx>=0.3.0 (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite)
  Downloading litestar_htmx-0.4.1-py3-none-any.whl.metadata (2.0 kB)
Requirement already satisfied: msgspec>=0.18.2 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (0.18.6)
Requirement already satisfied: multidict>=6.0.2 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (6.1.0)
Collecting polyfactory>=2.6.3 (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite)
  Downloading polyfactory-2.18.1-py3-none-any.whl.metadata (27 kB)
Requirement already satisfied: pyyaml in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (6.0.2)
Collecting rich-click (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite)
  Downloading rich_click-1.8.5-py3-none-any.whl.metadata (7.9 kB)
Requirement already satisfied: rich>=13.0.0 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (13.9.4)
Requirement already satisfied: typing-extensions in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (4.12.2)
Requirement already satisfied: jinja2>=3.1.2 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from litestar[jinja]>=2.7.0->litestar-vite) (3.1.4)
Requirement already satisfied: idna>=2.8 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from anyio>=3->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (3.10)
Requirement already satisfied: sniffio>=1.1 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from anyio>=3->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (1.3.1)
Requirement already satisfied: certifi in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from httpx>=0.22->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (2024.8.30)
Requirement already satisfied: httpcore==1.* in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from httpx>=0.22->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (1.0.7)
Requirement already satisfied: h11<0.15,>=0.13 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from httpcore==1.*->httpx>=0.22->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (0.14.0)
Requirement already satisfied: MarkupSafe>=2.0 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from jinja2>=3.1.2->litestar[jinja]>=2.7.0->litestar-vite) (3.0.2)
Collecting faker (from polyfactory>=2.6.3->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite)
  Downloading Faker-33.1.0-py3-none-any.whl.metadata (15 kB)
Requirement already satisfied: markdown-it-py>=2.2.0 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from rich>=13.0.0->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from rich>=13.0.0->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (2.18.0)
Requirement already satisfied: mdurl~=0.1 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from markdown-it-py>=2.2.0->rich>=13.0.0->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (0.1.2)
Requirement already satisfied: python-dateutil>=2.4 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from faker->polyfactory>=2.6.3->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in /Users/cj/.asdf/installs/python/3.12.8/lib/python3.12/site-packages (from python-dateutil>=2.4->faker->polyfactory>=2.6.3->litestar>=2.7.0->litestar[jinja]>=2.7.0->litestar-vite) (1.17.0)
Downloading litestar_vite-0.11.1-py3-none-any.whl (31 kB)
Downloading litestar-2.13.0-py3-none-any.whl (555 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 555.5/555.5 kB 28.7 MB/s eta 0:00:00
Downloading litestar_htmx-0.4.1-py3-none-any.whl (10.0 kB)
Downloading polyfactory-2.18.1-py3-none-any.whl (59 kB)
Downloading rich_click-1.8.5-py3-none-any.whl (35 kB)
Downloading Faker-33.1.0-py3-none-any.whl (1.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 108.2 MB/s eta 0:00:00
Installing collected packages: litestar-htmx, faker, rich-click, polyfactory, litestar, litestar-vite
Successfully installed faker-33.1.0 litestar-2.13.0 litestar-htmx-0.4.1 litestar-vite-0.11.1 polyfactory-2.18.1 rich-click-1.8.5
Reshimming asdf python...

the-actors-house onmain [!] is 📦 v0.0.1 via 🐍 v3.12.8 (the-actors-house) took 11slitestar assets init
Using Litestar app from app.main:app

 Usage: litestar [OPTIONS] COMMAND [ARGS]...

╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ No such command 'assets'.                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

Steps to reproduce

pip install litestar-vite
litestar assets init

Screenshots

"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs

No response

Package Version

v0.11.1

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)
@cj cj added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant