Skip to main content
  1. About
  2. For Teams
Asked
Viewed 3k times
2

I am following this tutorial to set up and train the Tesseract 3 OCR tool. Some of the scripts use Pango. When I run the scripts, Python fails to import Pango.

ImportError: No module named pango 

I have tried to install the following packages, along with attempting to build Pango and Cairo from scratch as detailed here

libpango1.0-0
libpango1.0-dev
libpangox1.0-0

What am I missing? Is there a library I haven't installed/built?

1 Answer 1

3

You're missing the Python bindings. The packages listed only contain the native libraries and development files. Try completing the instructions in the linked article by installing PyGTK.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.