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

does not work in Windows #22

Open
sagarjs opened this issue Jul 6, 2017 · 5 comments
Open

does not work in Windows #22

sagarjs opened this issue Jul 6, 2017 · 5 comments

Comments

@sagarjs
Copy link

sagarjs commented Jul 6, 2017

i ran the following code

import duckling
d = duckling.Duckling()

This code works fine in Ubuntu but does not work in Windows. In windows I get a "Python.exe has stopped working" window

@FraBle
Copy link
Owner

FraBle commented Aug 20, 2017

Can you get any stack trace?

@sagarjs
Copy link
Author

sagarjs commented Aug 21, 2017

i'm not sure how to get a stack trace, i'm not getting an exception, the python.exe just stops responding (like out of memory error).
Can you guide me as to how to get a stack trace?

@FraBle
Copy link
Owner

FraBle commented Aug 22, 2017

Can you try to run the Java code directly, that I described for example in #25 (comment)

@manmaor
Copy link

manmaor commented Dec 21, 2017

I have the same problem, downloaded today via pip install duckling, on windows 10,
I did the same as sagarjs and python just crushed.

when I tried it on linux Ubuntu 16.04.2 LTS, everything worked great.

after some digging I found it crush in:

<module> (c:\Users\manma\Documents\Shaked\Hours\bot\bot.py:3)
__init__ (c:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\duckling.py:44)
_start_jvm (c:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\duckling.py:70)
startJVM (c:\Python27\lib\site-packages\jpype\_core.py:50)

specifically when it tried to run this line:
_jpype.startup(jvm, tuple(args), True)

jvm="'C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll'"
args[0] = '-Xms128m'
args[1] = '-Xmx2048m'
args[3] = '-Djava.class.path=C:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\jars\clj-time-0.8.0.jar;C:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\jars\clojure-1.8.0.jar;C:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\jars\duckling-0.4.23.jar;C:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\jars\joda-time-2.3.jar;C:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\jars\lazymap-3.1.0.jar;C:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\jars\plumbing-0.5.3.jar;C:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\jars\schema-1.0.1.jar;C:\Python27\lib\site-packages\duckling-1.7.3-py2.7.egg\duckling\jars\tools.logging-0.2.6.jar'

@piotrmod92
Copy link

Hi guys.
I get rid of these "Python.exe has stopped working" crashes by using older JDK version in JAVA_HOME path.
Versions 1.8 and 1.7 doesn't work. Going back to jdk1.6.0_45 solved the issue.

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

4 participants