Skip to content

Getting error 'Error acured while importing mermaidjs. #201

@zapta

Description

@zapta

When I try to run the python file below from a command line I am getting the error Error acured while importing mermaidjs .. Any suggestions? The only thing I installed was pip install mermaid-py. Using python 3.12.1 on Mac/arm64.

import mermaid as md
from mermaid.graph import Graph

sequence = Graph('Sequence-diagram',"""
stateDiagram-v2
    [*] --> Still
    Still --> [*]

    Still --> Moving
    Moving --> Still
    Moving --> Crash
    Crash --> [*]
""")
render = md.Mermaid(sequence)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions