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

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

Open
partizanos opened this issue Jan 17, 2016 · 6 comments
Open

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

partizanos opened this issue Jan 17, 2016 · 6 comments

Comments

@partizanos
Copy link

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
Copy link

rbhood commented Feb 11, 2016

Same issue here :( :(

@lildutchie99
Copy link

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
Copy link

85405115 commented Nov 2, 2016

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
Copy link

anyone have solve the problem?
please share :)

@arsalanamjid
Copy link

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

@FahmaBakkar
Copy link

For windows users can use the codeline

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

self.corenlp = pexpect.spawn(start_corenlp)

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

7 participants