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

Import Error #26

Open
fccoelho opened this issue Aug 30, 2014 · 1 comment
Open

Import Error #26

fccoelho opened this issue Aug 30, 2014 · 1 comment

Comments

@fccoelho
Copy link

I am having problems importing boilerpipe:

In [2]: from boilerpipe.extract import Extractor

RuntimeError Traceback (most recent call last)
in ()
----> 1 from boilerpipe.extract import Extractor

/usr/local/lib/python2.7/dist-packages/boilerpipe/init.py in ()
8 for nm in files:
9 jars.append(os.path.join(top, nm))
---> 10 jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.class.path=%s" % os.pathsep.join(jars))

/usr/local/lib/python2.7/dist-packages/jpype/_core.pyc in startJVM(jvm, *args)
42
43 def startJVM(jvm, *args) :
---> 44 _jpype.startup(jvm, tuple(args), True)
45 _jclass._initialize()
46 _jarray._initialize()

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

It seem to have this path to jre 1.5 hardcoded... I have openjdk 7 installed

@gdamdam
Copy link

gdamdam commented Nov 3, 2014

By default, the system's default JVM is used. It seems something goes wrong with that. The path that it tries to use here is some hardcoded default path that jpype uses when it can't find any JVM.

take a look here: http://www.jmodelica.org/5233

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

2 participants