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

TUI doesn't work #367

Open
goleary opened this issue Feb 25, 2025 · 0 comments
Open

TUI doesn't work #367

goleary opened this issue Feb 25, 2025 · 0 comments
Assignees
Labels
bug Something isn't working triage This will looked at

Comments

@goleary
Copy link

goleary commented Feb 25, 2025

Describe the bug
camply tui fails to run on version 0.32.9

  • pipx install camply - this succeeded after which I used it, but then wanted to try via tui
  • pipx install "camply[tui]" - failed
  • pipx install "camply[tui]" --force - succeeded
  • camply tui - failed with below error
  • pipx uninstall camply
  • pipx install "camply[tui]"
  • cambly tui - failed again with same error

Original Camply Command (with --debug)

 $camply tui
[2025-02-25 11:32:15] CAMPLY   camply, the campsite finder ⛺️                                                                                                                            
╭────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────╮
│ /Users/goleary/.local/pipx/venvs/camply/lib/python3.13/site-packages/trogon/trogon.py:164 in selected_command_changed                                                                 │
│                                                                                                                                                                                       │
│   161 │   ) -> None:                                                                           ╭───────── locals ──────────╮                                                          │
│   162 │   │   """When we highlight a node in the CommandTree, the main body of the home page u │ event = NodeHighlighted() │                                                          │
│   163 │   │   to display a form specific to the highlighted command."""                        │  self = CommandBuilder()  │                                                          │
│ ❱ 164 │   │   await self._refresh_command_form(event.node)                                     ╰───────────────────────────╯                                                          │
│   165 │                                                                                                                                                                               │
│   166 │   @on(CommandForm.Changed)                                                                                                                                                    │
│   167 │   def update_command_data(self, event: CommandForm.Changed) -> None:                                                                                                          │
│                                                                                                                                                                                       │
│ /Users/goleary/.local/pipx/venvs/camply/lib/python3.13/site-packages/trogon/trogon.py:152 in _refresh_command_form                                                                    │
│                                                                                                                                                                                       │
│   149 │   │   │   │   return                                                                   ╭───────────── locals ──────────────╮                                                  │
│   150 │   │                                                                                    │ node = TreeNode('Commands', None) │                                                  │
│   151 │   │   self.selected_command_schema = node.data                                         │ self = CommandBuilder()           │                                                  │
│ ❱ 152 │   │   self._update_command_description(node)                                           ╰───────────────────────────────────╯                                                  │
│   153 │   │   self._update_execution_string_preview(                                                                                                                                  │
│   154 │   │   │   self.selected_command_schema, self.command_data                                                                                                                     │
│   155 │   │   )                                                                                                                                                                       │
│                                                                                                                                                                                       │
│ /Users/goleary/.local/pipx/venvs/camply/lib/python3.13/site-packages/trogon/trogon.py:177 in _update_command_description                                                              │
│                                                                                                                                                                                       │
│   174 │   │   """Update the description of the command at the bottom of the sidebar            ╭──────────────────────── locals ─────────────────────────╮                            │
│   175 │   │   based on the currently selected node in the command tree."""                     │ description_box = Static(id='home-command-description') │                            │
│   176 │   │   description_box = self.query_one("#home-command-description", Static)            │            node = TreeNode('Commands', None)            │                            │
│ ❱ 177 │   │   description_text = node.data.docstring or ""                                     │            self = CommandBuilder()                      │                            │
│   178 │   │   description_text = description_text.lstrip()                                     ╰─────────────────────────────────────────────────────────╯                            │
│   179 │   │   description_text = f"[b]{node.label if self.is_grouped_cli else self.click_app_n                                                                                        │
│   180 │   │   description_box.update(description_text)                                                                                                                                │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'docstring'
[2025-02-25 11:32:16] CAMPLY   Exiting camply 👋

Additional context
Macbook Pro 14, 2023
macOS Sequoia 15.1

@goleary goleary added the bug Something isn't working label Feb 25, 2025
@github-actions github-actions bot added the triage This will looked at label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This will looked at
Projects
None yet
Development

No branches or pull requests

2 participants