Uploaded image for project: 'Decapod'
  1. Decapod
  2. DECA-164

genpdfEXP can not locate libocropus.so

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.4
    • Component/s: genpdf
    • Labels:
      None
    • Environment:
      latest version in default repository.
      Ubuntu 10.04 32bit

      Description

      The decapod-genpdfEXP.py script can not find the libocropus.so object despite it being located properly in the shared library directory.

      [Info]: running ocropus pipeline
      Traceback (most recent call last):
      File "/usr/local/bin/ocropus-binarize", line 8, in <module>
      import sys,os,re,ocropy,optparse
      File "/usr/local/lib/python2.6/dist-packages/ocropy/_init_.py", line 2, in <module>
      from ocropus import *
      File "/usr/local/lib/python2.6/dist-packages/ocropus.py", line 25, in <module>
      _ocropus = swig_import_helper()
      File "/usr/local/lib/python2.6/dist-packages/ocropus.py", line 21, in swig_import_helper
      _mod = imp.load_module('_ocropus', fp, pathname, description)
      ImportError: libocropus.so: cannot open shared object file: No such file or directory
      [Error] generating book structure did not work as expected! (['ocropus-binarize', '-o', '1-1-1-t2/', '1-1-1.png'])

      To reproduce this error:
      1. Install scipy, numpy, matplotlib, scons, mercurial
      2. Clone the decapod repository: hg clone https://code.google.com/p/decapod/
      3. Run sudo ./decapod/install-scripts/decapod-all.sh
      4. Download the sample image (http://source.fluidproject.org/svn/design/decapod/testing-images/1-1-1.png) into the ./decapod/decapod-genpdf/src directory.
      5. Run: ./decapod/decapod-genpdf/src/decapod-genpdfEXP.py -t 2 -d test -p test.pdf -v 3 1-1-1.png

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jhung Jonathan Hung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: