Replies: 1 comment
-
|
The error shows matplotlib isn't installed in your Pyodide environment. Solution: Run one of these in your Pyodide code or JavaScript before importing matplotlib: Python: JavaScript:
See Pyodide package loading docs for details. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Tried to pull and re-install several times, but it always trigger the following logs. In fact, the matplotlib was installed both locally and in docker environment. Pls help to figure out what's the issue.
2025-02-10 00:19:16 PythonError: Traceback (most recent call last):
2025-02-10 00:19:16 File "/lib/python311.zip/_pyodide/_base.py", line 571, in eval_code_async
2025-02-10 00:19:16 await CodeRunner(
2025-02-10 00:19:16 File "/lib/python311.zip/_pyodide/_base.py", line 394, in run_async
2025-02-10 00:19:16 coroutine = eval(self.code, globals, locals)
2025-02-10 00:19:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-10 00:19:16 File "", line 1, in
2025-02-10 00:19:16 ModuleNotFoundError: The module 'matplotlib' is included in the Pyodide distribution, but it is not installed.
2025-02-10 00:19:16 You can install it by calling:
2025-02-10 00:19:16 await micropip.install("matplotlib") in Python, or
2025-02-10 00:19:16 await pyodide.loadPackage("matplotlib") in JavaScript
2025-02-10 00:19:16 See https://pyodide.org/en/stable/usage/loading-packages.html for more details.
2025-02-10 00:19:16
2025-02-10 00:19:16 at new_error (/usr/src/app/node_modules/pyodide/pyodide.asm.js:9:12519)
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[295]:0x158827
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[452]:0x15fcd5
2025-02-10 00:19:16 at _PyCFunctionWithKeywords_TrampolineCall (/usr/src/app/node_modules/pyodide/pyodide.asm.js:9:123052)
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[1057]:0x1a3091
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[3387]:0x289e4d
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[2037]:0x1e3f77
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[1064]:0x1a3579
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[1067]:0x1a383a
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[1068]:0x1a38dc
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[3200]:0x2685c5
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[3201]:0x26e3d0
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[1070]:0x1a3a04
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[1065]:0x1a3694
2025-02-10 00:19:16 at wasm://wasm/02250ad6:wasm-function[440]:0x15f45e
2025-02-10 00:19:16 at Object.Module.callPyObjectKwargs (/usr/src/app/node_modules/pyodide/pyodide.asm.js:9:81732)
2025-02-10 00:19:16 at Object.Module.callPyObject (/usr/src/app/node_modules/pyodide/pyodide.asm.js:9:82066)
2025-02-10 00:19:16 at Timeout.wrapper [as _onTimeout] (/usr/src/app/node_modules/pyodide/pyodide.asm.js:9:58562)
2025-02-10 00:19:16 at listOnTimeout (node:internal/timers:573:17)
2025-02-10 00:19:16 at processTimers (node:internal/timers:514:7) {
2025-02-10 00:19:16 type: 'ModuleNotFoundError',
2025-02-10 00:19:16 __error_address: 10225744
2025-02-10 00:19:16 }
Beta Was this translation helpful? Give feedback.
All reactions