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

sys.execute() causes exception in OpenResty #12

Open
vanpelt opened this issue Sep 12, 2016 · 1 comment
Open

sys.execute() causes exception in OpenResty #12

vanpelt opened this issue Sep 12, 2016 · 1 comment

Comments

@vanpelt
Copy link

vanpelt commented Sep 12, 2016

For some reason: https://github.com/torch/sys/blob/master/init.lua#L37-L40 is returning nil when launched through OpenResty which causes an exception.

app.lua

local sys = require 'sys'

Running resty app.lua results in:

$ resty app.lua 
/Users/vanpelt/torch/install/share/lua/5.1/sys/init.lua:40: attempt to index local 's' (a nil value)

(sys.execute is being called to set sys.prefix)

I have no clue why popen is behaving strangely, but thought the nil output case should be handled. Any idea's why child processes are failing in this context?

@varun-suresh
Copy link

Did you figure out how to get around this problem? I'm running into the same problem as well.

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