Open partizanos opened 8 years ago
Same issue here :( :(
Pexpect relies on some Unix-only function, and even using winpexpect the spawn function won't work. I'm giving up on this wrapper for Windows, just gonna write a server in Java that'll run alongside the Python app.
i have this problem. first i run python in windows. then i thought that perhaps running python in windows has problems and therefore i use python in Linux. but i have this problem again in Linux. please help me. what can i do to solve this problem?
anyone have solve the problem? please share :)
Can i run it on a virtual machine on VMware? I am facing the same problem and need a quick fix!
For windows users can use the codeline
self.corenlp = pexpect.popen_spawn.PopenSpawn(start_corenlp) instead of this
self.corenlp = pexpect.spawn(start_corenlp)
Use Windows 7 machine, Python 2.7.11 java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Traceback (most recent call last): File "corenlp.py", line 257, in
nlp = StanfordCoreNLP()
File "corenlp.py", line 163, in init
self.corenlp = pexpect.spawn(start_corenlp)
AttributeError: 'module' object has no attribute 'spawn'