I've tried to use Conda distribution, but it says "FeatureNotPresentError: 
PyNormaliz is not available."
So, I'm stuck -- I cannot install Normaliz within the binary distribution 
of Sage 9.3, and I cannot compile Sage 9.3 with Normaliz from the sources, 
getting all kinds of errors here and there. It's very frustrating ;(
I was able to install Normaliz from the binary distribution of Sage 9.2 
without an issue.
Max



On Saturday, June 19, 2021 at 8:29:28 AM UTC-4 [email protected] wrote:

> On Sat, Jun 19, 2021 at 12:41 PM Max Alekseyev <[email protected]> wrote:
> >
> > A source distribution has many more points to break (I'll send my issues 
> in a new thread), and it takes ages to compile.
> > For now, it's still unresolved why 'configure' in the binary 
> distribution fails to detect python3 in the system.
>
> A binary distribution normally speaking is not something that has or
> needs configure.
>
> By the way, conda distribution might be something you'd prefer, this
> is a configurable binary distribution
> as you might know.
> https://wiki.sagemath.org/Conda
> They have normaliz, as far as I know.
>
> >
> > Regards,
> > Max
> >
> > On Friday, June 18, 2021 at 7:18:00 PM UTC-4 [email protected] wrote:
> >>
> >> On Fri, Jun 18, 2021 at 11:02 PM Max Alekseyev <[email protected]> 
> wrote:
> >> >
> >> > I'll try the source distribution, but I'd like to mention that 
> building optional packages from a binary distribution worked well in 
> earlier Sage versions (e.g., 9.1 and 9.2)
> >>
> >> please bear with us. We aim at
> >>
> >> pip install sagemath -u
> >>
> >> to be the normal, Pythonic way to deal with Sage...
> >>
> >>
> >> > Regards,
> >> > Max
> >> >
> >> >
> >> > On Friday, June 18, 2021 at 5:50:20 PM UTC-4 [email protected] wrote:
> >> >>
> >> >> On Fri, Jun 18, 2021 at 10:37 PM Max Alekseyev <[email protected]> 
> wrote:
> >> >> >
> >> >> > I installed Sage from sage-9.3-Ubuntu_20.04-x86_64.tar.bz2
> >> >>
> >> >> this is a binary distribution. It doesn't really allow for building
> >> >> optional packages.
> >> >> Please get the source distribution instead.
> >> >>
> >> >>
> >> >> >
> >> >> > I've just run
> >> >> >
> >> >> > make python3-clean
> >> >> > ./bootstrap
> >> >> > ./configure
> >> >> >
> >> >> > but it still complaints that python3 is not installed in the 
> system.
> >> >> > Why?
> >> >> >
> >> >> > Regards,
> >> >> > Max
> >> >> >
> >> >> >
> >> >> > On Friday, June 18, 2021 at 5:32:56 PM UTC-4 [email protected] 
> wrote:
> >> >> >>
> >> >> >> On Fri, Jun 18, 2021 at 10:20 PM Max Alekseyev <[email protected]> 
> wrote:
> >> >> >> >
> >> >> >> > Please find config.log attached. The system has Python 3.8.5 
> installed.
> >> >> >>
> >> >> >> ## Checking whether SageMath should install SPKG python3... ##
> >> >> >> ## -------------------------------------------------------- ##
> >> >> >> configure:32260: python3 has already been installed by SageMath
> >> >> >>
> >> >> >> here is why it does not use system python3 - because you already 
> had
> >> >> >> python3 built by Sage from source.
> >> >> >>
> >> >> >> (and the same for the host of other packages.)
> >> >> >>
> >> >> >> You can uninstall packages by doing
> >> >> >>
> >> >> >> make <package>-clean
> >> >> >>
> >> >> >> e.g.
> >> >> >>
> >> >> >> make python3-clean
> >> >> >>
> >> >> >> if you don't want to build from scratch.
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> > Max
> >> >> >> >
> >> >> >> > On Friday, June 18, 2021 at 4:49:16 PM UTC-4 [email protected] 
> wrote:
> >> >> >> >>
> >> >> >> >> please post top-level config.log
> >> >> >> >>
> >> >> >> >> Do you have python3 excecutable, version 3.7 or newer?
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> On Fri, Jun 18, 2021 at 9:46 PM Max Alekseyev <
> [email protected]> wrote:
> >> >> >> >> >
> >> >> >> >> > I'd be happy to, but Sage somehow decides that it needs to 
> build its own Python from scratch.
> >> >> >> >> > I simply sun 'sage -i pynormaliz' and get a broken sage as a 
> result.
> >> >> >> >> > What's wrong?
> >> >> >> >> >
> >> >> >> >> > Regards,
> >> >> >> >> > Max
> >> >> >> >> >
> >> >> >> >> > On Friday, June 18, 2021 at 4:42:00 PM UTC-4 
> [email protected] wrote:
> >> >> >> >> >>
> >> >> >> >> >> don't build Python, use one from the system.
> >> >> >> >> >>
> >> >> >> >> >> On Fri, 18 Jun 2021, 21:09 Max Alekseyev, <[email protected]> 
> wrote:
> >> >> >> >> >>>
> >> >> >> >> >>> Hi!
> >> >> >> >> >>>
> >> >> >> >> >>> I'm trying to install PyNormaliz within freshly installed 
> Sage 9.3 within freshly installed Ubuntu 20.04.02 LTS.It breaks giving the 
> following error:
> >> >> >> >> >>>
> >> >> >> >> >>> ===
> >> >> >> >> >>> 
> LD_LIBRARY_PATH=/usr/local/SageMath.93/local/var/tmp/sage/build/python3-3.9.2/src
>  
> CC='gcc -pthread' LDSHARED='gcc -pthread -shared 
> -Wl,-rpath-link,/usr/local/SageMath.93/local/lib 
> -L/usr/local/SageMath.93/local/lib 
> -Wl,-rpath,/usr/local/SageMath.93/local/lib -L. 
> -Wl,-rpath-link,/usr/local/SageMath.93/local/lib 
> -L/usr/local/SageMath.93/local/lib 
> -Wl,-rpath,/usr/local/SageMath.93/local/lib ' OPT='-DNDEBUG -g -fwrapv -O3 
> -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build
> >> >> >> >> >>> Traceback (most recent call last):
> >> >> >> >> >>> File 
> "/usr/local/SageMath.93/local/var/tmp/sage/build/python3-3.9.2/src/./setup.py",
>  
> line 33, in <module>
> >> >> >> >> >>> from distutils import log
> >> >> >> >> >>> File 
> "/usr/local/SageMath.93/local/lib/python3.9/site-packages/_distutils_hack/__init__.py",
>  
> line 83, in create_module
> >> >> >> >> >>> return importlib.import_module('setuptools._distutils')
> >> >> >> >> >>> File 
> "/usr/local/SageMath.93/local/var/tmp/sage/build/python3-3.9.2/src/Lib/importlib/__init__.py",
>  
> line 127, in import_module
> >> >> >> >> >>> return _bootstrap._gcd_import(name[level:], package, level)
> >> >> >> >> >>> File 
> "/usr/local/SageMath.93/local/lib/python3.9/site-packages/setuptools/__init__.py",
>  
> line 16, in <module>
> >> >> >> >> >>> import setuptools.version
> >> >> >> >> >>> File 
> "/usr/local/SageMath.93/local/lib/python3.9/site-packages/setuptools/version.py",
>  
> line 1, in <module>
> >> >> >> >> >>> import pkg_resources
> >> >> >> >> >>> File 
> "/usr/local/SageMath.93/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
>  
> line 23, in <module>
> >> >> >> >> >>> import zipfile
> >> >> >> >> >>> File 
> "/usr/local/SageMath.93/local/var/tmp/sage/build/python3-3.9.2/src/Lib/zipfile.py",
>  
> line 6, in <module>
> >> >> >> >> >>> import binascii
> >> >> >> >> >>> ModuleNotFoundError: No module named 'binascii'
> >> >> >> >> >>> make[3]: *** [Makefile:638: sharedmods] Error 1
> >> >> >> >> >>> 
> ********************************************************************************
> >> >> >> >> >>> Error building python3-3.9.2
> >> >> >> >> >>> 
> ********************************************************************************
> >> >> >> >> >>> ===
> >> >> >> >> >>>
> >> >> >> >> >>> A full log is attached.
> >> >> >> >> >>>
> >> >> >> >> >>> Please advise.
> >> >> >> >> >>>
> >> >> >> >> >>> Thanks,
> >> >> >> >> >>> Max
> >> >> >> >> >>>
> >> >> >> >> >>> --
> >> >> >> >> >>> 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 [email protected].
> >> >> >> >> >>> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/cce1a457-2345-433c-8b25-75e40b5590d0n%40googlegroups.com
> .
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> > 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 [email protected].
> >> >> >> >> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/d976804d-b1f3-4e1e-adc9-4a5bf9af1b81n%40googlegroups.com
> .
> >> >> >> >
> >> >> >> > --
> >> >> >> > 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 [email protected].
> >> >> >> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/e8ad5341-915e-44bd-93c3-0b7f40caaa38n%40googlegroups.com
> .
> >> >> >
> >> >> > --
> >> >> > 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 [email protected].
> >> >> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/a0f6e252-8458-473b-b5ae-fac743fde7efn%40googlegroups.com
> .
> >> >
> >> > --
> >> > 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 [email protected].
> >> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/454fa616-c0cd-4654-9024-0d229ce112d9n%40googlegroups.com
> .
> >
> > --
> > 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 [email protected].
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/ea9dfef8-a81e-4c09-8a31-5524440875f6n%40googlegroups.com
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5eff97ec-1ff0-4117-bed0-60dfadc2be67n%40googlegroups.com.

Reply via email to