0

My initial target is add turtle module in pyodide. I looked up the document of pyodide and found that it could be loaded by Micropip. So I found pyo-js-turtle. But when I import it, it turns out that result.

enter image description here

Anyone who give me a hand would be appreciated. thx.

interlink
  • 1
  • 1
  • 1) Do not post images. Copy and paste the text. 2) Include the code that generates the error. 3) Read this guide: https://stackoverflow.com/help/minimal-reproducible-example – John Hanley Oct 29 '22 at 23:15
  • how to ask a good question: https://stackoverflow.com/help/how-to-ask – D.L Oct 30 '22 at 00:08
  • Pyodide docs say [here](https://pyodide.org/en/stable/usage/wasm-constraints.html?highlight=turtle): "The following modules are removed from the standard library to reduce download size and since they currently wouldn’t work in the WebAssembly VM". That includes turtle. Searching 'turtle' among open issues [here](https://github.com/pyodide/pyodide/issues?q=is%3Aissue+is%3Aopen+turtle) brings up [Add Turtle and pyecharts](https://github.com/pyodide/pyodide/issues/2172), which says there's an issue there because Turtle needs tkinter. – Wayne Oct 31 '22 at 18:30

0 Answers0