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.

cant use opencv-python?

See original GitHub issue
<py-env> - opencv-python </py-env>

gives error in console, stating cant get pure python wheel:

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 ‘opencv-python’. You can use micropip.install(..., keep_going=True) to get a list of all packages with missing wheels.

Issue Analytics

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

github_iconTop GitHub Comments

7reactions
rthcommented, May 3, 2022

It will be supported as soon as the next Pyodide version is released (and pyscript updates to using it) see https://github.com/pyodide/pyodide/discussions/2424 for more details.

2reactions
marimeirelescommented, Jun 20, 2022

@MeloHenrique I think in this case you’ll want to change the version of Pyodide that PyScript is using, right? This might help: https://github.com/pyscript/pyscript/pull/328 I don’t think we’ll default the Pyodide version to be the most recent release. I think we’ll keep having the stable one as default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I have OpenCV installed but I can't import and print cv2 version
I have already installed OpenCV and it's located in users\danie\appdata\local\program\python\python39\lib\site-packages and this is the ...
Read more >
ModuleNotFoundError: No module named 'cv2' in Python
The Python "ModuleNotFoundError: No module named 'cv2'" occurs when we forget to install the opencv-python module before importing it or install ...
Read more >
opencv-python - PyPI
A: The repository contains only OpenCV-Python package build scripts, but not OpenCV itself. Python bindings for OpenCV are developed in official OpenCV ......
Read more >
How to install opencv in Python 3.10 - YouTube
In this video, I will show you how to install OpenCV in python 3.10 on windows 10 and windows 11.In this video, we...
Read more >
Install OpenCV-Python in Windows
Installing OpenCV from prebuilt binaries · Below Python packages are to be downloaded and installed to their default locations. · Install all packages...
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