scoder / lupa

Lua in Python
http://pypi.python.org/pypi/lupa
Other
1.02k stars 136 forks source link

Unable to Import Lua 5.1 Runtime from Lupa on MacOS 13.5.2 #244

Closed danmysak closed 1 year ago

danmysak commented 1 year ago

Environment Details:

Operating System: MacOS 13.5.2 Lua Version: 5.1 (installed via Homebrew) Python Version: 3.9 Lupa Version: 2.0

Issue: When attempting to run the following code:

from lupa.lua51 import LuaRuntime

I encounter the error:

ModuleNotFoundError: No module named 'lupa.lua51'

However, similar imports for versions 5.2, 5.3, and 5.4 work without any issues.

Is there any workaround or specific configuration required to run Lupa with Lua 5.1 on MacOS?

scoder commented 1 year ago

The extension module does not magically appear by installing a specific Lua version. If it's not part of the distribution, you need to build Lupa yourself.