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

'popen' not supported #268

Open
kchang718 opened this issue May 8, 2024 · 0 comments
Open

'popen' not supported #268

kchang718 opened this issue May 8, 2024 · 0 comments

Comments

@kchang718
Copy link

running a script with io.popen results in error:

---------------------------------------------------------------------------
LuaError                                  Traceback (most recent call last)
Cell In[2], line 1
----> 1 lll.LuaRuntime().eval('io.popen("ls")')

File lupa/lua51.pyx:426, in lupa.lua51.LuaRuntime.eval()

File lupa/lua51.pyx:1821, in lupa.lua51.run_lua()

File lupa/lua51.pyx:1835, in lupa.lua51.call_lua()

File lupa/lua51.pyx:1861, in lupa.lua51.execute_lua_call()

File lupa/lua51.pyx:1743, in lupa.lua51.raise_lua_error()

LuaError: [string "<python>"]:1: 'popen' not supported
stack traceback:
        [string "<python>"]:1: in main chunk
        [C]: in function 'popen'

I assume this is intentional? but is there a way to configure lupa when installing with pip that allows us to customize this behavior? With 1.13, we can force a source only build using the libraries on the system, now that seems to still build with the bundled libraries.

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

1 participant