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.

No module named 'cv2' when importing camelot

See original GitHub issue

I installed camelot via pip and then went to import it and the import failed, giving the error ModuleNotfoundError: No module named 'cv2'

I am on windows 10, python 3.10.2.

I was able to do a pip install opencv-python and once that completed, import of camelot worked fine. So I imagine that just opencv-python isn’t properly identified as a dependency when install camelot via pip.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:8
  • Comments:8

github_iconTop GitHub Comments

1reaction
LuizMosciarocommented, Jun 22, 2022

I’ve encountered the same issue. However, even after installing ‘opencv-python’… the ModuleNotFoundError persists.

You have to downgrade to opencv-python==4.5.5.64. Try also to make a new clean virtual environment If it helps you follow the reading and comments from the issue i opened here

1reaction
jhalmucommented, May 17, 2022

Same issue. Installed opencv-python, but now want’s ghostsctipt :

File "/Users/xxxx/Documents/Projektit/PdfExtractEnergy/energy/lib/python3.8/site-packages/camelot/backends/ghostscript_backend.py", line 31, in convert
    raise OSError(

OSError: Ghostscript is not installed.

I have installed those wit brew in macbook m1

EDIT

  • Tryed python 3.9 and now works. Have to do new clean virtal enviroment to test.
Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'cv2' - python - Stack Overflow
I ran conda install -c conda-forge opencv once and it did not work. Then I did various things, and ran this command again,...
Read more >
ModuleNotFoundError: No module named 'cv2' in Python
You will get this error when cv2 module is not properly installed on your machine. Resolution for No module named 'cv2'. Let's see...
Read more >
ModuleNotFoundError No module named cv2 - Edureka
This error may occur if you didn't install opencv module in your system. So first check this module is available or not. $...
Read more >
Fix ModuleNotFoundError (No Module Named CV2 ... - YouTube
python #error #fix #fixed #howto Hey guys in this tutorial let's try to fix ModuleNotFoundError No module named CV2 error in cases where...
Read more >
Camelot Documentation - Read the Docs
Python Module Index ... Since a PDF is just characters on a plane, there is no table data ... Begin by importing the...
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