GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cannot import name 'MarkupMode' from 'typer.rich_utils' · Issue #332 · unioslo/zabbix-cli

cannot import name 'MarkupMode' from 'typer.rich_utils' #332

New issue
Copy link
New issue
Copy link
Open
Open
cannot import name 'MarkupMode' from 'typer.rich_utils'#332
Copy link

Description

@rodinux
rodinux
opened on Jan 1, 2026
Issue body actions

hello, I have a new issue with the installation of zabbix 7.0 with Yunohost related from a user case

here logs he found (Debian 12)

2025-12-31 10:54:45,194: DEBUG - + /usr/share/zabbix-cli/bin/zabbix-cli --config /usr/share/zabbix-cli/zabbix-cli.toml create_user svc_zabbix_ldap --firstname svc_zabbix_ldap --lastname svc_zabbix_ldap --passwd ********** --role superadmin --groups 7
2025-12-31 10:54:45,607: WARNING - ╭───────────────────── Traceback (most recent call last) ────────────────────��─╮
2025-12-31 10:54:45,608: WARNING - │ /usr/share/zabbix-cli/lib/python3.11/site-packages/zabbix_cli/_patches/typer │
2025-12-31 10:54:45,610: WARNING - │ .py:316 in patch                                                             │
2025-12-31 10:54:45,610: WARNING - │                                                                              │
2025-12-31 10:54:45,612: WARNING - │   313 │   with patcher("typer.rich_utils.STYLE_HELPTEXT"):                   │
2025-12-31 10:54:45,613: WARNING - │   314 │   │   patch_help_text_style()                                        │
2025-12-31 10:54:45,614: WARNING - │   315 │   with patcher("typer.rich_utils._get_help_text"):                   │
2025-12-31 10:54:45,615: WARNING - │ ❱ 316 │   │   patch_help_text_spacing()                                      │
2025-12-31 10:54:45,616: WARNING - │   317 │   with patcher("typer.main.generate_enum_convertor"):                │
2025-12-31 10:54:45,616: WARNING - │   318 │   │   patch_generate_enum_convertor()                                │
2025-12-31 10:54:45,618: WARNING - │   319 │   with patcher("typer.main.get_click_type"):                         │
2025-12-31 10:54:45,618: WARNING - │                                                                              │
2025-12-31 10:54:45,620: WARNING - │ /usr/share/zabbix-cli/lib/python3.11/site-packages/zabbix_cli/_patches/typer │
2025-12-31 10:54:45,620: WARNING - │ .py:60 in patch_help_text_spacing                                            │
2025-12-31 10:54:45,622: WARNING - │                                                                              │
2025-12-31 10:54:45,622: WARNING - │    57 │   from typer.rich_utils import STYLE_DEPRECATED                      │
2025-12-31 10:54:45,623: WARNING - │    58 │   from typer.rich_utils import STYLE_HELPTEXT                        │
2025-12-31 10:54:45,624: WARNING - │    59 │   from typer.rich_utils import STYLE_HELPTEXT_FIRST_LINE             │
2025-12-31 10:54:45,625: WARNING - │ ❱  60 │   from typer.rich_utils import MarkupMode                            │
2025-12-31 10:54:45,626: WARNING - │    61 │   from typer.rich_utils import _make_rich_text                       │
2025-12-31 10:54:45,627: WARNING - │    62 │                                                                      │
2025-12-31 10:54:45,627: WARNING - │    63 │   @group()                                                           │
2025-12-31 10:54:45,629: WARNING - ╰──────────────────────────────────────────────────────────────────────────────╯
2025-12-31 10:54:45,629: WARNING - ImportError: cannot import name 'MarkupMode' from 'typer.rich_utils'
2025-12-31 10:54:45,631: WARNING - (/usr/share/zabbix-cli/lib/python3.11/site-packages/typer/rich_utils.py)
2025-12-31 10:54:45,632: DEBUG - 
2025-12-31 10:54:45,633: WARNING -                             Diagnostics
2025-12-31 10:54:45,634: WARNING - ┌─────────────┬───────────────────────────────────────────────────┐
2025-12-31 10:54:45,635: WARNING - │ Package     │ Typer version: 0.21.0                             │
2025-12-31 10:54:45,636: WARNING - │ zabbix-cli  │ 3.6.2                                             │
2025-12-31 10:54:45,637: WARNING - │ Python      │ 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] │
2025-12-31 10:54:45,638: WARNING - │ Platform    │ linux                                             │
2025-12-31 10:54:45,639: WARNING - └─────────────┴───────────────────────────────────────────────────┘
2025-12-31 10:54:45,639: WARNING - ERROR: Failed to patch typer.rich_utils._get_help_text
Reacted by Anthony

Activity

  1. avesst commented on Jan 14, 2026

    @avesst
    avesst
    on Jan 14, 2026
    More actions

    I have the same problem. Any ideas how to fix?

  2. rodinux commented on Jan 20, 2026

    @rodinux
    rodinux
    on Jan 20, 2026
    ContributorAuthor
    More actions

    I found a fix, not sure is the good way. It seems since 0.20.1, Typer have replace MarkupMode with MarkupModeStrict. I made a PR if you want try it...

  3. rodinux commented on Jan 21, 2026

    @rodinux
    rodinux
    on Jan 21, 2026
    ContributorAuthor
    More actions

    I am not an expert with python coding, but my PR works to fix zabbix-cli-uio install. In the install process for the zabbix Yunohost package, I am using this and it works...

    mkdir -p /usr/share/zabbix-cli
    python3 -m venv /usr/share/zabbix-cli
    /usr/share/zabbix-cli/bin/pip install git+https://github.com/rodinux/zabbix-cli@fix-MarkupMode
    
  4. github-merge-queue
    added a commit that references this issue on Feb 10, 2026

    zabbix-cli: fix build

    179077d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.