On Thu, Jun 24, 2021 at 6:56 PM Marc Culler <marc.cul...@gmail.com> wrote:
>
> On Thu, Jun 24, 2021 at 11:50 AM Dima Pasechnik <dimp...@gmail.com> wrote:
> >
> > There is no need to build Python, you can either use one from Homebrew
> > or from the official Python distribution.
> >
>
> That is an extremely unhelpful answer, especially given what I am
> trying to do.  It is also ridiculous.  If people are following the
> build instructions in the README file and the build is failing then
> the build is broken and it should be fixed.

We have 10 people per day asking what to do with broken Python build, you know,
it is tiring...
Please see
https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation

>
> Fortunately, I was able to solve my problem in spite of this unhelpful
> help.  The build is not broken.  But the instructions in the README
> file are incomplete.  The answer which would have helped me is this:
>
> "If you switch branches in the git repository then you need to run
> make distclean before rebuilding sage."
>
> And that really should be added to the README file.
>
> - Marc
>
> PS If you are going to tell people that they do not have to build
> python to build sage then you should also provide instructions for how
> to build sage without building python.

Please see
https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation
as well as read the last half a page of the output of ./configure


>
> >
> > > The build fails when it attempts to import distutils, which depends on 
> > > the binascii module.  Searching through the python build directory with 
> > > find indicates that binascii.o does not get built.  If I run make in the 
> > > python build directory using my normal environment then binascii.o is 
> > > built, as is the extension module binascii.cpython-39-darwin.so, and the 
> > > python build succeeds.  But If I run make in a sage-buildsh subshell then 
> > > binascii.o does not get built and the make command fails in the same way 
> > > as with the build of sage.  So evidently something in the sage build 
> > > environment is preventing python from compiling its binascii module.
> > >
> > > I am attaching the log file.
> > >
> > > - Marc
> > >
> > > On Friday, June 18, 2021 at 3:09:58 PM UTC-5 max...@gmail.com 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 sage-devel+unsubscr...@googlegroups.com.
> > > To view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/sage-devel/f53afd48-abd2-440b-a996-f9950e16ad58n%40googlegroups.com.
> >
> > --
> > You received this message because you are subscribed to a topic in the 
> > Google Groups "sage-devel" group.
> > To unsubscribe from this topic, visit 
> > https://groups.google.com/d/topic/sage-devel/euE9MJnfjAo/unsubscribe.
> > To unsubscribe from this group and all its topics, 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/CAAWYfq1Z%2BJWoupqNMrqx19w8kBh3LctrREVjsCdBnyBbwpXKng%40mail.gmail.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 sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CALcZXRFcfY9jS5HZY65AAT-ZWc5nt520toeJ%2Bv7c42Vmk0LMkQ%40mail.gmail.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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq0QZk%3DRtX-%2B45w3GEqNYhGa3X72n5fuaSMRWZmzoqEfdA%40mail.gmail.com.

Reply via email to