Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

ModuleNotFoundError after fresh install #210

Closed
vinayak-mehta opened this issue Dec 1, 2018 · 1 comment
Closed

ModuleNotFoundError after fresh install #210

vinayak-mehta opened this issue Dec 1, 2018 · 1 comment
Labels
Milestone

Comments

@vinayak-mehta
Copy link
Contributor

vinayak-mehta commented Dec 1, 2018

chardet (a dependency for pdfminer.six) isn't installed in Python>3 when installing Camelot using pip install camelot-py[cv], which seems a bit strange since the build was successful on master 5 days ago. Will trigger a new build to check. The issue was first seen here.

Thinking of creating a release with chardet in the requirements, as a short-term fix.

This is the traceback with $ camelot --help or >>> import camelot.

$ camelot --help
Traceback (most recent call last):
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/bin/camelot", line 7, in 
    from camelot.cli import cli
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/camelot/__init__.py", line 8, in 
    from .io import read_pdf
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/camelot/io.py", line 4, in 
    from .handlers import PDFHandler
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/camelot/handlers.py", line 9, in 
    from .parsers import Stream, Lattice
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/camelot/parsers/__init__.py", line 3, in 
    from .stream import Stream
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/camelot/parsers/stream.py", line 11, in 
    from .base import BaseParser
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/camelot/parsers/base.py", line 5, in 
    from ..utils import get_page_layout, get_text_objects
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/camelot/utils.py", line 10, in 
    from pdfminer.pdfparser import PDFParser
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/pdfminer/pdfparser.py", line 4, in 
    from .psparser import PSStackParser
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/pdfminer/psparser.py", line 11, in 
    from .utils import choplist
  File "/home/vinayak/.local/share/virtualenvs/camelot-test-3.6/lib/python3.6/site-packages/pdfminer/utils.py", line 13, in 
    import chardet  # For str encoding detection in Py3
ModuleNotFoundError: No module named 'chardet'
@vinayak-mehta
Copy link
Contributor Author

More details can be found in pdfminer#213.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant