Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation request (not a bug) #6

Open
ianozsvald opened this issue Jan 9, 2013 · 2 comments
Open

Documentation request (not a bug) #6

ianozsvald opened this issue Jan 9, 2013 · 2 comments

Comments

@ianozsvald
Copy link

Hello, thanks for this wrapper, this is wonderfully useful. Installing it took me a few minutes, maybe these notes will help someone else (and perhaps could be added to the README?)

JPypy is a dependency, pip cannot install it (in Jan 2013), get it directly from the Download link:
http://jpype.sourceforge.net/

JAVA_HOME needs to be configured correctly. On Ubuntu 12.04 I use:
$ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
and I got to this via:
$ whereis java # -> /usr/bin/java
$ ls -la /usr/bin/java # -> /usr/bin/java -> /etc/alternatives/java
$ ls -la /etc/alternatives/java # -> /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java
and then I chopped off the JRE part so JAVA_HOME points to ./include, ./lib, ./bin etc

I believe this JDK package is needed too: "openjdk-6-jdk (6b24-1.11.5-0ubuntu1~12.04.1)".

Now install JPype:
./JPype-0.5.4.2/ $ python setup.py install
and then install python-boilerplate
./python-boilerpipe/ $ python setup.py install

@cfreifeld
Copy link

Seconding the thanks for this wrapper, made boilerpipe very easy to use from the command-line. Like @ianozsvald I did have a few installation issues, thought I would share here just to contribute to the knowledge:

I'm on Ubuntu 12.04 as above, using java-6-openjdk-amd64. Here's what I did after running the python-boilerpipe setup script:

sudo apt-get install python-jpype
sudo pip install charade
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64

edit _linux.py in the jpype package

sudo vi /usr/lib/python2.7/dist-packages/jpype/_linux.py

to specify the default JVM path as

return "/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so"

Without the last step, I was getting

RuntimeError: Unable to load DLL [/usr/java/jre1.5.0_05/lib/i386/client/libjvm.so], error = /usr/java/jre1.5.0_05/lib/i386/client/libjvm.so: cannot open shared object file: No such file or directory at src/native/common/include/jp_platform_linux.h:45

even with my JAVA_HOME set correctly. This is with jpype version 0.5.4.2-2 provided by the Ubuntu package. There is some surprising code in _linux.py that tries to determine the libjvm.so.

@rhmccullough
Copy link

I'm not into Python yet. I have installed boilerpipe, but I do not know how to install this software. I would appreciate some assistance. I run on Windows 8.1, Ubuntu 14.04, Mac OS X. I have used git a couple of times on Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants