bwang482 / emotionannotate

For the SMILE project
GNU General Public License v3.0
3 stars 4 forks source link

Error when running the classifier #1

Closed thisisthechris closed 8 years ago

thisisthechris commented 8 years ago

Hi All,

I'm working on creating a reusable development environment for this project using Virtualbox, Vagrant and Ansible. I'm very close, but at the moment at get the following error whenever I try to run Classifer.py:

Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/vagrant/src/Classifier.py", line 41, in classifier
    scaling(dir,emo)
  File "/vagrant/src/Classifier.py", line 12, in scaling
    subprocess.call(cmd2, stdout=outfile2)
  File "/usr/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error

This occurs for both the web interface and the command line tool. It's also repeated another four times (I assume for each emotion). The scripts then hang and become unresponsive.

I think it's an issue with the output files. I'm going to try removing them and see what happens.

C

adtsakal commented 8 years ago

Hi Chris,

Thank you. Could you try running Classification.py instead of Classifier.py? It should run and ask you to provide two input directories (possibly with a warning).

Thanks, Adam

On Mon, Jan 4, 2016 at 7:18 PM, Chris Hunt notifications@github.com wrote:

Hi All,

I'm working on creating a reusable development environment for this project using Virtualbox, Vagrant and Ansible. I'm very close, but at the moment at get the following error whenever I try to run Classifer.py:

Process Process-1: Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(_self._args, _self._kwargs) File "/vagrant/src/Classifier.py", line 41, in classifier scaling(dir,emo) File "/vagrant/src/Classifier.py", line 12, in scaling subprocess.call(cmd2, stdout=outfile2) File "/usr/lib/python2.7/subprocess.py", line 493, in call return Popen(_popenargs, _kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 679, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child raise child_exception OSError: [Errno 8] Exec format error

This occurs for both the web interface and the command line tool. It's also repeated another four times (I assume for each emotion). The scripts then hang and become unresponsive.

I think it's an issue with the output files. I'm going to try removing them and see what happens.

C

— Reply to this email directly or view it on GitHub https://github.com/bluemonk482/emotionannotate/issues/1.

thisisthechris commented 8 years ago

I think I've figured it out. LibSVM in the repo is a local compiled version, so it won't execute under my vagrant environment. I'll swap this for: https://packages.debian.org/squeeze/libsvn-dev

If you want to take a look for yourself the branch I'm currently working on is here: https://github.com/i-DAT/emotionannotate/tree/add-vagrant-development-env

thisisthechris commented 8 years ago

Have got it working by installing https://packages.debian.org/wheezy/devel/libsvm-tools and tweaking the code to use those libs rather than the ones committed into the repo.

screenshot 2016-01-05 13 11 31