Re: Test failures

2010-05-21 Thread h...@orcatec.com
Thanks, Andi.
Here is a piece of the test output.  Maybe I'm misreading the separations
between tests.  I re-ran the tests.

Ran 1 test in 0.035s

OK
/usr/bin/python samples/LuceneInAction/CompoundVersusMultiFileIndexTest.py
Compound Time : 0:00:00.686435
Multi-file Time: 0:00:00.826449
F
==
FAIL: testTiming
(lia.indexing.CompoundVersusMultiFileIndexTest.CompoundVersusMultiFileIndexTest)
--
Traceback (most recent call last):
  File
"/home/herb/pylucene-2.9.2-1/samples/LuceneInAction/lia/indexing/CompoundVersusM
ultiFileIndexTest.py", line 61, in testTiming
    self.assert_(cTiming > mTiming)
AssertionError

--
Ran 1 test in 1.516s

FAILED (failures=1)
/usr/bin/python samples/LuceneInAction/DistanceSortingTest.py
Sorted by: 
  Los Betos @ (9,6) -> 4.12310562562
  Cafe Poca Cosa @ (5,9) -> 5.09901951359
  Nico's Taco Shop @ (3,8) -> 7.28010988928
..
--
Ran 2 tests in 0.086s

OK
/usr/bin/python samples/LuceneInAction/DocumentDeleteTest.py
..
--
Ran 6 tests in 1.068s

OK

 

 

On May 21, 2010 at 5:37 PM Andi Vajda  wrote:

>
> On Fri, 21 May 2010, Herbert Roitblat wrote:
>
> > Thanks, Andi.
> > The distance test did say that it failed.
>
> The test output you sent for the distance test doesn't seem to imply that it
> failed:
>    >> DistanceSorting Test
>    >> Sorted by:     >> org.apache.pylucene.search.pythonsortcomparatorsou...@4f9a32e0>
>    >> Los Betos @ (9,6) -> 4.12310562562
>    >> Cafe Poca @ (5,9) -> 5.09901951359
>    >> Nico's Taco Shop @ (3,8) -> 7.28010988928
>
> I could be missing something but the output looks correct, the restaurants
> are sorted in increasing distance.
>
> The final "make: *** [test] Error 123" you got just indicates that not all
> tests passed. Each individual test reports its own failure details at the
> time of running unless something else is seriously wrong just as core
> dumping.
>
> Andi..
>
> >
> > - Original Message - From: "Andi Vajda" 
> > To: 
> > Sent: Thursday, May 20, 2010 11:12 PM
> > Subject: Re: Test failures
> >
> >
> >>
> >> On May 20, 2010, at 21:21, Herbert Roitblat  wrote:
> >>
> >>> I'm trying to set up PyLucene on Ubuntu 10.04 with Python 2.6.2.  I
> >>> managed to get it to build, but the test revealed some errors.  Are  they
> >>> significant?  Do they need some adjustment to run under Python  2.6 or
> >>> Ubuntu 10.04?
> >>>
> >>> Thanks,
> >>> Herb
> >>>
> >>> CompoundTime : 0:00:00.763478
> >>> Multi-file Time : 0:00:00.818167
> >>> FAIL testTiming
> >>> (lia.indexing.CompoundVersusMultiFileIndexTest.CompoundVersusMultiFileInde
> >>> xTest
> >>
> >>
> >>> self.assert_(cTiming > mTiming)
> >>> Assertion Error
> >>
> >> That test is known to fail at times since it is expected for the multi file
> >> test to win, yet the timings are so close that any disturbance on the
> >> machine can slow the test down and skew the timing. The failure is
> >> ignorable. Running the test again usually passes it too.
> >>
> >>> DistanceSorting Test
> >>> Sorted by:  >>> org.apache.pylucene.search.pythonsortcomparatorsou...@4f9a32e0>
> >>> Los Betos @ (9,6) -> 4.12310562562
> >>> Cafe Poca @ (5,9) -> 5.09901951359
> >>> Nico's Taco Shop @ (3,8) -> 7.28010988928
> >>
> >> This test didn't fail, did it ?
> >>
> >> Andi..
> >>
> >>> make: *** [test] Error 123
> >>>
> >>
> >

pylucene in a virtual environment

2010-05-21 Thread h...@orcatec.com
I set up pylucene and installed it in the standard fashion.  That seems to have
worked.  Now I am building a virtual environment to do some development in.
I ran make from the virtualenv and it worked, but when I try to make install, it
tries to put it in /usr/local/lib/python2.6/dist-packages/
 
I saw a suggestion from Andi about using --home, but I'm not sure where to put
it.  Is that what needs to be done?  Do I have to build jcc from the virtualenv
as well?  In other words, where do I start when putting things in my
virtualenv?  Can I copy from dist-packages?
 
Thanks,
Herb

Re: pylucene in a virtual environment

2010-05-21 Thread h...@orcatec.com
Thanks, Andi.
Apparently installing this stuff in the virtual environment is a bit more
difficult than installing regular packages.
 
It looks like I am trying to install JCC.egg-info/PKG-INFO in the wrong place. 
How do I tell it the right place?  I'm on Ubuntu 10.04, by the way.
Thanks,
Herb

 
 
(venv)h...@ubuntu2:~/pylucene-2.9.2-1/jcc$ python setup.py build
running build
running build_py
copying jcc/config.py -> build/lib.linux-x86_64-2.6/jcc
running build_ext
(venv)h...@ubuntu2:~/pylucene-2.9.2-1/jcc$ python setup.py install
running install
running bdist_egg
running egg_info
writing JCC.egg-info/PKG-INFO
error: JCC.egg-info/PKG-INFO: Permission denied

 
 
 
 
 




 

On May 21, 2010 at 6:37 PM Andi Vajda  wrote:

>
> On May 21, 2010, at 11:14, "h...@orcatec.com"  wrote:
>
> > I set up pylucene and installed it in the standard fashion.  That 
> > seems to have
> > worked.  Now I am building a virtual environment to do some 
> > development in.
> > I ran make from the virtualenv and it worked, but when I try to make 
> > install, it
> > tries to put it in /usr/local/lib/python2.6/dist-packages/
> >
> > I saw a suggestion from Andi about using --home, but I'm not sure 
> > where to put
> > it.  Is that what needs to be done?  Do I have to build jcc from the 
> > virtualenv
> > as well?  In other words, where do I start when putting things in my
> > virtualenv?  Can I copy from dist-packages?
>
> I use virtualenv a lot as I have to have a bunch of branches/configs 
> available on the same machine.
>
> I always use the python executable that's installed in the virtualenv.
> You need to make sure that's also the case in the PyLucene Makefile by 
> editing the section corresponding to your platform to make it so 
> (PREFIX_PYTHON).
>
> I also always build jcc into the virtualenv first although that 
> shouldn't strictly be necessary since virtualenv normally inherits 
> modules from its origin.
>
> Andi..
>
> >
> > Thanks,
> > Herb