PythonError: Traceback (most recent call last):
File "/lib/python312.zip/_pyodide/_base.py", line 629, in pyimport_impl
res = import(stem, fromlist=fromlist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'micropip'
The module 'micropip' is included in the Pyodide distribution, but it is not installed.
You can install it by calling:
await micropip.install("micropip") in Python, or
await pyodide.loadPackage("micropip") in JavaScript
See https://pyodide.org/en/stable/usage/loading-packages.html for more details.
at new_error (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:9965)
at wasm://wasm/0267d6e2:wasm-function[302]:0x16dbeb
at wasm://wasm/0267d6e2:wasm-function[303]:0x16dcb1
at Module._pythonexc2js (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:700519)
at callPyObjectKwargs (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:64179)
at Module.callPyObject (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:65369)
at g.apply (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:80884)
at Object.apply (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:78180)
at Object.pyimport (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:108115)
at downloadPackages (file:///D:/Lib/Dev/AI/open-webui/open-webui/scripts/prepare-pyodide.js:22:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///D:/Lib/Dev/AI/open-webui/open-webui/scripts/prepare-pyodide.js:38:1 {
Originally created by @tqangxl on GitHub (Jun 2, 2024).
# Bug Report
## Description
PS D:\Lib\Dev\AI\open-webui\open-webui> npm run build
> open-webui@0.2.0 build
> npm run pyodide:fetch && vite build
> open-webui@0.2.0 pyodide:fetch
> node scripts/prepare-pyodide.js
Setting up pyodide + micropip
if(shouldRunNow)callMain(args);postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"])shouldRunNow=false;run();moduleRtn=readyPromise;
PythonError: Traceback (most recent call last):
File "/lib/python312.zip/_pyodide/_base.py", line 629, in pyimport_impl
res = __import__(stem, fromlist=fromlist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'micropip'
The module 'micropip' is included in the Pyodide distribution, but it is not installed.
You can install it by calling:
await micropip.install("micropip") in Python, or
await pyodide.loadPackage("micropip") in JavaScript
See https://pyodide.org/en/stable/usage/loading-packages.html for more details.
at new_error (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:9965)
at wasm://wasm/0267d6e2:wasm-function[302]:0x16dbeb
at wasm://wasm/0267d6e2:wasm-function[303]:0x16dcb1
at Module._pythonexc2js (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:700519)
at callPyObjectKwargs (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:64179)
at Module.callPyObject (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:65369)
at g.apply (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:80884)
at Object.apply (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:78180)
at Object.pyimport (D:\Lib\Dev\AI\open-webui\open-webui\node_modules\pyodide\pyodide.asm.js:10:108115)
at downloadPackages (file:///D:/Lib/Dev/AI/open-webui/open-webui/scripts/prepare-pyodide.js:22:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///D:/Lib/Dev/AI/open-webui/open-webui/scripts/prepare-pyodide.js:38:1 {
type: 'ModuleNotFoundError',
__error_address: 16927776
}
Node.js v20.13.1
**Bug Summary:**
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @tqangxl on GitHub (Jun 2, 2024).
Bug Report
Description
PS D:\Lib\Dev\AI\open-webui\open-webui> npm run build
Setting up pyodide + micropip
if(shouldRunNow)callMain(args);postRun()}if(Module["setStatus"]){Module"setStatus";setTimeout(function(){setTimeout(function(){Module"setStatus"},1);doRun()},1)}else{doRun()}}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"])shouldRunNow=false;run();moduleRtn=readyPromise;
PythonError: Traceback (most recent call last):
File "/lib/python312.zip/_pyodide/_base.py", line 629, in pyimport_impl
res = import(stem, fromlist=fromlist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'micropip'
The module 'micropip' is included in the Pyodide distribution, but it is not installed.
You can install it by calling:
await micropip.install("micropip") in Python, or
await pyodide.loadPackage("micropip") in JavaScript
See https://pyodide.org/en/stable/usage/loading-packages.html for more details.
type: 'ModuleNotFoundError',
__error_address: 16927776
}
Node.js v20.13.1
Bug Summary: