Fix Python Tutorial
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python, wasm
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu với phần “Running components from Python Applications” tại language-support/building-a-simple-component/python.html và tái hiện lệnh wasmtime.bindgen được tài liệu hóa bằng package hiện tại. Đọc các issue #309 và #310 của wasmtime-py được tham chiếu để xác định trạng thái được hỗ trợ, sau đó cập nhật tutorial với một quy trình làm việc đã được kiểm chứng hoặc một ghi chú rõ ràng về khả năng sử dụng, đồng thời xác nhận rằng ví dụ không còn gây hiểu lầm cho người dùng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello,
I encountered an issue while following the "Running components from Python Applications" section in the documentation.
The documentation currently instructs users to install wasmtime and then run:
python3 -m wasmtime.bindgen add.wasm --out-dir add
However, with the current wasmtime package, this fails with:
No module named wasmtime.bindgen
It looks like wasmtime.bindgen was removed from wasmtime-py in bytecodealliance/wasmtime-py#310. The PR says that wasmtime.bindgen was removed in favor of component support in the C API, and that reimplementing bindgen for components is deferred to future work in bytecodealliance/wasmtime-py#309.
So I think this section of the documentation may now be outdated.
Expected behavior
The tutorial should provide a working way to run the add.wasm component from a Python host application, or mention that this workflow is no longer available with current versions of wasmtime-py.
Actual behavior
The documented command fails because wasmtime.bindgen is no longer available.
Environment
- Python 3.12.3 via pyenv
- wasmtime: latest version installed by
pip install wasmtime - OS: Ubuntu 24.04.1 LTS (Noble Numbat)
- Architecture: x86_64
- Ngôn ngữ chính
- Rust
- Star
- 137
- Fork
- 88
- Merge trung bình
- 10 giờ 38 phút
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bytecodealliance/component-docs
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
[FEATURE] Add wasi-cli templates Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
bytecodealliance/component-docs#294 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
bytecodealliance/component-docs#335 · 2 bình luận ·
Tất cả issue của bytecodealliance/component-docs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
Axis areas are always keyboard-focusable (Sense::drag), even with allow_axis_zoom_drag(false) Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
bug team:backend track:services-maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cowprotocol/services#4950 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
gitbutlerapp/gitbutler#15998 · 1 bình luận ·