pyodide / pyodide/pyodide-pack

pyodide minify --version throw...

Open
#60 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
48
Forks
9
PR merge metrics
No merged PRs in 30d

Description

  1. python --version:
    Python 3.12.5

  2. pip install pyodide-pack:
    Collecting pyodide-pack
    Downloading pyodide_pack-0.2.0-py3-none-any.whl.metadata (6.6 kB)
    Collecting typer~=0.4.1 (from pyodide-pack)
    Downloading typer-0.4.2-py3-none-any.whl.metadata (12 kB)
    Collecting rich~=12.3.0 (from pyodide-pack)
    Downloading rich-12.3.0-py3-none-any.whl.metadata (19 kB)
    Collecting jinja2~=3.1.2 (from pyodide-pack)
    Downloading jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
    Collecting pyodide-cli>=0.2.0 (from pyodide-pack)
    Downloading pyodide_cli-0.3.0-py3-none-any.whl.metadata (2.2 kB)
    Collecting MarkupSafe>=2.0 (from jinja2~=3.1.2->pyodide-pack)
    Downloading MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl.metadata (4.1 kB)
    Collecting commonmark<0.10.0,>=0.9.0 (from rich~=12.3.0->pyodide-pack)
    Downloading commonmark-0.9.1-py2.py3-none-any.whl.metadata (5.7 kB)
    Collecting pygments<3.0.0,>=2.6.0 (from rich~=12.3.0->pyodide-pack)
    Downloading pygments-2.19.1-py3-none-any.whl.metadata (2.5 kB)
    Collecting click<9.0.0,>=7.1.1 (from typer~=0.4.1->pyodide-pack)
    Using cached click-8.2.1-py3-none-any.whl.metadata (2.5 kB)
    Collecting colorama (from click<9.0.0,>=7.1.1->typer~=0.4.1->pyodide-pack)
    Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
    Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
    Downloading pyodide_cli-0.3.0-py3-none-any.whl (11 kB)
    Downloading rich-12.3.0-py3-none-any.whl (232 kB)
    Downloading typer-0.4.2-py3-none-any.whl (27 kB)
    Using cached click-8.2.1-py3-none-any.whl (102 kB)
    Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
    Downloading MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl (15 kB)
    Downloading pygments-2.19.1-py3-none-any.whl (1.2 MB)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 1.2 MB/s eta 0:00:00
    Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
    r-0.4.2

  3. pip list
    Package Version


annotated-types 0.7.0
click 8.2.1
colorama 0.4.6
commonmark 0.9.1
graph_hull 0.1.0
Jinja2 3.1.6
layout_transform 0.1.0
MarkupSafe 3.0.2
numpy 2.2.6
packaging 25.0
pip 24.2
pyclipper 1.3.0.post6
pydantic 2.11.5
pydantic_core 2.33.2
Pygments 2.19.1
pyodide-cli 0.3.0
rich 12.3.0
shapely 2.1.1
typer 0.4.2
typing_extensions 4.13.2
typing-inspection 0.4.1

  1. pyodide minify --version
    Traceback (most recent call last):
    File "", line 198, in run_module_as_main
    File "", line 88, in run_code
    File "D:\Rabota1\skema\layout_transfer.venv\scripts\pyodide.exe_main
    .py", line 4, in
    File "D:\Rabota1\skema\layout_transfer.venv\Lib\site-packages\pyodide_cli_main
    .py", line 1, in
    from .app import main
    File "D:\Rabota1\skema\layout_transfer.venv\Lib\site-packages\pyodide_cli\app.py", line 12, in
    app = typer.Typer(
    ^^^^^^^^^^^^
    TypeError: Typer.init() got an unexpected keyword argument 'rich_markup_mode'

If I have pyodide-build => Installing pyodide-pack will brake dependecies by downgrading rich && typer packages

Any suggestions???

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce pyodide minify --version with the reported Python 3.12 environment, then inspect pyodide_cli/__main__.py and pyodide_cli/app.py alongside the installed Typer and Rich versions. Done means the command starts without the rich_markup_mode TypeError while remaining compatible with the reported pyodide-build dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.