micropython / micropython-lib

Core Python libraries ported to MicroPython
Other
2.38k stars 992 forks source link

pypi redirects to https://pypi.org/pypi/%s/json and brakes upip #274

Closed davidkwast closed 6 years ago

davidkwast commented 6 years ago

Changing URL to "https://pypi.org/pypi/%s/json" appears to fix but I can't test now yet because I don't have the build process setup yet.

A put modified upip.py inside the flash memory but my ESP8266 board do not have enough ram to run upip.install

>>> upip.install('micropython-urequests')
Installing to: /lib/
Warning: pypi.python.org SSL certificate is not validated
Error installing 'micropython-urequests': b'302', packages may be partially installed
drosenbauer commented 6 years ago

Thank you, I thought I was going nuts. What's the process for this getting migrated into an official esp8266 build?

peterhinch commented 6 years ago

I've updated micropip which now works again, so at least there is a way to access libraries until upip is fixed.

bionaught commented 6 years ago

AWWW WEEE aren't going nuts ... thank GAWD... Off out to enjoy the spring until this error is resolved.

pfalcon commented 6 years ago

I'm personally busy with real life to look into this so far.

dpgeorge commented 6 years ago

Yes it's broken. pypi.python.org was turned off on 13th April 2018 and pypi.org is now the URL to use; see https://packaging.python.org/guides/migrating-to-pypi-org/

di commented 6 years ago

I've made a PR to fix this: https://github.com/micropython/micropython-lib/pull/275 (I'm also a PyPI contributor/maintainer/administrator if that helps lend credibility to the patch).

dpgeorge commented 6 years ago

This is now fixed in micropython-lib.