Tom,
Thanks for the valuable guidance. followed your instructions. but still
alice.png  did not generate. Where I made mistake.? typescript.txt is
attached for your examination and further guidance.
With Warmest regards,
-sriranga(79yrs)

On Mon, Jun 11, 2012 at 8:08 AM, Tom <[email protected]> wrote:

> Well, the reason it's not working is because you didn't follow these steps:
>
> add /usr/local/lib/ to your LD_LIBRARY_PATH variable
> add /usr/local/bin to your PATH variable
>
> How you do that depends on how you log in.  Probably something like:
>
> export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib
> export PATH="/usr/local/bin:$PATH"
>
> will work.
>
> Tom
>
>
> On Wednesday, June 6, 2012 10:25:06 AM UTC+2, 79yrsold wrote:
>>
>> Tried to install in ubuntu 12.04 -vide scripts attached. However it is
>> noticed that alice.png did not display during test. I am unable to
>> understand where I made mistake.  In fact this is 2nd attempt re- install
>> using commands in terminal viz. (1)sudo sh ./ocroinst pacakages (2) sudo sh
>> ./ocroinst install (3)sudo sh ./ocroinst dl (4) sudo ocropus
>> ocropy/tests/alice.png. Ufortunately alice.png did not displayed  similar
>> to one in video http://www.youtube.com/**playlist?list=**
>> PL8B1A3C55DD915896&feature=mh_**lolz<http://www.youtube.com/playlist?list=PL8B1A3C55DD915896&feature=mh_lolz>.
>>  Further  how to do  re: "IMPORTANT
>> You must add /usr/local/lib/ to your LD_LIBRARY_PATH variable and add
>> /usr/local/bin to your PATH variable. "  displayed during the installation.
>>
>> Where I made mistake.? Since  I am newbie to ocropus project - I seek
>> valuable guidance.
>>
>> With regards,
>> -sriranga(79yrs)
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "ocropus" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/ocropus/-/siv8P_9COEgJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/ocropus?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en.

dell1@ubuntu:~$ cd ocropus
dell1@ubuntu:~/ocropus$ ls
2installtypescript.txt  llpy                       openfst-1.1
_book-002040            ocrofst                    pyopenfst
_book-002665            ocroinst                   typescript
DIST                    ocrolseg                   typescript.txt
flann-1.7.1-src         ocropus -terminal display  Untitled Document
install typescript.txt  ocropy
iulib                   ocrorast
dell1@ubuntu:~/ocropus$ sh./ocropus ocropy/tests/alice.png
bash: sh./ocropus: No such file or directory
dell1@ubuntu:~/ocropus$ script
Script started, file is typescript
dell1@ubuntu:~/ocropus$ ocropus ocropy/tests/alice.png
book directory _book-001940
# ocropus-preproc -o _book-001940 ocropy/tests/alice.png
Traceback (most recent call last):
  File "/usr/local/bin/ocropus-preproc", line 27, in <module>
    import ocrolib
  File "/usr/local/lib/python2.7/dist-packages/ocrolib/__init__.py", line 13, 
in <module>
    from common import *
  File "/usr/local/lib/python2.7/dist-packages/ocrolib/common.py", line 11, in 
<module>
    import improc
  File "/usr/local/lib/python2.7/dist-packages/ocrolib/improc.py", line 6, in 
<module>
    import iulib
  File "/usr/local/lib/python2.7/dist-packages/iulib.py", line 30, in <module>
    _iulib = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/iulib.py", line 26, in 
swig_import_helper
    _mod = imp.load_module('_iulib', fp, pathname, description)
ImportError: libiulib.so: cannot open shared object file: No such file or 
directory
exit 1
dell1@ubuntu:~/ocropus$ export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib
dell1@ubuntu:~/ocropus$ export PATH="/usr/local/bin:$PATH"
dell1@ubuntu:~/ocropus$ 
dell1@ubuntu:~/ocropus$ ocropus ocropy/tests/alice.png
book directory _book-001997
# ocropus-preproc -o _book-001997 ocropy/tests/alice.png
=== ocropy/tests/alice.png 1 (600, 1200)
(601, 1200) (601, 1200)
# writing _book-001997/0001 (601, 1200) (601, 1200)
# ocropus-prast _book-001997
=== _book-001997/0001.png
# loading _book-001997/0001.bin.png
# segmenting
# writing 12 lines
# ocropus-lattices _book-001997
adding 11 files from _book-001997
added 0 files directly
Traceback (most recent call last):
  File "/usr/local/bin/ocropus-lattices", line 82, in <module>
    cmodel = ocrolib.load_component(ocrolib.ocropus_find_file(options.model))
  File "/usr/local/lib/python2.7/dist-packages/ocrolib/common.py", line 716, in 
load_component
    return pickle.load(stream)
EOFError
exit 1
dell1@ubuntu:~/ocropus$ 
dell1@ubuntu:~/ocropus$ 

Reply via email to