I have opened https://trac.sagemath.org/ticket/32056 for the mysterious 
issue with 'binascii'.


On Thursday, June 24, 2021 at 9:46:36 AM UTC-7 marc....@gmail.com wrote:

> I am seeing the same error with Python 3.9.5 when I attempt to build Sage 
> 9.4.beta3 from source on macOS 11.4.  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/0fc51e5c-d7cb-422a-a1fd-73660c41fb74n%40googlegroups.com.

Reply via email to