pyodide: Strange micropip failure when loading wheel from custom URL
I’m trying to install a soon-to-be-open-sourced package with zero dependencies in JupyterLite like this, but am getting a weird TypeError: exceptions must derive from BaseException. Any idea what I can check further?
import micropip
url = ("https://example.com/foobar-py2.py3-none-any.whl")
await micropip.install(url)
Traceback (most recent call last):
File "<console>", line 6, in <module>
File "/lib/python3.8/asyncio/futures.py", line 260, in __await__
yield self # This tells Task to wait for completion.
File "/lib/python3.8/asyncio/tasks.py", line 349, in __wakeup
future.result()
File "/lib/python3.8/asyncio/futures.py", line 178, in result
raise self._exception
File "/lib/python3.8/asyncio/tasks.py", line 282, in __step
result = coro.throw(exc)
File "/lib/python3.8/site-packages/micropip.py", line 178, in install
await gather(*wheel_promises)
File "/lib/python3.8/asyncio/futures.py", line 260, in __await__
yield self # This tells Task to wait for completion.
File "/lib/python3.8/asyncio/tasks.py", line 349, in __wakeup
future.result()
File "/lib/python3.8/asyncio/futures.py", line 178, in result
raise self._exception
File "/lib/python3.8/asyncio/tasks.py", line 282, in __step
result = coro.throw(exc)
File "/lib/python3.8/site-packages/micropip.py", line 123, in _install_wheel
wheel = await _get_url(url)
File "/lib/python3.8/site-packages/micropip.py", line 33, in _get_url
resp = await fetch(url)
File "/lib/python3.8/asyncio/futures.py", line 260, in __await__
yield self # This tells Task to wait for completion.
File "/lib/python3.8/asyncio/tasks.py", line 349, in __wakeup
future.result()
File "/lib/python3.8/asyncio/futures.py", line 178, in result
raise self._exception
TypeError: exceptions must derive from BaseException
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 23 (14 by maintainers)
Thanks for your efforts! If I understand correctly you didn’t observe any issue on Chrome. I gave it a try, too, using Version 90.0.4430.212 (Official Build) (x86_64) on macOS 10.14.6 and I get his even more impressive traceback below. Can you shed some more light on this, please?