> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Andi Vajda
> Sent: Wednesday, March 28, 2007 7:10 PM
>
> On Wed, 28 Mar 2007, Ofer Nave wrote:
> >> Also, what is your OS ? did you build PyLucene yourself ? If so,
> >> which gcj ?
> >> Does 'make test' pass ? What is your version of Python ?
> >
> > Linux 2.6.9
> > Python 2.3.4
> > Lucene/PyLucene versions including in sample output below.
> >
> > I believe the admin compiled PyLucene from source. The box has gcj
> > version
> > 3.4.5 20051201.
>
> Let me ask again: does 'make test' pass after building
> PyLucene from sources ?
Sorry, forgot that piece.
I've unpacked a fresh source dist (2.1.0-1), and copied what I think is the
Makefile the admin used. Diff to the stock Makefile:
---
43c43
< PYTHON_VER=2.4
---
> PYTHON_VER=2.3
133,139c133,139
< #PREFIX=/usr/local
< #PREFIX_PYTHON=$(PREFIX)
< #LIBDIR_NAME=lib
< #GCJ_HOME=/usr/local/gcc-3.4.4
< #GCJ_LIBDIR=$(GCJ_HOME)/$(LIBDIR_NAME)
< #GCJ_STATIC=1
< #LIB_INSTALL=libstdc++.so.6 libgcc_s.so.1
---
> PREFIX=/usr
> PREFIX_PYTHON=/usr
> LIBDIR_NAME=lib
> GCJ_HOME=/usr
> GCJ_LIBDIR=$(GCJ_HOME)/$(LIBDIR_NAME)
> GCJ_STATIC=0
> LIB_INSTALL=libgcj.so.6 libstdc++.so.6 libgcc_s.so.1
143c143
< #PYTHON=$(PREFIX_PYTHON)/bin/python
---
> PYTHON=/usr/bin/python
---
Running make worked fine. Running make test worked for a while, then ended in
error. Full output:
---
[EMAIL PROTECTED] PyLucene-src-2.1.0-1]# make test
cd samples/LuceneInAction; /usr/bin/python index.py
A Modern Art of Education
Rudolf Steiner
education philosophy psychology practice Waldorf
/education/pedagogy
---------
Tao Te Ching 道德經
Stephen Mitchell
taoism
/philosophy/eastern
---------
Imperial Secrets of Health and Longevity
Bob Flaws
diet chinese medicine qi gong health herbs
/health/alternative/chinese
---------
Gödel, Escher, Bach: an Eternal Golden Braid
Douglas Hofstadter
artificial intelligence number theory mathematics music
/technology/computers/ai
---------
Lucene in Action
Otis Gospodnetic,Erik Hatcher
lucene search
/technology/computers/programming
---------
Tapestry in Action
Howard Lewis-Ship
tapestry web user interface components
/technology/computers/programming
---------
Java Development with Ant
Erik Hatcher,Steve Loughran
apache jakarta ant build tool junit java development
/technology/computers/programming
---------
The Pragmatic Programmer
Dave Thomas,Andy Hunt
pragmatic agile methodology developer tools
/technology/computers/programming
---------
JUnit in Action
Vincent Massol,Ted Husted
junit unit testing mock objects
/technology/computers/programming
---------
Extreme Programming Explained
Kent Beck
extreme programming agile test driven development methodology
/technology/computers/programming/methodology
---------
Mindstorms
Seymour Papert
children computers powerful ideas LOGO education
/technology/computers/programming/education
---------
indexes/
indexes/distributed/
indexes/distributed/a/
indexes/distributed/a/_2ht.cfs
indexes/distributed/a/deletable
indexes/distributed/a/segments
indexes/distributed/b/
indexes/distributed/b/_1yx.cfs
indexes/distributed/b/deletable
indexes/distributed/b/segments
indexes/distributed/c/
indexes/distributed/c/_3co.cfs
indexes/distributed/c/deletable
indexes/distributed/c/segments
indexes/distributed/d/
indexes/distributed/d/_22q.cfs
indexes/distributed/d/deletable
indexes/distributed/d/segments
indexes/distributed/e/
indexes/distributed/e/_1er.cfs
indexes/distributed/e/deletable
indexes/distributed/e/segments
indexes/distributed/f/
indexes/distributed/f/_1ev.cfs
indexes/distributed/f/deletable
indexes/distributed/f/segments
indexes/distributed/g/
indexes/distributed/g/_120.cfs
indexes/distributed/g/deletable
indexes/distributed/g/segments
indexes/distributed/h/
indexes/distributed/h/_18n.cfs
indexes/distributed/h/deletable
indexes/distributed/h/segments
indexes/distributed/i/
indexes/distributed/i/_1hb.cfs
indexes/distributed/i/deletable
indexes/distributed/i/segments
indexes/distributed/j/
indexes/distributed/j/_b8.cfs
indexes/distributed/j/deletable
indexes/distributed/j/segments
indexes/distributed/k/
indexes/distributed/k/_bo.cfs
indexes/distributed/k/deletable
indexes/distributed/k/segments
indexes/distributed/l/
indexes/distributed/l/_12u.cfs
indexes/distributed/l/deletable
indexes/distributed/l/segments
indexes/distributed/m/
indexes/distributed/m/_1r3.cfs
indexes/distributed/m/deletable
indexes/distributed/m/segments
indexes/distributed/n/
indexes/distributed/n/_sh.cfs
indexes/distributed/n/deletable
indexes/distributed/n/segments
indexes/distributed/o/
indexes/distributed/o/_rk.cfs
indexes/distributed/o/deletable
indexes/distributed/o/segments
indexes/distributed/p/
indexes/distributed/p/_2ou.cfs
indexes/distributed/p/deletable
indexes/distributed/p/segments
indexes/distributed/q/
indexes/distributed/q/_4x.cfs
indexes/distributed/q/deletable
indexes/distributed/q/segments
indexes/distributed/r/
indexes/distributed/r/_1jm.cfs
indexes/distributed/r/deletable
indexes/distributed/r/segments
indexes/distributed/s/
indexes/distributed/s/_3oi.cfs
indexes/distributed/s/deletable
indexes/distributed/s/segments
indexes/distributed/t/
indexes/distributed/t/_1nk.cfs
indexes/distributed/t/deletable
indexes/distributed/t/segments
indexes/distributed/u/
indexes/distributed/u/_1be.cfs
indexes/distributed/u/deletable
indexes/distributed/u/segments
indexes/distributed/v/
indexes/distributed/v/_k8.cfs
indexes/distributed/v/deletable
indexes/distributed/v/segments
indexes/distributed/w/
indexes/distributed/w/_qs.cfs
indexes/distributed/w/deletable
indexes/distributed/w/segments
indexes/distributed/x/
indexes/distributed/x/_12.cfs
indexes/distributed/x/deletable
indexes/distributed/x/segments
indexes/distributed/y/
indexes/distributed/y/_3m.cfs
indexes/distributed/y/deletable
indexes/distributed/y/segments
indexes/distributed/z/
indexes/distributed/z/_2p.cfs
indexes/distributed/z/deletable
indexes/distributed/z/segments
indexes/t9/
indexes/t9/_y1u.cfs
indexes/t9/deletable
indexes/t9/segments
indexes/wordnet/
indexes/wordnet/_y1v.cfs
indexes/wordnet/deletable
indexes/wordnet/segments
find test -name 'test_*.py' | xargs -n 1 /usr/bin/python
Searching for: wicked
A <b>wicked</b> problem... of the problem. <b>Wicked</b>
.Searching for: wicked
A <B>wicked</B> problem is one for which each... the understanding of
the problem. <B>Wicked</B>
.
----------------------------------------------------------------------
Ran 2 tests in 0.020s
OK
.....
----------------------------------------------------------------------
Ran 5 tests in 0.018s
OK
...
----------------------------------------------------------------------
Ran 3 tests in 0.662s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.007s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.005s
OK
.....
----------------------------------------------------------------------
Ran 5 tests in 0.011s
OK
........
----------------------------------------------------------------------
Ran 8 tests in 0.023s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
.Testing Indexing Incremental Looping
indexing 0
indexing 1
indexing 2
indexing 3
indexing 4
indexing 5
indexing 6
indexing 7
indexing 8
indexing 9
indexing 10
indexing 11
indexing 12
indexing 13
indexing 14
indexing 15
indexing 16
indexing 17
indexing 18
indexing 19
indexing 20
indexing 21
indexing 22
indexing 23
indexing 24
indexing 25
indexing 26
indexing 27
indexing 28
indexing 29
indexing 30
indexing 31
indexing 32
indexing 33
indexing 34
indexing 35
indexing 36
indexing 37
indexing 38
indexing 39
indexing 40
indexing 41
indexing 42
indexing 43
indexing 44
indexing 45
indexing 46
indexing 47
indexing 48
indexing 49
indexing 50
indexing 51
indexing 52
indexing 53
indexing 54
indexing 55
indexing 56
indexing 57
indexing 58
indexing 59
indexing 60
indexing 61
indexing 62
indexing 63
indexing 64
indexing 65
indexing 66
indexing 67
indexing 68
indexing 69
indexing 70
indexing 71
indexing 72
indexing 73
indexing 74
indexing 75
indexing 76
indexing 77
indexing 78
indexing 79
indexing 80
indexing 81
indexing 82
indexing 83
indexing 84
indexing 85
indexing 86
indexing 87
indexing 88
indexing 89
indexing 90
indexing 91
indexing 92
indexing 93
indexing 94
indexing 95
indexing 96
indexing 97
indexing 98
indexing 99
.........
----------------------------------------------------------------------
Ran 10 tests in 0.541s
OK
............
----------------------------------------------------------------------
Ran 12 tests in 0.249s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
...
----------------------------------------------------------------------
Ran 3 tests in 0.001s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 1.586s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.011s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.000s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.003s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
..................
----------------------------------------------------------------------
Ran 18 tests in 0.095s
OK
ls samples/LuceneInAction/*Test.py | xargs -n 1 /usr/bin/python
..term -> *
field:[term TO null]
* -> term
field:[ TO term]
..
----------------------------------------------------------------------
Ran 4 tests in 0.681s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.002s
OK
...
----------------------------------------------------------------------
Ran 3 tests in 0.006s
OK
.or = category:/technology/computers/programming/methodology
category:/philosophy/eastern
.
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
Category /technology/computers/programming
pragmatic = 1
testing = 1
ant = 1
interface = 1
unit = 1
tools = 1
tapestry = 1
developer = 1
web = 1
java = 1
agile = 1
methodology = 1
build = 1
junit = 2
mock = 1
development = 1
tool = 1
objects = 1
user = 1
apache = 1
search = 1
jakarta = 1
lucene = 1
components = 1
Category /technology/computers/programming/education
computers = 1
powerful = 1
ideas = 1
logo = 1
education = 1
children = 1
Category /technology/computers/programming/methodology
development = 1
agile = 1
programming = 1
driven = 1
methodology = 1
test = 1
extreme = 1
Category /technology/computers/ai
theory = 1
intelligence = 1
number = 1
artificial = 1
music = 1
mathematics = 1
Category /philosophy/eastern
taoism = 1
Category /health/alternative/chinese
gong = 1
chinese = 1
diet = 1
herbs = 1
health = 1
medicine = 1
qi = 1
Category /education/pedagogy
waldorf = 1
practice = 1
education = 1
psychology = 1
philosophy = 1
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.002s
OK
Compound Time : 0:00:03.243778
Multi-file Time: 0:00:03.124543
.
----------------------------------------------------------------------
Ran 1 test in 6.370s
OK
Sorted by: <custom:"location": [EMAIL PROTECTED]>
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.007s
OK
......
----------------------------------------------------------------------
Ran 6 tests in 0.026s
OK
.....
----------------------------------------------------------------------
Ran 5 tests in 0.026s
OK
.....
----------------------------------------------------------------------
Ran 5 tests in 0.020s
OK
RAMDirectory Time: 0:00:01.466792
FSDirectory Time : 0:00:01.719252
.
----------------------------------------------------------------------
Ran 1 test in 3.187s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.008s
OK
.Lucene in <B>Action</B>
Tapestry in <B>Action</B>
JUnit in <B>Action</B>
.
----------------------------------------------------------------------
Ran 2 tests in 0.003s
OK
Java Development with Ant: 0.574820697308
JUnit in Action: 0.812919199467
0.812919199467: JUnit in Action
0.574820697308: Java Development with Ant
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
...
----------------------------------------------------------------------
Ran 3 tests in 0.006s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.003s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.011s
OK
...
----------------------------------------------------------------------
Ran 3 tests in 0.005s
OK
Traceback (most recent call last):
File "samples/LuceneInAction/PositionalPorterStopAnalyzerTest.py", line 6, in
?
from lia.analysis.positional.PositionalPorterStopAnalyzerTest import \
File
"/root/tarballs/tmp/PyLucene-src-2.1.0-1/samples/LuceneInAction/lia/analysis/positional/PositionalPorterStopAnalyzerTest.py",
line 35, in ?
class PositionalPorterStopAnalyzerTest(TestCase):
File
"/root/tarballs/tmp/PyLucene-src-2.1.0-1/samples/LuceneInAction/lia/analysis/positional/PositionalPorterStopAnalyzerTest.py",
line 37, in PositionalPorterStopAnalyzerTest
porterAnalyzer = PositionalPorterStopAnalyzer()
File
"/root/tarballs/tmp/PyLucene-src-2.1.0-1/samples/LuceneInAction/lia/analysis/positional/PositionalPorterStopAnalyzer.py",
line 40, in __init__
self.stopWords = set(stopWords)
NameError: global name 'set' is not defined
.
----------------------------------------------------------------------
Ran 1 test in 0.002s
OK
.modified:[01/01/04 TO 12/31/04] parsed to modified:[01/01/04 TO 12/31/04]
...../Computers/technology*
.....
----------------------------------------------------------------------
Ran 11 tests in 0.020s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
.1.0 = (MATCH) fieldWeight(contents:x in 0), product of:
1.0 = tf(termFreq(contents:x)=1)
1.0 = idf(docFreq=1)
1.0 = fieldNorm(field=contents, doc=0)
..
----------------------------------------------------------------------
Ran 3 tests in 0.006s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.009s
OK
spanOr([f:quick, f:fox]):
the <quick> brown fox jumps over the lazy dog (0.371584266424)
the quick brown <fox> jumps over the lazy dog (0.371584266424)
the <quick> red fox jumps over the sleepy cat (0.371584266424)
the quick red <fox> jumps over the sleepy cat (0.371584266424)
spanFirst(spanNear([f:quick, f:fox], 1, true), 4):
the <quick brown fox> jumps over the lazy dog (0.185792133212)
the <quick red fox> jumps over the sleepy cat (0.185792133212)
f:the:
<the> quick brown fox jumps over the lazy dog (0.185792133212)
the quick brown fox jumps over <the> lazy dog (0.185792133212)
<the> quick red fox jumps over the sleepy cat (0.185792133212)
the quick red fox jumps over <the> sleepy cat (0.185792133212)
spanNear([f:quick, f:brown], 0, false):
the <quick brown> fox jumps over the lazy dog (0.287689089775)
.spanFirst(f:brown, 2):
No spans
spanFirst(f:brown, 3):
the quick <brown> fox jumps over the lazy dog (0.220970869064)
.spanNear([f:quick, f:brown, f:dog], 0, true):
No spans
spanNear([f:quick, f:brown, f:dog], 4, true):
No spans
spanNear([f:quick, f:brown, f:dog], 5, true):
the <quick brown fox jumps over the lazy dog> (0.270264059305)
spanNear([f:lazy, f:fox], 3, false):
the quick brown <fox jumps over the lazy> dog (0.203426927328)
.spanNear([f:quick, f:fox], 1, true):
the <quick brown fox> jumps over the lazy dog (0.185792133212)
the <quick red fox> jumps over the sleepy cat (0.185792133212)
spanNot(spanNear([f:quick, f:fox], 1, true), f:dog):
the <quick brown fox> jumps over the lazy dog (0.185792133212)
the <quick red fox> jumps over the sleepy cat (0.185792133212)
spanNot(spanNear([f:quick, f:fox], 1, true), f:red):
the <quick brown fox> jumps over the lazy dog (0.185792133212)
.spanNear([spanNear([f:quick, f:fox], 1, true), spanNear([f:lazy, f:dog], 0,
true)], 3, true):
the <quick brown fox jumps over the lazy dog> (0.332194805145)
spanNear([spanNear([f:quick, f:fox], 1, true), spanNear([f:sleepy, f:cat], 0,
true)], 3, true):
the <quick red fox jumps over the sleepy cat> (0.332194805145)
spanOr([spanNear([spanNear([f:quick, f:fox], 1, true), spanNear([f:lazy,
f:dog], 0, true)], 3, true), spanNear([spanNear([f:quick, f:fox], 1, true),
spanNear([f:sleepy, f:cat], 0, true)], 3, true)]):
the <quick brown fox jumps over the lazy dog> (0.54052811861)
the <quick red fox jumps over the sleepy cat> (0.54052811861)
.f:brown:
the quick <brown> fox jumps over the lazy dog (0.220970869064)
.
----------------------------------------------------------------------
Ran 6 tests in 0.029s
OK
.subject:logo filtered(category:*education*)->[EMAIL PROTECTED]
.
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
..
----------------------------------------------------------------------
Ran 2 tests in 0.001s
OK
[the] [quick] [brown]
.
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK
"fox jumps" parses to "fox (jumps hops leaps)"
>From AnalyzerUtils.tokensFromAnalysis:
[fox] [jumps] [hops] [leaps]
...
----------------------------------------------------------------------
Ran 3 tests in 0.008s
OK
make: *** [test] Error 123
---
-ofer
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev