d0c-s4vage / lookatme

An interactive, terminal-based markdown presenter
https://lookatme.readthedocs.io/en/latest/
MIT License
2.06k stars 59 forks source link

Upgrade latest version PyYAML (6.0.1) and mistune (3.0.1) #219

Open tanducmai opened 1 year ago

tanducmai commented 1 year ago

Describe the Feature Request PyYAML and mistune to allow latest version to avoid conflict over dependencies

Genzer commented 9 months ago

Using lookatme==2.5.5 with mistune==3.0.1 I got error

File "<REDACTED>/trying-lookatme/.venv/lib/python3.11/site-packages/mistune/block_parser.py", line 435, in parse
    while state.cursor < state.cursor_max:
          ^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'cursor'

Here what worked for me:

# Install all requirements overwriting only PyYAML
$> cat <<OVERWRITE | pip install -r /dev/stdin
marshmallow>=3.17.0,<4
Click>=7,<9
PyYAML==6.0.1
mistune>=0.8,<1
urwid>=2,<3
Pygments>=2,<3
OVERWRITE

$> pip install --no-deps lookatme==2.5.5