Skip to content

Documentation request (not a bug) #6

Open

Description

@ianozsvald

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

Activity

  1. cfreifeld commented on Oct 8, 2013

    @cfreifeld

    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.

  2. rhmccullough commented on Oct 1, 2014

    @rhmccullough

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions