Skip to content

AttributeError: module 'typer' has no attribute 'rich_utils' #784

@brent-cybrid

Description

@brent-cybrid

Checklist

Safety version

3.6.1

Python version

3.13.3

Operating System

macOS

Describe the problem you'd like to have solved

Traceback (most recent call last):
  File "<virtualenv directory>/bin/safety", line 5, in <module>
    from safety.cli import cli
  File "<virtualenv directory>/lib/python3.13/site-packages/safety/cli.py", line 724, in <module>
    typer.rich_utils.STYLE_HELPTEXT = ""
    ^^^^^^^^^^^^^^^^
AttributeError: module 'typer' has no attribute 'rich_utils'

Describe the ideal solution

The safety CLI would execute without error

Alternatives and current workarounds

Revert typer back to version < 0.17.0

Additional context

No response

What I Did

Traceback (most recent call last):
  File "<virtualenv directory>/bin/safety", line 5, in <module>
    from safety.cli import cli
  File "<virtualenv directory>/lib/python3.13/site-packages/safety/cli.py", line 724, in <module>
    typer.rich_utils.STYLE_HELPTEXT = ""
    ^^^^^^^^^^^^^^^^
AttributeError: module 'typer' has no attribute 'rich_utils'

Metadata

Metadata

Assignees

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