dasmith / stanford-corenlp-python

Python wrapper for Stanford CoreNLP tools v3.4.1
GNU General Public License v2.0
610 stars 229 forks source link

Windows run of "python corenlp.py" Error #36

Open partizanos opened 8 years ago

partizanos commented 8 years ago

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'

rbhood commented 8 years ago

Same issue here :( :(

lildutchie99 commented 8 years ago

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.

85405115 commented 7 years ago

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?

gracetambunan commented 7 years ago

anyone have solve the problem? please share :)

arsalanamjid commented 6 years ago

Can i run it on a virtual machine on VMware? I am facing the same problem and need a quick fix!

FahmaBakkar commented 5 years ago

For windows users can use the codeline

self.corenlp = pexpect.popen_spawn.PopenSpawn(start_corenlp) instead of this

self.corenlp = pexpect.spawn(start_corenlp)