python-duckling
python-duckling copied to clipboard
does not work in Windows
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
Can you get any stack trace?
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?
Can you try to run the Java code directly, that I described for example in https://github.com/FraBle/python-duckling/issues/25#issuecomment-323574059
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'
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.