I have been attempting to install packages from PyPI using upip, but I am encountering the following error:
$ ./micropython -m upip install <package>
Installing to: /home/domdf/.micropython/lib/
Warning: micropython.org SSL certificate is not validated
Error installing '<package>': , packages may be partially installed
I have tracked it back to an assertion on line 201:
|
def install_pkg(pkg_spec, install_path): |
|
data = get_pkg_metadata(pkg_spec) |
|
|
|
latest_ver = data["info"]["version"] |
|
packages = data["releases"][latest_ver] |
|
del data |
|
gc.collect() |
|
assert len(packages) == 1 |
|
package_url = packages[0]["url"] |
However, if the project has multiple files (quite common, e.g. sdist and wheel) the assertion is false, as data["releases"][latest_ver] contains an entry for each file and therefore the length exceeds 1.
I have been attempting to install packages from PyPI using
upip, but I am encountering the following error:I have tracked it back to an assertion on line 201:
micropython/tools/upip.py
Lines 194 to 202 in 0e11966
However, if the project has multiple files (quite common, e.g. sdist and wheel) the assertion is false, as
data["releases"][latest_ver]contains an entry for each file and therefore the length exceeds 1.