[GH-ISSUE #6249] micropip can't install python packages when I use company proxy #52962

Closed
opened 2026-05-05 14:11:05 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @vahidodin on GitHub (Oct 17, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6249

In Dockerfile,
RUN npm run build
in package.json,
"pyodide:fetch": "node scripts/prepare-pyodide.js"
in prepare-pyodide.js,
when it wanted to download packages in these lines :

try {
			for (const pkg of packages) {
				console.log(`Installing package: ${pkg}`);
				await micropip.install(pkg);
			}
		} catch (err) {
			console.error('Package installation failed:', err);
			return;
		}

I got this error :

Loading numpy
Didn't find package numpy-1.26.4-cp312-cp312-pyodide_2024_0_wasm32.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/
Failed to load numpy
The following error occurred while loading numpy:
fetch failed
Installing package: pandas
Loading numpy, pandas, python-dateutil, pytz, six
Didn't find package numpy-1.26.4-cp312-cp312-pyodide_2024_0_wasm32.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/
Didn't find package pandas-2.2.0-cp312-cp312-pyodide_2024_0_wasm32.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/
Didn't find package python_dateutil-2.9.0.post0-py2.py3-none-any.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/
Didn't find package six-1.16.0-py2.py3-none-any.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/
Didn't find package pytz-2024.1-py2.py3-none-any.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/
The following error occurred while loading numpy:
fetch failed
Failed to load numpy, pandas, python-dateutil, pytz, six
The following error occurred while loading pandas:
fetch failed
The following error occurred while loading python-dateutil:
fetch failed
The following error occurred while loading six:
fetch failed
.
.
.
Originally created by @vahidodin on GitHub (Oct 17, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/6249 In Dockerfile, RUN npm run build in package.json, "pyodide:fetch": "node scripts/prepare-pyodide.js" in prepare-pyodide.js, when it wanted to download packages in these lines : ``` try { for (const pkg of packages) { console.log(`Installing package: ${pkg}`); await micropip.install(pkg); } } catch (err) { console.error('Package installation failed:', err); return; } ``` I got this error : ``` Loading numpy Didn't find package numpy-1.26.4-cp312-cp312-pyodide_2024_0_wasm32.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/ Failed to load numpy The following error occurred while loading numpy: fetch failed Installing package: pandas Loading numpy, pandas, python-dateutil, pytz, six Didn't find package numpy-1.26.4-cp312-cp312-pyodide_2024_0_wasm32.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/ Didn't find package pandas-2.2.0-cp312-cp312-pyodide_2024_0_wasm32.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/ Didn't find package python_dateutil-2.9.0.post0-py2.py3-none-any.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/ Didn't find package six-1.16.0-py2.py3-none-any.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/ Didn't find package pytz-2024.1-py2.py3-none-any.whl locally, attempting to load from https://cdn.jsdelivr.net/pyodide/v0.26.1/full/ The following error occurred while loading numpy: fetch failed Failed to load numpy, pandas, python-dateutil, pytz, six The following error occurred while loading pandas: fetch failed The following error occurred while loading python-dateutil: fetch failed The following error occurred while loading six: fetch failed . . . ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#52962