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

clojure issue #41

Open
SreenijaK opened this issue Feb 27, 2019 · 2 comments
Open

clojure issue #41

SreenijaK opened this issue Feb 27, 2019 · 2 comments

Comments

@SreenijaK
Copy link

SreenijaK commented Feb 27, 2019

Hi,
When i run
d = Duckling()

I get the following issue.

File "C:\Users\hi\Anaconda3\lib\site-packages\duckling\duckling.py", line 53, in init
self.clojure = jpype.JClass('clojure.java.api.Clojure')

File "C:\Users\hi\Anaconda3\lib\site-packages\jpype_jclass.py", line 73, in JClass
raise _RUNTIMEEXCEPTION.PYEXC("Class %s not found" % name)

java.lang.RuntimeExceptionPyRaisable: java.lang.RuntimeException: Class clojure.java.api.Clojure not found

How do i fix the same

@azuredsky
Copy link

I met the same issue,could you fix it?

@sumitovant-alan-menaged
Copy link

I found a solution. I had been importing another python library that already initialized a JVM. So when I tried to initialize Duckling(), it skipped over the JVM creation and also skipped over the additions to the classpath. I was able to fix it by removing the other library which creates a JVM. But I would guess there is also a way to use the jvm_started=True flag and load the required jars into your existing JVM manually. Hope this helps!

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