To expand on Dima's answer: Homebrew's Python 3.13 is too new to build 
Sage, so Sage will reject it. The built-in Python 3.9 is, as Dima says, no 
good for use with Sage. So install Homebrew's python 3.12, do "make 
distclean", and then use

   ./configure --with-python=" fill in path to python3.12 "

or you can do precisely this:

  ./configure --with-python=`which python3.12`

This should use Homebrew's Python 3.12 (assuming you've installed it) even 
if you've also installed newer versions with Homebrew. You can tell which 
version of Python is being used by the symlink "venv" in the top-level Sage 
directory:

% ls -l venv
lrwxr-xr-x  1 palmieri  staff  34 Dec 30 15:41 venv -> 
local/var/lib/sage/venv-python3.12

and also by the name of the directory starting "venv" in 
local/var/lib/sage/:

% ls local/var/lib/sage/               
installed       scripts         venv-python3.12


On Thursday, January 2, 2025 at 10:02:22 PM UTC-8 dim...@gmail.com wrote:

> /usr/bin/python3 you end up using is no good for using with Sage (and 
> unfortunately our
> ./configure doesn't see it), that's why.
>
> I suggested to install python3.12 in Homebrew and use it instead.
> (because building Sage's python is broken on your macOS version, too,
> there aren't many other
> easy options)
>
> Dima
>
>
> On Thursday, January 2, 2025 at 10:27:48 PM UTC-6 pgal...@gmail.com wrote:
>
>> Hi,
>>
>> I am running into the following problem when building Sage from source. 
>> It hangs while installing the package ``sagemath_doc_html-none``. It shows 
>> a warning about urllib3 incompatibility with OpenSSL 1.1.1+.
>>
>> I am on an M4 Macbook Pro (2024), Mac OS Sequoia 15.2, using Homebrew 
>> Python 3.13.1.
>>
>> Below is what appears in the log file, but the terminal actually hangs on 
>> the line
>>
>> [spkg-install] warnings.warn(
>>
>> [spkg-install] 
>> /Users/user/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/urllib3/__init__.py:34:
>>  NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 
>> 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: 
>> https://github.com/urllib3/urllib3/issues/3020
>> [spkg-install]   warnings.warn(
>> Setting up build directory 
>> /Users/user/sage/sage/local/var/tmp/sage/build/sagemath_doc_html-none
>> Host system: Darwin PG-Mac-2.local 24.2.0 Darwin Kernel Version 24.2.0: Fri 
>> Dec  6 19:03:40 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6041 arm64
>> C compiler: gcc, Apple clang version 16.0.0 (clang-1600.0.26.6), Target: 
>> arm64-apple-darwin24.2.0, Thread model: posix, InstalledDir: 
>> /Library/Developer/CommandLineTools/usr/bin
>> No stamp file for package 'sagemath_doc_html' in 
>> /Users/user/sage/sage/local/var/lib/sage/installed
>> No spkg-legacy-uninstall script; nothing to do
>> [spkg-install] mkdir -p en/reference/repl
>> [spkg-install] sage -advanced > en/reference/repl/options.txt
>> [spkg-install] 
>> /Users/user/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/urllib3/__init__.py:34:
>>  NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 
>> 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: 
>> https://github.com/urllib3/urllib3/issues/3020
>> [spkg-install]   warnings.warn(
>> [spkg-install] make doc-inventory--reference-references
>> [spkg-install] sage --docbuild --no-pdf-links reference/references inventory 
>> [spkg-install] 
>> /Users/user/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/urllib3/__init__.py:34:
>>  NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 
>> 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: 
>> https://github.com/urllib3/urllib3/issues/3020
>> [spkg-install]   warnings.warn(
>> [spkg-install] [reference] Interrupting Mathematica...
>> [spkg-install] [reference] Interrupted!
>> [spkg-install] make[5]: *** [doc-inventory-reference] Interrupt: 2
>> ************************************************************************
>> Error installing package sagemath_doc_html-none
>> ************************************************************************
>> Please email sage-devel (http://groups.google.com/group/sage-devel)
>> explaining the problem and including the log files
>>   /Users/user/sage/sage/logs/pkgs/sagemath_doc_html-none.log
>> and
>>   /Users/user/sage/sage/config.log
>> Describe your computer, operating system, etc.
>> If you want to try to fix the problem yourself, *don't* just cd to
>> /Users/user/sage/sage/local/var/tmp/sage/build/sagemath_doc_html-none 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 
>> '/Users/user/sage/sage/local/var/tmp/sage/build/sagemath_doc_html-none' && 
>> '/Users/user/sage/sage/sage' --buildsh)
>> When you are done debugging, you can type "exit" to leave the subshell.
>>
>>
>> -- 
>> Best,
>> Pasha
>>
>

-- 
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 visit 
https://groups.google.com/d/msgid/sage-support/209a705b-5353-473c-85f4-7098f2de5f63n%40googlegroups.com.

Reply via email to