I just went though installing PyLucene on a new server. Thought I had it documented how I did it last time but I was missing a few steps. PyLucene is the biggest pain in the &$# to install and I really wish they would use something else.
On Apr 23, 1:21 pm, "Titi Ala'ilima" <[email protected]> wrote: > In a followup to an old thread from last year (http:// > groups.google.com/group/reviewboard/browse_thread/thread/ > 615b108947474d86?pli=1), I encountered this error while trying to > install PyLucene: > > /usr/bin/python: module jcc has no associated file > > Like the OP, I am new to most things python and lucene. The OP > figured out the issue but then didn't give specifics. I likewise > figured it out eventually, so I figured I'd give a little more info in > case it should help others. It's more accurately a pylucene issue, > but since it happened in the course of installing reviewboard for me > as well, and since this came up at the top of my search even excluding > reviewboard from the criteria, it seemed as good a place as any to > record the info. > > In my case, I'm on CentOS 5.4 64-bit, Python 2.4, OpenJDK 1.6. > setuptools 0.6c11. Looking at the options in the Makefile, I picked > the one that seemed to match the best: > # Linux (Ubuntu 8.10 64-bit, Python 2.5.2, OpenJDK 1.6, setuptools > 0.6c9) > PREFIX_PYTHON=/usr > ANT=ant > PYTHON=$(PREFIX_PYTHON)/bin/python > JCC=$(PYTHON) -m jcc --shared > NUM_FILES=2 > > Well it turns out that the python version impacts the JCC command > significantly. For my version of python, they suggested: > JCC=$(PYTHON) $(PREFIX_PYTHON)/lib/python2.4/site-packages/jcc/ > __init__.py > > But I didn't have my jcc files located there. I had to pay attention > to where the jcc installation placed the files. What I ended up with > was: > JCC=$(PYTHON) $(PREFIX_PYTHON)/lib64/python2.4/site-packages/JCC-2.5.1- > py2.4-linux-x86_64.egg/jcc/__init__.py > > Hope this helps! > > Titi > > -- > Want to help the Review Board project? Donate today > athttp://www.reviewboard.org/donate/ > Happy user? Let us know athttp://www.reviewboard.org/users/ > -~----------~----~----~----~------~----~------~--~--- > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~----------~----~----~----~------~----~------~--~--- To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
