Textualize / trogon

Easily turn your Click CLI into a powerful terminal application
MIT License
2.49k stars 54 forks source link

Instructions for Typer don't work #88

Closed bu-ra3y closed 1 month ago

bu-ra3y commented 1 month ago

Hey guys!

This project looks very cool.

I followed the instructions for Typer but got an import error.

➜  poetry add "trogon[typer]"
Using version ^0.5.0 for trogon

Updating dependencies
Resolving dependencies... (0.3s)

Package operations: 5 installs, 0 updates, 0 removals

  - Installing uc-micro-py (1.0.3)
  - Installing linkify-it-py (2.0.3)
  - Installing mdit-py-plugins (0.4.2)
  - Installing textual (0.79.1)
  - Installing trogon (0.5.0)

Writing lock file

~/code/eye  3.12.2 [ eye]                                                                                                             📦 0.4.0 on  main [!?] using ☁️  default/gecko-dev-fde 
➜  python eye_cli/eye.py tui 
Traceback (most recent call last):
  File "/Users/will.barley/code/eye/eye_cli/eye.py", line 12, in <module>
    from trogon.typer import init_tui
ModuleNotFoundError: No module named 'trogon.typer'

I tried installing via both

poetry add trogon

and

poetry add "trogon[typer]"
daneah commented 1 month ago

Hey @bu-ra3y thanks for filing! I've merged the changes for Typer support but haven't cut a release just yet; hope to get one out shortly. Sorry for the confusing (but hopefully short) transition period!

daneah commented 1 month ago

Hey @bu-ra3y can you give things a try on v0.6.0 and see if it works as documented? I'll close this issue if so!