genpdfEXP can not locate libocropus.so

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

Environment

latest version in default repository. Ubuntu 10.04 32bit

Activity

Show:

Justin Obara May 25, 2012 at 5:48 PM

This should have been resolved for Decapod 0.4

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created September 15, 2011 at 7:01 PM
Updated May 25, 2012 at 5:48 PM
Resolved May 25, 2012 at 5:48 PM