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

Cython error: Lua "undeclared name not builtin: long" #267

Closed
waarmond opened this issue Apr 12, 2024 · 2 comments
Closed

Cython error: Lua "undeclared name not builtin: long" #267

waarmond opened this issue Apr 12, 2024 · 2 comments

Comments

@waarmond
Copy link

waarmond commented Apr 12, 2024

ArchLinux, Python 3.10, Cython 3.0.10 (0.29.36 didn't got accepted)

Error compiling Cython file:
------------------------------------------------------------
...
        args = cpython.tuple.PyTuple_New(length)
        lua.lua_pushnil(L)            # nil (first key)
        while lua.lua_next(L, -2):    # key value
            key = py_from_lua(runtime, L, -2)
            value = py_from_lua(runtime, L, -1)
            if isinstance(key, (int, long)) and not isinstance(key, bool):
                                     ^
------------------------------------------------------------

lupa/lua51.pyx:752:37: undeclared name not builtin: long

I don't have lua51 installed on my system; this is the bundled version.

PS: Building 1.14.1 against cython 0.29.36 works.

@scoder
Copy link
Owner

scoder commented Apr 12, 2024 via email

@waarmond
Copy link
Author

My source file is lupa-2.1.tar.gz (sha256 d0fd4e60ad149fe25c90530e2a0e032a42a6f0455f29ca0edb8170d6ec751c6e) from https://gitlab.archlinux.org/archlinux/packaging/packages/python-lupa

But deviating from vanilla ArchLinux I'm using an older Python version

@scoder scoder closed this as completed in bb630dc Jan 9, 2025
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