Skip to content

mip: package installation issues #692

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

Closed
dsliwski opened this issue Jun 23, 2023 · 1 comment
Closed

mip: package installation issues #692

dsliwski opened this issue Jun 23, 2023 · 1 comment

Comments

@dsliwski
Copy link

I just upgraded firmware to esp8266-1m-20230426-v1.20.0
and cannot install packages via mip:

>>> mip.install('requests')
Installing requests (latest) from https://micropython.org/pi/v2 to /lib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mip/__init__.py", line 1, in install
  File "mip/__init__.py", line 1, in _install_package
  File "mip/__init__.py", line 1, in _install_json
  File "urequests.py", line 180, in get
  File "urequests.py", line 76, in request
OSError: -2
>>> mip.install('urequests')
Installing urequests (latest) from https://micropython.org/pi/v2 to /lib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mip/__init__.py", line 1, in install
  File "mip/__init__.py", line 1, in _install_package
  File "mip/__init__.py", line 1, in _install_json
  File "urequests.py", line 180, in get
  File "urequests.py", line 76, in request
OSError: -2
>>> mip.install('micropython-urequests')
Installing micropython-urequests (latest) from https://micropython.org/pi/v2 to /lib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mip/__init__.py", line 1, in install
  File "mip/__init__.py", line 1, in _install_package
  File "mip/__init__.py", line 1, in _install_json
  File "urequests.py", line 180, in get
  File "urequests.py", line 76, in request
OSError: -2
>>> mip.install('micropython-requests')
Installing micropython-requests (latest) from https://micropython.org/pi/v2 to /lib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mip/__init__.py", line 1, in install
  File "mip/__init__.py", line 1, in _install_package
  File "mip/__init__.py", line 1, in _install_json
  File "urequests.py", line 180, in get
  File "urequests.py", line 76, in request
OSError: -2
@dsliwski
Copy link
Author

I was not connected to the network.
Connecting to the network solved the issue:

>>> sta.isconnected()
True
>>> mip.install('urequests')
Installing urequests (latest) from https://micropython.org/pi/v2 to /lib
Copying: /lib/urequests.mpy
Done

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

1 participant