[liblouis-liblouisxml] Re: Running test harness

  • From: Ken Perry <kperry@xxxxxxx>
  • To: "liblouis-liblouisxml@xxxxxxxxxxxxx" <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Wed, 10 Sep 2014 00:18:36 +0000

You missed what I said.  I removed all my usr/local.  Then I did what you said 
because when I first did what you said and then did which lou_transalte it 
still showed the usr/local ones.  Then after cleaning out my usr/local of all 
liblouis I ran the steps you gave me again.  It put the stuff in /usr like your 
prefix says it will.  The problem is it can't find the en-ueb-g1.ctb table in 
the harness script I  just kept getting errors of missing stuff in that table.  
So what I am saying is the only way I can make my lou_ stuff work is to not put 
the prefix but then the runHarness doesn't work. It should work rather I have 
it in local or usr.  As it stands right now it does neither.

I am afraid that those of you who are using the test harness already have 
several versions of liblouis hanging around and are not seeing my problem 
because of it.

Ken
Ken  

Ken

-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx 
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Mesar Hameed
Sent: Tuesday, September 9, 2014 1:13 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: Running test harness

if it is going into the /usr/local then you are not following the steps, 
because the --prefix=/usr would have put things directly in the right place.

We do have a bug/rfe for liblouis not to pick up tables from locations other 
than the once specified in the config/command line, but thats a different 
issue, and unrelated to what you are experiencing.

Mesar
On Tue 09/09/14,17:02, Ken Perry wrote:
> Intersting when I remove all the liblouis from /usr/local and then do 
> the steps you define hear I get an error that seems to say that it 
> can't find en-ueb-g1.ctb.  If I just do
> 
> .autogen.sh
> ./configure
> Make
> Sudo make install
> 
> It goes into /usr/local and can find the tables but the runHarness doesn't 
> work.
> 
> All this stuff is a mess.
> 
> Ken
> 
> -----Original Message-----
> From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx 
> [mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Mesar 
> Hameed
> Sent: Sunday, September 7, 2014 10:57 AM
> To: liblouis-liblouisxml@xxxxxxxxxxxxx
> Subject: [liblouis-liblouisxml] Re: Running test harness
> 
> Hi Ken,
> 
> You might have installed liblouis, but not the liblouis python bindings, or 
> you are running the runHarness script that is bundled with your old package.
> 
> These are the exact steps you need to follow.
> 
> cd to liblouis source
> ./autogen.sh --enable-ucs4 --prefix=/usr ./configure --enable-ucs4 
> --prefix=/usr make sudo make install cd python sudo python setup.py install 
> sudo python3 setup.py install cd .. # to get out of the python directory.
> cd tests/harness
> ./runHarness.py  en-ueb-g2-dictionary_harness.txt
> 
> Hope that helps.
> Mesar
> On Sun 07/09/14,14:19, Ken Perry wrote:
> > Is there some kind of path I need to set when doing runHarness.py?  I use 
> > the master branch source so I am using 2.6.  I have tried this on up-todate 
> > Ubuntu 12.10 and up-todate 14.04 and get the same results.    I did 
> > easy_install nose and I did python setup.py liblouis install. . My python 
> > is 2.7.3 and if anyone wants the whole 52 mb out put of the harness test I 
> > can put it in my drop box but the last line of it is as follows and I will 
> > even follow that with the first 100 lines of errors:
> > 
> > Ran 99299 tests (0.0% success), with 4684 failures and 94614 errors. 
> > 
> > Errors:
> > 
> > --- Error: ---
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
> >     testMethod()
> >   File 
> > "/usr/local/lib/python2.7/dist-packages/nose-1.3.4-py2.7.egg/nose/case.py", 
> > line 197, in runTest
> >     self.test(*self.arg)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 149, in check_translate
> >     tBrlCurPosStr = showCurPos(len(tBrl), tBrlCurPos)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 109, in showCurPos
> >     display[pos1] = marker1
> > IndexError: list assignment index out of range
> > 
> > --- end ---
> > 
> > --- Error: ---
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
> >     testMethod()
> >   File 
> > "/usr/local/lib/python2.7/dist-packages/nose-1.3.4-py2.7.egg/nose/case.py", 
> > line 197, in runTest
> >     self.test(*self.arg)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 149, in check_translate
> >     tBrlCurPosStr = showCurPos(len(tBrl), tBrlCurPos)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 109, in showCurPos
> >     display[pos1] = marker1
> > IndexError: list assignment index out of range
> > 
> > --- end ---
> > 
> > --- Error: ---
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
> >     testMethod()
> >   File 
> > "/usr/local/lib/python2.7/dist-packages/nose-1.3.4-py2.7.egg/nose/case.py", 
> > line 197, in runTest
> >     self.test(*self.arg)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 149, in check_translate
> >     tBrlCurPosStr = showCurPos(len(tBrl), tBrlCurPos)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 109, in showCurPos
> >     display[pos1] = marker1
> > IndexError: list assignment index out of range
> > 
> > --- end ---
> > 
> > --- Error: ---
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
> >     testMethod()
> >   File 
> > "/usr/local/lib/python2.7/dist-packages/nose-1.3.4-py2.7.egg/nose/case.py", 
> > line 197, in runTest
> >     self.test(*self.arg)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 149, in check_translate
> >     tBrlCurPosStr = showCurPos(len(tBrl), tBrlCurPos)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 109, in showCurPos
> >     display[pos1] = marker1
> > IndexError: list assignment index out of range
> > 
> > --- end ---
> > 
> > --- Error: ---
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
> >     testMethod()
> >   File 
> > "/usr/local/lib/python2.7/dist-packages/nose-1.3.4-py2.7.egg/nose/case.py", 
> > line 197, in runTest
> >     self.test(*self.arg)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 149, in check_translate
> >     tBrlCurPosStr = showCurPos(len(tBrl), tBrlCurPos)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 109, in showCurPos
> >     display[pos1] = marker1
> > IndexError: list assignment index out of range
> > 
> > --- end ---
> > 
> > --- Error: ---
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
> >     testMethod()
> >   File 
> > "/usr/local/lib/python2.7/dist-packages/nose-1.3.4-py2.7.egg/nose/case.py", 
> > line 197, in runTest
> >     self.test(*self.arg)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 149, in check_translate
> >     tBrlCurPosStr = showCurPos(len(tBrl), tBrlCurPos)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 109, in showCurPos
> >     display[pos1] = marker1
> > IndexError: list assignment index out of range
> > 
> > --- end ---
> > 
> > --- Error: ---
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
> >     testMethod()
> >   File 
> > "/usr/local/lib/python2.7/dist-packages/nose-1.3.4-py2.7.egg/nose/case.py", 
> > line 197, in runTest
> >     self.test(*self.arg)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 149, in check_translate
> >     tBrlCurPosStr = showCurPos(len(tBrl), tBrlCurPos)
> >   File "/home/kperry/projects/liblouis/tests/harness/runHarness.py", line 
> > 109, in showCurPos
> >     display[pos1] = marker1
> > IndexError: list assignment index out of range
> > 
> > --- end ---
> > 
> > --- Error: ---
> > Traceback (most recent call last):
> > 
> > 
> > I get 49000+ failures and
> > 
> > -----Original Message-----
> > From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
> > [mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of 
> > Hammer Attila
> > Sent: Sunday, September 7, 2014 2:25 AM
> > To: liblouis-liblouisxml@xxxxxxxxxxxxx
> > Subject: [liblouis-liblouisxml] Re: Running test harness
> > 
> > Hi Ken,
> > 
> > My Ubuntu 14.04 awailable both Python 2.7.7 and Python 3.4.0 versions.
> > Me installed the python-louis, python3-louis, python-nose and python3-nose 
> > packages too to have possibility testing Python specific modules both 
> > Python2.7 and Python 3.4.
> > The 14.04 repo awailable Liblouis version is following: 2.5.3-2ubuntu1 
> > Because this version is little old, you need compiling from source with 
> > Liblouis to have possibility using the latest 2.6.0 version.
> > 
> > Attila
> > For a description of the software, to download it and links to 
> > project pages go to http://www.abilitiessoft.com For a description 
> > of the software, to download it and links to project pages go to 
> > http://www.abilitiessoft.com
> For a description of the software, to download it and links to project 
> pages go to http://www.abilitiessoft.com
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: