Skip to content

micropip.install(..., deps=False) leads to runtime error #221

Description

@m-albert

First of all thanks for this amazing project!

I wanted to quickly leave this report here. In a fresh https://jupyter.org/try-jupyter/lab/index.html, the following

import micropip
await micropip.install('dask-image', deps=False)

leads to

File /lib/python3.12/site-packages/micropip/wheelinfo.py:126, in WheelInfo.install(self, target)
    115 """
    116 Install the wheel to the target directory.
    117 
   (...)
    123     4. The wheel's metadata is set.
    124 """
    125 if not self._data:
--> 126     raise RuntimeError(
    127         "Micropip internal error: attempted to install wheel before downloading it?"
    128     )
    129 _validate_sha256_checksum(self._data, self.sha256)
    130 self._extract(target)

RuntimeError: Micropip internal error: attempted to install wheel before downloading it?

Same happens when trying to install other packages. Some months ago this was still working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions