Skip to content
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

ModuleNotFoundError: No module named 'chardet' #47

Closed
ayoyu opened this issue Dec 1, 2018 · 3 comments
Closed

ModuleNotFoundError: No module named 'chardet' #47

ayoyu opened this issue Dec 1, 2018 · 3 comments
Labels

Comments

@ayoyu
Copy link

ayoyu commented Dec 1, 2018

Hi, I'm using pdftotree on Ubuntu with python3.6. I first installed python3 toolkit, then pdftotree. So when I import pdftotree, this error appeared
ModuleNotFoundError: No module named 'chardet'
So I think I should install chardet but I want to know which version should I install to be in sync with the application. Thank you for your feedback

@ayoyu
Copy link
Author

ayoyu commented Dec 1, 2018

Hey guys, this problem is provided by pdfminer on the utils script and exactly this part:
if six.PY3:
import chardet # For str encoding detection in Py3
unicode = str
so, i installed chardet==3.0.4 and the problem is solved.

@lukehsiao
Copy link
Contributor

Thanks!

@lukehsiao
Copy link
Contributor

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

No branches or pull requests

2 participants