Skip to content

'popen' not supported #268

Open
Open
@kchang718

Description

@kchang718

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions