It would be great if you tried newer Homebrew Pythons, .i.e. 3.10 and 3.11, too, and reported here the results.
On Thursday, January 9, 2025 at 10:52:07 AM UTC-6 pgal...@gmail.com wrote: > It was installed via homebrew, same as python3.12: > $ which python3.9 /opt/homebrew/bin/python3.9 > > > On Thursday, January 9, 2025 at 7:59:39 AM UTC-8 dim...@gmail.com wrote: > >> Thanks. So, what's the output of >> >> which python3.9 >> in your case? And where does it come from? I suppose the issue lies in >> multiptocessing/multithreading support in Python, which eveloved a lot >> since 3.9. >> >> More Pythons to try might be from https://www.python.org/downloads/ (it >> would be good to know which of these 3.9-3.12 work) >> >> On Thursday, January 9, 2025 at 2:51:05 AM UTC-6 pgal...@gmail.com wrote: >> >>> Huh, the problem got completely solved just by switching to Python 9! >>> Thanks a lot for the help! >>> >>> $ make distclean $ ./configure --with-python=`which python3.9` $ make -s >>> V=0 -j1 >>> >>> ... >>> >>> [tzlocal-5.0.1] installing. Log file: >>> /Users/user/sage/sage/logs/pkgs/tzlocal-5.0.1.log [tzlocal-5.0.1] >>> successfully installed. Sage build/upgrade complete! real 101m19.420s >>> user 96m41.546s sys 14m53.704s PG-Mac-2:sage user$ ./sage >>> ┌────────────────────────────────────────────────────────────────────┐ │ >>> SageMath version 10.6.beta3, Release Date: 2025-01-04 │ │ Using Python >>> 3.9.21. Type "help()" for help. │ >>> └────────────────────────────────────────────────────────────────────┘ >>> ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ >>> Warning: this is a prerelease version, and it may be unstable. ┃ >>> ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ >>> sage: sin(pi/3) 1/2*sqrt(3) >>> >>> >>> >>> On Tuesday, January 7, 2025 at 8:52:57 AM UTC-8 Pavel Galashin wrote: >>> >>>> That doesn't seem to help: >>>> >>>> [sagemath_doc_html-none] Setting up build directory >>>> /Users/user/sage/sage/local/var/tmp/sage/build/sagemath_doc_html-none >>>> [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 [sagemath_doc_html-none] 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 [sagemath_doc_html-none] No >>>> stamp file for package 'sagemath_doc_html' in >>>> /Users/user/sage/sage/local/var/lib/sage/installed >>>> [sagemath_doc_html-none] >>>> No spkg-legacy-uninstall script; nothing to do >>>> [sagemath_doc_html-none] [spkg-install] mkdir -p en/reference/repl >>>> [sagemath_doc_html-none] [spkg-install] sage -advanced > >>>> en/reference/repl/options.txt [sagemath_doc_html-none] [spkg-install] make >>>> doc-inventory--reference-references [sagemath_doc_html-none] >>>> [spkg-install] >>>> sage --docbuild --no-pdf-links reference/references inventory >>>> >>>> >>>> >>>> sagemath_doc_html-none.log: >>>> >>>> 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] make doc-inventory--reference-references [spkg-install] >>>> sage >>>> --docbuild --no-pdf-links reference/references inventory 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] make doc-inventory--reference-references [spkg-install] >>>> sage >>>> --docbuild --no-pdf-links reference/references inventory >>>> >>>> On Tuesday, January 7, 2025 at 8:13:14 AM UTC-8 dim...@gmail.com wrote: >>>> >>>>> Our docbuilder isn't great, it uses some custom outdated tricks for >>>>> parallel building. Switching to a more standard sphinx setup is >>>>> overdue... >>>>> >>>>> Try cleaning docs by >>>>> >>>>> make doc-clean >>>>> >>>>> and then run >>>>> >>>>> make -j1 >>>>> >>>>> On Tuesday, January 7, 2025 at 2:56:47 AM UTC-6 pgal...@gmail.com >>>>> wrote: >>>>> >>>>>> Thank you for the advice! I used python3.12 and the warning about >>>>>> urllib3 disappeared, but make still hangs (for > 12 hours) on the same >>>>>> package ``sagemath_doc_html-none``. >>>>>> >>>>>> [sagemath_doc_html-none] Setting up build directory >>>>>> /Users/user/sage/sage/local/var/tmp/sage/build/sagemath_doc_html-none >>>>>> [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 [sagemath_doc_html-none] 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 [sagemath_doc_html-none] No >>>>>> stamp file for package 'sagemath_doc_html' in >>>>>> /Users/user/sage/sage/local/var/lib/sage/installed >>>>>> [sagemath_doc_html-none] >>>>>> No spkg-legacy-uninstall script; nothing to do >>>>>> [sagemath_doc_html-none] [spkg-install] mkdir -p en/reference/repl >>>>>> [sagemath_doc_html-none] [spkg-install] sage -advanced > >>>>>> en/reference/repl/options.txt [sagemath_doc_html-none] [spkg-install] >>>>>> make >>>>>> doc-inventory--reference-references [sagemath_doc_html-none] >>>>>> [spkg-install] >>>>>> sage --docbuild --no-pdf-links reference/references inventory ^Z [6]+ >>>>>> Stopped make >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Friday, January 3, 2025 at 10:01:34 AM UTC-8 John H Palmieri wrote: >>>>>> >>>>>>> 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/b5b74943-3b98-42a3-beba-cbaedc3f1110n%40googlegroups.com.