Strange micropip failure when loading wheel from custom URL
See original GitHub issueI’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
Issue Analytics
- State:
- Created 2 years ago
- Comments:23 (14 by maintainers)
Top Results From Across the Web
What is the meaning of "Failed building wheel for X" in pip ...
Thus, when installing packages created using these tutorials, I've received the "Failed to build wheel" error. I later found the link on PyPi...
Read more >Pyodide - Read the Docs
There is no dependency resolution when loading packages from custom URLs. If you want dependency resolution for custom. URLs, use micropip.
Read more >Issue with micropip installing packages - Starboard
I am looking to install seaborn and ran import micropip then micropip.install("seaborn") and I got the error ValueError: Couldn't find a ...
Read more >Change Log — Version 0.21.3 - Pyodide
Fix loadPyodide will now raise error when the version of JavaScript and Python ... Enhancement micropip supports loading wheels from the Emscripten file ......
Read more >Datasette Lite: a server-side Python web application running ...
You can instead use the “Load database by URL to a SQLite DB” ... run your own custom SQL results and export the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
My Firefox Developer Edition doesn’t…