question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: Couldn't find a pure Python 3 wheel for 'browser_cookie3'

See original GitHub issue

I am trying to use browser_cookie3 with pyscript but looks like pyscript pip installer is unable to find a wheel file to download. Is there any workaround for issues similar to this one?

Here is the complete error message copied from console:

Uncaught (in promise) PythonError: Traceback (most recent call last):
  File "/lib/python3.10/asyncio/futures.py", line 201, in result
    raise self._exception
  File "/lib/python3.10/asyncio/tasks.py", line 234, in __step
    result = coro.throw(exc)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 183, in install
    transaction = await self.gather_requirements(requirements, ctx, keep_going)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 173, in gather_requirements
    await gather(*requirement_promises)
  File "/lib/python3.10/asyncio/futures.py", line 284, in __await__
    yield self  # This tells Task to wait for completion.
  File "/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup
    future.result()
  File "/lib/python3.10/asyncio/futures.py", line 201, in result
    raise self._exception
  File "/lib/python3.10/asyncio/tasks.py", line 232, in __step
    result = coro.send(None)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 286, in add_requirement
    raise ValueError(
ValueError: Couldn't find a pure Python 3 wheel for 'browser_cookie3'. You can use `micropip.install(..., keep_going=True)` to get a list of all packages with missing wheels.
    PythonError error_handling.gen.ts:309
    new_error pyodide.asm.js:14
    method_call_trampoline pyodide.asm.js:14
    callPyObjectKwargs pyproxy.gen.ts:360
    callPyObject pyproxy.gen.ts:384
    wrapper pyodide.asm.js:14
    setTimeout handler*hiwire_call_bound pyodide.asm.js:14
    callPyObjectKwargs pyproxy.gen.ts:360
    callPyObject pyproxy.gen.ts:384
    wrapper pyodide.asm.js:14
    setTimeout handler*hiwire_call_bound pyodide.asm.js:14

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rthcommented, May 18, 2022

Also see https://pyodide.org/en/latest/usage/faq.html#micropip-can-t-find-a-pure-python-wheel about what to do when a package cannot be installed with micropip which is currently used by pyscript to install packages.

0reactions
marimeirelescommented, May 17, 2022

The update on this is we’re currently not going to pursue the individual fix of all the packages that are currently failing… But the requests package is on our priority list. In the meanwhile you can have a look on this example: https://github.com/pyscript/pyscript/pull/151, that offers a work around for requests 😃 feel free to open a thread in https://discuss.python.org/ if any doubts come up!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Couldn't find a pure Python 3 wheel for 'tensorflow'. You can ...
PyScript can't run anything that has a C component to be compiled. That's why the error refers to a "pure Python" wheel.
Read more >
PyScript: Can't find a pure Python 3 wheel for 'orm==0.2.0.dev1'
I have a bokeh app that I am trying to convert into a standalone webassembly app via: panel convert demo.py --to pyodide-worker which ......
Read more >
PYTHON WHEEL PROBLEM · Discussion #2461 - GitHub
It is not possible to install non-pure Python wheel with micropip.install() . In your code, this line is causing the problem. await micropip.install("https:// ......
Read more >
Issue with micropip installing packages - Starboard
install("seaborn") and I got the error ValueError: Couldn't find a pure Python 3 wheel for 'scipy>=1.0' . Any idea how to work around...
Read more >
Technical Topics - Anaconda Community
File “/lib/python3.10/site-packages/micropip/_micropip.py”, line 286, ... ValueError: Couldn't find a pure Python 3 wheel for 'vtk>=9.1.0'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found