On Tue, Feb 13, 2024 at 8:52 AM Janmenjaya Panda <baselconst...@gmail.com>
wrote:

> Hello,
> I got the following error while (running 'make') building sage from the
> forked repo of the source code (This branch (develop) is up to date with
> sagemath/sage:develop).
>
> [meson_python-0.15.0] Thread model: posix
> [meson_python-0.15.0] gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
> [meson_python-0.15.0] ****************************************************
> [meson_python-0.15.0] Package 'meson_python' is currently not installed
> [meson_python-0.15.0] No legacy uninstaller found for 'meson_python';
> nothing to do
> [meson_python-0.15.0] Installing meson_python-0.15.0
> [meson_python-0.15.0] Processing
> /home/janmenjaya/open-source/sage/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.15.0/src
> [meson_python-0.15.0]   Preparing metadata (pyproject.toml): started
> [meson_python-0.15.0]   Running command Preparing metadata (pyproject.toml)
> [meson_python-0.15.0]
> [meson_python-0.15.0]   ('\x1b[31m',)meson-python: error: Could not find
> meson version 0.63.3 or newer, found .
> [meson_python-0.15.0]   error: subprocess-exited-with-error
> [meson_python-0.15.0]
> [meson_python-0.15.0]   × Preparing metadata (pyproject.toml) did not run
> successfully.
> [meson_python-0.15.0]   │ exit code: 1
> [meson_python-0.15.0]   ╰─> See above for output.
> [meson_python-0.15.0]
> [meson_python-0.15.0]   note: This error originates from a subprocess, and
> is likely not a problem with pip.
> [meson_python-0.15.0]   full command:
> /home/janmenjaya/open-source/sage/local/var/lib/sage/venv-python3.11.1/bin/python3
> /home/janmenjaya/open-source/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py
> prepare_metadata_for_build_wheel /tmp/tmp4u8eg6fa
> [meson_python-0.15.0]   cwd:
> /home/janmenjaya/open-source/sage/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.15.0/src
> [meson_python-0.15.0]   Preparing metadata (pyproject.toml): finished with
> status 'error'
> [meson_python-0.15.0] error: metadata-generation-failed
> [meson_python-0.15.0]
> [meson_python-0.15.0] × Encountered error while generating package
> metadata.
> [meson_python-0.15.0] ╰─> See above for output.
> [meson_python-0.15.0]
> [meson_python-0.15.0] note: This is an issue with the package mentioned
> above, not pip.
> [meson_python-0.15.0] hint: See above for details.
> [meson_python-0.15.0]
> ********************************************************************************************************************************************
> [meson_python-0.15.0] Error building a wheel for meson_python-0.15.0
> [meson_python-0.15.0]
> ********************************************************************************************************************************************
> [meson_python-0.15.0]
> [meson_python-0.15.0] real 0m0.707s
> [meson_python-0.15.0] user 0m0.643s
> [meson_python-0.15.0] sys 0m0.067s
> [meson_python-0.15.0]
> ************************************************************************
> [meson_python-0.15.0] Error installing package meson_python-0.15.0
> [meson_python-0.15.0]
> ************************************************************************
> [meson_python-0.15.0] Please email sage-devel (
> http://groups.google.com/group/sage-devel)
> [meson_python-0.15.0] explaining the problem and including the log files
> [meson_python-0.15.0]
> /home/janmenjaya/open-source/sage/logs/pkgs/meson_python-0.15.0.log
> [meson_python-0.15.0] and
> [meson_python-0.15.0]   /home/janmenjaya/open-source/sage/config.log
> [meson_python-0.15.0] Describe your computer, operating system, etc.
> [meson_python-0.15.0] If you want to try to fix the problem yourself,
> *don't* just cd to
> [meson_python-0.15.0]
> /home/janmenjaya/open-source/sage/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.15.0
> and type 'make' or whatever is appropriate.
> [meson_python-0.15.0] Instead, the following commands setup all
> environment variables
> [meson_python-0.15.0] correctly and load a subshell for you to debug the
> error:
> [meson_python-0.15.0]   (cd
> '/home/janmenjaya/open-source/sage/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.15.0'
> && '/home/janmenjaya/open-source/sage/sage' --buildsh)
> [meson_python-0.15.0] When you are done debugging, you can type "exit" to
> leave the subshell.
> [meson_python-0.15.0]
> ************************************************************************
> make[4]: *** [Makefile:3387: meson_python-SAGE_VENV-no-deps] Error 1
> make[3]: *** [Makefile:3387:
> /home/janmenjaya/open-source/sage/local/var/lib/sage/venv-python3.11.1/var/lib/sage/installed/meson_python-0.15.0]
> Error 2
> make[2]: *** [Makefile:3017: all-start] Error 2
> make[2]: Leaving directory '/home/janmenjaya/open-source/sage/build/make'
>
> real 0m1.277s
> user 0m1.154s
> sys 0m0.138s
> ***************************************************************
> Error building Sage.
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make all-start'):
>
> * package:         meson_python-0.15.0
>   last build time: Feb 13 13:08
>   log file:
>  /home/janmenjaya/open-source/sage/logs/pkgs/meson_python-0.15.0.log
>
> It is safe to delete any log files and build directories, but they
> contain information that is helpful for debugging build problems.
> WARNING: If you now run 'make' again, the build directory of the
> same version of the package will, by default, be deleted. Set the
> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>
> make[1]: *** [Makefile:40: all-start] Error 1
> make[1]: Leaving directory '/home/janmenjaya/open-source/sage'
> make: *** [Makefile:13: all] Error 2
>
>
This error comes from meson, a good version, being found in ~/.local/bin/,
but meson_python not liking it (maybe it check for meson in some way that's
not working in this case). You can look at the source of meson_python to
find out the exact reason.



>
>
>
> I already have meson_python-0.15.0 installed in my system via pip install
> meson_python. Still, the above error is showing up. I have attached the log
> files. In the log file meson_python-0.15.0.log it says:
>
> [Errno socket error] [Errno 404] Not Found: '//
> github.com/sagemath/sage/releases/download/10.3/meson_python-0.15.0.tar.gz
> '
>

this is OK, it just tells you it could not find the tarball on a mirror,
but in the end it is able to get it, surely.


>
>
> I also checked with the previous conversation regarding the build failure
> due to meson_python; the reason there seemed different.
>

if you want to use pip-installed packages, and skip as much building of
them as possible, you need
to first run ./configure --enable-system-site-packages

However this still by default won't look in ~/.local/ for packages.
There are extra settings which enable this, but I don't recall from the top
of my head.
You can also do everything in a python venv, then
./configure --enable-system-site-packages will work without this extra hack
I forgot.

HTH
Dima



> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/f8be7c2b-658a-42ce-abe1-a27fb02b10edn%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-devel/f8be7c2b-658a-42ce-abe1-a27fb02b10edn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq0rW5X1x8U5g4va6%3D8V2a65vo1hr4nTezizP7Tcedfu5Q%40mail.gmail.com.

Reply via email to