On Tue, Jan 7, 2014 at 4:20 AM, Marco Ippolito <ippolito.ma...@gmail.com> wrote: > File "/usr/local/lib/python2.7/dist-packages/nltk/classify/megam.py", > line 167, in call_megam > p = subprocess.Popen(cmd, stdout=subprocess.PIPE) > File "/usr/lib/python2.7/subprocess.py", line 679, ininit > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > subprocess.py exists:
The problem isn't inside subprocess itself, which is raising the error. It looks like the problem is with the command being executed via Popen. I would look in megam.py (the first line that I quoted here) and see what the command is, and then see if you have that installed correctly. It ought to be listed as a prerequisite. ChrisA -- https://mail.python.org/mailman/listinfo/python-list