On Fri, Nov 25, 2022 at 5:10 AM being nobody00 <
beingn...@gmail.com> wrote:
>
> Dear SageMath,
>
> SageMath 9.8 beta 4 failed to build on this system:
>
> $ uname -a
> Linux 4.4.0-17763-Microsoft #2268-Microsoft Thu Oct 07 16:36:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux
> $ which python3
> /usr/bin/python3
> $ python3 --version
> Python 3.10.8
> $ ~/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/bin/python3 --version
> Python 3.10.8
> $ wheel version
> wheel 0.34.2
> $ ~/sage-9.8/b4/b4.0/sage -pip list | grep 'wheel'
> wheel 0.37.1
> $ ls -l ~/sage-9.8/b4/b4.0/logs/pkgs | wc -l
> 192
>
> Questions:
>
> Is ~/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/bin/python3 freshly built or a "copy and paste" of /usr/bin/python3? Can /usr/bin/python3 be used 'as is where is' for SageMath?
As you see, this is a venv. It can be either case, built or system python3.
You can look at the logs/pkgs/python3* and/or in local/bin/python3 to
see whether Sage built python3.
Or start
./sage -sh
and at its prompt type
which python3
Sage uses venv to isolate the system installed python3's packages,
and replace them with what's supplied by Sage,
as well as install more.
E.g., as non-root typically cannot write to the location of system
python3's packages.
At the moment we support using "system" python packages in Conda
environments, see
https://doc.sagemath.org/html/en/installation/conda.html#using-conda-to-provide-all-dependencies-for-the-sage-library-experimental
Probably this may be adapted to use the usual system python packages
(then you'd need to build as root, and potentially destroy your
OS installation, as it might rely on your system python for crucial tasks.
>
> Why different versions of "wheel"? ( 'wheel ' on this system was installed after SageMath 9.8 beta 4 was released and the version was decided by the system). Is version 0.37.1 better for SageMath 9.8 than 0.34.2
0.37.1 is the one we know works with all Sage's packages' versions.
0.34 - probably does not.
>
> Subsequent to a failed build (because of 'Error building a wheel for jupyter_jsmol-2022.1.0'), the build process always invokes make for 'sagelib-9.8.beta4' and 'sagemath_doc_html-none'. This takes about an hour on this system. Is this necessary? Can it be avoided?
>
> What does the option "--config-settings" do in the context of the following excerpt from the log file:
>
> "Package 'jupyter_jsmol' is currently not installed
> No legacy uninstaller found for 'jupyter_jsmol'; nothing to do
> Installing jupyter_jsmol-2022.1.0
>
> Usage:
> /home/hph/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/bin/python3 -m pip wheel [options] <requirement specifier> ...
> /home/hph/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/bin/python3 -m pip wheel [options] -r <requirements file> ...
> /home/hph/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/bin/python3 -m pip wheel [options] [-e] <vcs project url> ...
> /home/hph/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/bin/python3 -m pip wheel [options] [-e] <local project path> ...
> /home/hph/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/bin/python3 -m pip wheel [options] <archive url/path> ...
>
> /home/hph/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/bin/python3 -m pip wheel [options] <archive url/path> ...
>
> no such option: --config-settings
> ***********************************************************************************************************************************************
> Error building a wheel for jupyter_jsmol-2022.1.0
> ***********************************************************************************************************************************************
>
> Last but not least, how to debug and fix this issue with "Error installing package jupyter_jsmol-2022.1.0" on this system after going to the debug subshell?
No idea why it's broken - please post the latest logs/pkgs/jmol-*.log here.
>
> From the log file:
> "If you want to try to fix the problem yourself, *don't* just cd to
> /home/hph/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/jupyter_jsmol-2022.1.0 and type 'make' or whatever is appropriate.
> Instead, the following commands setup all environment variables
> correctly and load a subshell for you to debug the error:
> (cd '/home/hph/sage-9.8/b4/b4.0/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/jupyter_jsmol-2022.1.0' && '/home/hph/sage-9.8/b4/b4.0/sage' --buildsh)
> When you are done debugging, you can type "exit" to leave the subshell."
>
> Your help is greatly appreciated.
>
> With best wishes and regards,
>
> phi
>
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/a4587dfd-fa28-480f-a064-3dda0d37f51dn%40googlegroups.com.