Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: The module 'micropip' is included in the Pyodide distribution, but it is not installed. #780

Closed
DDidas opened this issue Mar 11, 2024 · 1 comment

Comments

@DDidas
Copy link

DDidas commented Mar 11, 2024

I run into the following problem on windows 11:

PythonError: Traceback (most recent call last):
  File "/lib/python311.zip/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1209, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1181, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1145, in _find_and_load_unlocked
ModuleNotFoundError: 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 (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:12519)
    at wasm://wasm/02250ad6:wasm-function[295]:0x158827
    at wasm://wasm/02250ad6:wasm-function[296]:0x15892c
    at Module._pythonexc2js (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:640895)
    at Module.callPyObjectKwargs (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:81856)
    at Module.callPyObject (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:82066)
    at Function.apply (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:97147)
    at Object.apply (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:95381)
    at Object.pyimport (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:119720)
    at j (C:\Users\A200162672\Desktop\ars_app\node_modules\@stlite\desktop\bin\dump_artifacts.js:3:2648)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async H (C:\Users\A200162672\Desktop\ars_app\node_modules\@stlite\desktop\bin\dump_artifacts.js:3:2059)
    at async C:\Users\A200162672\Desktop\ars_app\node_modules\@stlite\desktop\bin\dump_artifacts.js:17:2040 {
  type: 'ModuleNotFoundError',
  __error_address: 9780520
```PythonError: Traceback (most recent call last):
  File "/lib/python311.zip/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1209, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1181, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1145, in _find_and_load_unlocked
ModuleNotFoundError: 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 (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:12519)
    at wasm://wasm/02250ad6:wasm-function[295]:0x158827
    at wasm://wasm/02250ad6:wasm-function[296]:0x15892c
    at Module._pythonexc2js (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:640895)
    at Module.callPyObjectKwargs (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:81856)
    at Module.callPyObject (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:82066)
    at Function.apply (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:97147)
    at Object.apply (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:95381)
    at Object.pyimport (C:\Users\A200162672\Desktop\ars_app\node_modules\pyodide\pyodide.asm.js:9:119720)
    at j (C:\Users\A200162672\Desktop\ars_app\node_modules\@stlite\desktop\bin\dump_artifacts.js:3:2648)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async H (C:\Users\A200162672\Desktop\ars_app\node_modules\@stlite\desktop\bin\dump_artifacts.js:3:2059)
    at async C:\Users\A200162672\Desktop\ars_app\node_modules\@stlite\desktop\bin\dump_artifacts.js:17:2040 {
  type: 'ModuleNotFoundError',
  __error_address: 9780520
@whitphx
Copy link
Owner

whitphx commented Mar 14, 2024

Sorry for my late reply.
Let's move to #648 and keep the discussion there.

@whitphx whitphx closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants