Error building sage: cython-0.29.36 will not build

77 views
Skip to first unread message

David Ayotte

unread,
Sep 22, 2023, 2:38:44 AM9/22/23
to sage-support
Hello everyone,

I just pulled the last development version (10.2.beta3) and somehow SageMath won't build now. The building process stops at Cython. It would be greatly appreciated if anybody can help. I attached the log files to this message.

My operating system is Ubuntu 22.04.3 LTS under WSL (Windows 11).

Thank you very much in advance,

David Ayotte
cython-0.29.36.log
config.log

David Ayotte

unread,
Sep 24, 2023, 9:10:50 AM9/24/23
to sage-support
Quick update: I tried rebuilding SageMath after doing a "make distclean", and now the compilation goes further, but stops at SciPy. The error says:

    ModuleNotFoundError: No module named 'mesonpy'

I attached the logs for a longer traceback.

Thanks,

David A.



scipy-1.11.2.log
config.log

Dima Pasechnik

unread,
Sep 24, 2023, 9:45:20 AM9/24/23
to sage-s...@googlegroups.com
On Sun, Sep 24, 2023 at 2:10 PM David Ayotte <davida...@gmail.com> wrote:
>
> Quick update: I tried rebuilding SageMath after doing a "make distclean", and now the compilation goes further, but stops at SciPy. The error says:
>
> ModuleNotFoundError: No module named 'mesonpy'

We need

--- a/build/make/Makefile.in
+++ b/build/make/Makefile.in
@@ -325,7 +325,7 @@ all-toolchain: base-toolchain
# All packages needed as a prerequisite to install other Python packages with
# pip or which are otherwise used by the Python build tools; these should be
# given as a prerequisite to any pip-installed packages
-PYTHON_TOOLCHAIN = setuptools pip setuptools_scm wheel setuptools_wheel
+PYTHON_TOOLCHAIN = setuptools pip setuptools_scm wheel
setuptools_wheel meson_python

# Trac #32056: Avoid installed setuptools leaking into the build of
python3 by uninstalling it.
# It will have to be reinstalled anyway because of its dependency on $(PYTHON).

As a temporary workaround, run

make meson_python

and then run

make




>
> I attached the logs for a longer traceback.
>
> Thanks,
>
> David A.
>
>
>
> Le vendredi 22 septembre 2023 à 02:38:44 UTC-4, David Ayotte a écrit :
>>
>> Hello everyone,
>>
>> I just pulled the last development version (10.2.beta3) and somehow SageMath won't build now. The building process stops at Cython. It would be greatly appreciated if anybody can help. I attached the log files to this message.
>>
>> My operating system is Ubuntu 22.04.3 LTS under WSL (Windows 11).
>>
>> Thank you very much in advance,
>>
>> David Ayotte
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/700bb261-82ee-4d7b-ad1c-64cb37c5449fn%40googlegroups.com.

Dima Pasechnik

unread,
Sep 24, 2023, 9:54:53 AM9/24/23
to sage-s...@googlegroups.com
On Sun, Sep 24, 2023 at 2:45 PM Dima Pasechnik <dim...@gmail.com> wrote:
>
> On Sun, Sep 24, 2023 at 2:10 PM David Ayotte <davida...@gmail.com> wrote:
> >
> > Quick update: I tried rebuilding SageMath after doing a "make distclean", and now the compilation goes further, but stops at SciPy. The error says:
> >
> > ModuleNotFoundError: No module named 'mesonpy'
>
> We need
>
> --- a/build/make/Makefile.in
> +++ b/build/make/Makefile.in
> @@ -325,7 +325,7 @@ all-toolchain: base-toolchain
> # All packages needed as a prerequisite to install other Python packages with
> # pip or which are otherwise used by the Python build tools; these should be
> # given as a prerequisite to any pip-installed packages
> -PYTHON_TOOLCHAIN = setuptools pip setuptools_scm wheel setuptools_wheel
> +PYTHON_TOOLCHAIN = setuptools pip setuptools_scm wheel
> setuptools_wheel meson_python
>
> # Trac #32056: Avoid installed setuptools leaking into the build of
> python3 by uninstalling it.
> # It will have to be reinstalled anyway because of its dependency on $(PYTHON).
>
> As a temporary workaround, run
>
> make meson_python
>
> and then run
>
> make

to be fixed by https://github.com/sagemath/sage/pull/36321
Reply all
Reply to author
Forward
0 new messages