Subprocess raise child exception - no such file or directory error

Issue #2 new
Julie Arsenault created an issue

I'm getting the following error when I try to load the webpage...any ideas where this might be coming from and how I can get past it? Does it have to do with lesscss?

2016-04-10 12:44:24,743 Exception on / [GET] Traceback (most recent call last): File "/var/www/raspberryparadeflask/venv/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/var/www/raspberryparadeflask/venv/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_req$ rv = self.handle_user_exception(e) File "/var/www/raspberryparadeflask/venv/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_excep$ reraise(exc_type, exc_value, tb) File "/var/www/raspberryparadeflask/venv/local/lib/python2.7/site-packages/flask/app.py", line 1473, in full_dispatch_req$ rv = self.preprocess_request() File "/var/www/raspberryparadeflask/venv/local/lib/python2.7/site-packages/flask/app.py", line 1666, in preprocess_request rv = func() File "/var/www/raspberryparadeflask/venv/local/lib/python2.7/site-packages/flaskext/lesscss.py", line 44, in _render_less$ subprocess.call(['lessc', less_path, css_path], shell=False) 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 2] No such file or directory

Comments (2)

  1. Julie Arsenault reporter

    Thanks - I think there was also an issue with the subprocess.call() line in the lesscss.py file...I ended up installing lesscpy via pip install and modifying that line to read "subprocess.call(['lesscpy', less_path], shell=False)" instead of the original.

    Everything isn't working yet, but I did get past that error!

  2. Log in to comment