Skip to content

Fails to build with cython 3.1 #415

@City-busz

Description

@City-busz

Currently vidcutter fails to build on Arch Linux with cython 3.1.3:

Error compiling Cython file:
------------------------------------------------------------
...

cdef void *get_pointer(const char *name, object obj):
    cdef void *p
    if PyCapsule_IsValid(obj, name):
        p = PyCapsule_GetPointer(obj, name)
    elif isinstance(obj, int) or isinstance(obj, long) and obj:
                                                 ^
------------------------------------------------------------

vidcutter/libs/pympv/mpv.pyx:811:49: undeclared name not builtin: long
Compiling vidcutter/libs/pympv/mpv.pyx because it changed.
[1/1] Cythonizing vidcutter/libs/pympv/mpv.pyx
Traceback (most recent call last):
  File "/build/vidcutter/src/vidcutter-6.0.5.3/setup.py", line 62, in <module>
    extensions = cythonize(extensions)
  File "/usr/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
    cythonize_one(*args)
    ~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1298, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: vidcutter/libs/pympv/mpv.pyx

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