-
Notifications
You must be signed in to change notification settings - Fork 1
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
micropip.install('bw2XXX')
Errors
#30
Comments
...weird, especially since |
micropip.install('bw2XXX')
Errors
Maybe some invalid cache got cleared? Not sure how that could even be remotely possible, but any sufficiently advanced technology is indistinguishable from magic, as they say. |
Quick update, @cmutel: When I resolve the dependency tree of Dependency tree investigation: PyPI Wheel (via
|
...the tree branches like this to the forbidden packages:
|
OK, see if bw2io Edit: Yep, seems good now! |
Tested in the Pyodide 0.24.0 REPL:
bw2calc==2.0.dev14
🎉bw2io==0.9.dev21
🤨...magically worked the second time?!
bw2data==4.0.dev25
🎉To Reproduce...
``` >>> await micropip.install('bw2io==0.9.dev21') Traceback (most recent call last): File "", line 1, in File "/lib/python3.11/site-packages/micropip/_commands/install.py", line 138, in install await transaction.gather_requirements(requirements) File "/lib/python3.11/site-packages/micropip/transaction.py", line 197, in gather_requirements await asyncio.gather(*requirement_promises) File "/lib/python3.11/site-packages/micropip/transaction.py", line 204, in add_requirement return await self.add_requirement_inner(Requirement(req)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/micropip/transaction.py", line 319, in add_requirement_inner await self.add_wheel(wheel, req.extras, specifier=str(req.specifier)) File "/lib/python3.11/site-packages/micropip/transaction.py", line 357, in add_wheel await self.gather_requirements(wheel.requires(extras)) File "/lib/python3.11/site-packages/micropip/transaction.py", line 197, in gather_requirements await asyncio.gather(*requirement_promises) File "/lib/python3.11/site-packages/micropip/transaction.py", line 201, in add_requirement return await self.add_requirement_inner(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/micropip/transaction.py", line 319, in add_requirement_inner await self.add_wheel(wheel, req.extras, specifier=str(req.specifier)) File "/lib/python3.11/site-packages/micropip/transaction.py", line 357, in add_wheel await self.gather_requirements(wheel.requires(extras)) File "/lib/python3.11/site-packages/micropip/transaction.py", line 197, in gather_requirements await asyncio.gather(*requirement_promises) File "/lib/python3.11/site-packages/micropip/transaction.py", line 201, in add_requirement return await self.add_requirement_inner(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/micropip/transaction.py", line 304, in add_requirement_inner wheel = find_wheel(metadata, req) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/micropip/transaction.py", line 403, in find_wheel raise ValueError( ValueError: Can't find a pure Python 3 wheel for 'docopt'. See: https://pyodide.org/en/stable/usage/faq.html#why-can-t-micropip-find-a-pure-python-wheel-for-a-package You can use `await micropip.install(..., keep_going=True)` to get a list of all packages with missing wheels. >>> await micropip.install('bw2io==0.9.dev21', keep_going = True) Traceback (most recent call last): File "", line 1, in File "/lib/python3.11/site-packages/micropip/_commands/install.py", line 142, in install raise ValueError( ValueError: Can't find a pure Python 3 wheel for: 'docopt', 'unicodecsv', 'psutil' See: https://pyodide.org/en/stable/usage/faq.html#why-can-t-micropip-find-a-pure-python-wheel-for-a-package >>> micropip.list() Name | Version | Source --------- | ------- | ------- packaging | 23.1 | pyodide micropip | 0.4.0 | pyodide >>> await micropip.install('bw2calc==2.0.dev14', keep_going = True) >>> micropip.list() Name | Version | Source --------------- | --------- | ------- packaging | 23.1 | pyodide micropip | 0.4.0 | pyodide stats-arrays | 0.6.5 | pypi appdirs | 1.4.4 | pypi fs | 2.4.16 | pypi bw-processing | 0.8.5 | pypi matrix-utils | 0.2.5 | pypi bw2calc | 2.0.dev14 | pypi six | 1.16.0 | pyodide numpy | 1.25.2 | pyodide python-dateutil | 2.8.2 | pyodide pytz | 2023.3 | pyodide pandas | 1.5.3 | pyodide pyparsing | 3.1.1 | pyodide setuptools | 68.1.2 | pyodide scipy | 1.11.1 | pyodide distutils | 1.0.0 | pyodide openblas | 0.3.23 | pyodide >>> await micropip.install('bw2data==4.0.dev25', keep_going = True) >>> micropip.list() Name | Version | Source ----------------- | --------- | ------- packaging | 23.1 | pyodide micropip | 0.4.0 | pyodide stats-arrays | 0.6.5 | pypi appdirs | 1.4.4 | pypi fs | 2.4.16 | pypi bw-processing | 0.8.5 | pypi matrix-utils | 0.2.5 | pypi bw2calc | 2.0.dev14 | pypi six | 1.16.0 | pyodide numpy | 1.25.2 | pyodide python-dateutil | 2.8.2 | pyodide | 0.22 | pypi bw2parameters | 1.1.0 | pypi bw2data | 4.0.dev25 | pypi tqdm | 4.66.1 | pyodide wrapt | 1.15.0 | pyodide lxml | 4.9.3 | pyodide pycparser | 2.21 | pyodide typing_extensions | 4.7.1 | pyodide cffi | 1.15.1 | pyodide peewee | 3.16.3 | pyodide distutils | 1.0.0 | pyodide openblas | 0.3.23 | pyodide sqlite3 | 1.0.0 | pyodide >>> await micropip.install('bw2io==0.9.dev21', keep_going = True) >>> import bw2io >>> import bw2data >>> import bw2calc ```The text was updated successfully, but these errors were encountered: