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

Hardcoded path in driver.py breaks simulator #3

Open
jpwarren opened this issue Oct 20, 2013 · 2 comments
Open

Hardcoded path in driver.py breaks simulator #3

jpwarren opened this issue Oct 20, 2013 · 2 comments

Comments

@jpwarren
Copy link

When I try to test the rainbow app in Holideck, I get an OSError:

Traceback (most recent call last):
  File "/home/daedalus/src/holideck/bottle.py", line 763, in _handle
    return route.call(**args)
  File "/home/daedalus/src/holideck/bottle.py", line 1577, in wrapper
    rv = callback(*a, **ka)
  File "/home/daedalus/src/holideck/iotas/devices/moorescloud/holiday/driver.py", line 267, in do_runapp
    c = subprocess.call(['/home/holiday/scripts/start-app.sh', app_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 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

It looks like start-app.sh and stop-app.sh are missing from iotas/scripts, or is this something specific to the hardware build?

@mpesce
Copy link
Member

mpesce commented Oct 20, 2013

The Rainbow app is actually a binary that's being invoked. Which is why it bombs like that.

If you read the release notes to Holideck, it gives just a few apps that work. That list is expanded now, but Rainbow, as a binary, will never be among them.

On Oct 20, 2013, at 11:44 AM, Justin Warren notifications@github.com wrote:

When I try to test the rainbow app in Holideck, I get an OSError:

Traceback (most recent call last):
File "/home/daedalus/src/holideck/bottle.py", line 763, in _handle
return route.call(*_args)
File "/home/daedalus/src/holideck/bottle.py", line 1577, in wrapper
rv = callback(_a, *_ka)
File "/home/daedalus/src/holideck/iotas/devices/moorescloud/holiday/driver.py", line 267, in do_runapp
c = subprocess.call(['/home/holiday/scripts/start-app.sh', app_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 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
It looks like start-app.sh and stop-app.sh are missing from iotas/scripts, or is this something specific to the hardware build?


Reply to this email directly or view it on GitHub.

@jpwarren
Copy link
Author

Can it die with a more informative error message then, highlighting that this is a design decision, not a bug?

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

2 participants