Try if "make sage_conf" fixes this problem.
If this persists, please post the file "config.log".

On Saturday, April 8, 2023 at 3:19:13 PM UTC-7 Eric Majzoub wrote:

> Thank you, this allows sage to complete the build. However, now I have 
> another problem. When I run sage from its install directory it gives the 
> error:
>
> AttributeError: module 'sage_conf' has no attribute '_main'
>
> And then strangely, it starts Sage 9.5, the version installed on my system 
> through apt. I didn't want to remove this version using apt because I 
> thought it would remove a lot of packages that I need for other programs. 
> Here is the full output.
>
> ./sage 
> Traceback (most recent call last): 
>  File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 
> 33, in <
> module> 
>    sys.exit(load_entry_point('sage-conf', 'console_scripts', 
> 'sage-config')()) 
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
>
>  File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 
> 25, in i
> mportlib_load_entry_point 
>    return next(matches).load() 
>           ^^^^^^^^^^^^^^^^^^^^ 
>  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 204, in 
> load 
>    return functools.reduce(getattr, attrs, module) 
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
> AttributeError: module 'sage_conf' has no attribute '_main' 
> Traceback (most recent call last): 
>  File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 
> 33, in <
> module> 
>    sys.exit(load_entry_point('sage-conf', 'console_scripts', 
> 'sage-config')()) 
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
>
>  File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 
> 25, in i
> mportlib_load_entry_point 
>    return next(matches).load() 
>           ^^^^^^^^^^^^^^^^^^^^ 
>  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 204, in 
> load 
>    return functools.reduce(getattr, attrs, module) 
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
> AttributeError: module 'sage_conf' has no attribute '_main' 
> ┌────────────────────────────────────────────────────────────────────┐ 
> │ SageMath version 9.5, Release Date: 2022-01-30                     │ 
> │ Using Python 3.11.2. Type "help()" for help.                       │ 
> └────────────────────────────────────────────────────────────────────┘
>
>
>
> On Friday, April 7, 2023 at 4:53:15 PM UTC-5 John H Palmieri wrote:
>
>> Some recent versions of Singular don't seem to work with Sage. You could 
>> try "make distclean" (to start over) and "./configure 
>> --with-system-singular=no" to force Sage to build its own Singular. Then 
>> "make".
>>
>> On Friday, April 7, 2023 at 2:22:20 PM UTC-7 Eric Majzoub wrote:
>>
>>> Following the procedure outlined on the Sage install page for Ubuntu.
>>>
>>> make fails showing:
>>> Error building Sage. 
>>>
>>> The following package(s) may have failed to build (not necessarily 
>>> during this run of 'make all-start'): 
>>>
>>> * package:         sagelib-9.8 
>>>  last build time: Apr 7 15:48 
>>>  log file:        /home/packages/SOURCE/sage/logs/pkgs/sagelib-9.8.log
>>>
>>> The log file is attached. It shows that gcc exits with status 1, but 
>>> doesn't give any specific error output from gcc itself. It fails on 
>>> building multi_polynomial_libsingular.
>>>
>>> Any help is appreciated.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d0d508eb-6bbd-4928-8c0f-f00c760976f8n%40googlegroups.com.

Reply via email to