Skip to content

installing bigfloat on Ubuntu 22.04 (wsl) #121

@wkdawson

Description

@wkdawson

I don't understand cython enough to fix this problem. I installed the latest python3-full, pip3, cython, etc. but I still keep getting the same error message

sudo python3 setup.py install

Error compiling Cython file:

...
if not (2 <= base <= 62 or -36 <= base <= -2):
raise ValueError(
"Base must satisfy 2 <= base <= 62 or -2 >= base >= -36.")

# Get the appropriate function for freeing the allocated memory.
cgmp.mp_get_memory_functions (NULL, NULL, &freefunc);
                                          ^

mpfr.pyx:112:46: Cannot assign type 'free_func *' to 'void (**)(void *, size_t) noexcept'
Compiling mpfr.pyx because it changed.
[1/1] Cythonizing mpfr.pyx
Traceback (most recent call last):
File "/home/dawson/gitworks/bigfloat/setup.py", line 217, in
extensions = cythonize(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: mpfr.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