Thank you, Dima and Kwankyu, for your suggestions.

I tried

make distclean
source .homebrew-build-env
./configure --with-python=/usr/local/bin/python3.10
make

Now kiwisolver-1.4.5 cannot be installed. See attached log file.

Best wishes,

Anne

On Tuesday, September 24, 2024 at 4:57:42 PM UTC-7 Kwankyu Lee wrote:

> Though Sage officially supports python 3.9 to python 3.12, in my 
> experience, python 3.9 is "too old" and python 3.12 is somewhat "too new", 
> in the sense that packages on which sage depends on may not work well with 
> them.
>
> So I suggest to try
>
> ./configure --with-python=PYTHON3
>
> where PYTHON3 is the path to your favorite python. On my system, I get the 
> path by
>
> $ which python3.12
> /usr/local/bin/python3.12
> $ which python3.11
> /usr/local/bin/python3.11
>
> I recommend to try first with python3.12 and then with python3.11. If you 
> don't have them, you need to first have the python, perhaps by homebrew.
>
> For example,
>
> make distclean
> ./configure --with-python=/usr/local/bin/python3.12
> make
>
> Sorry that only trial-and-error solution is suggested.
>

-- 
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/c5eeae02-c35b-40a1-87fe-a2aa80e6e87en%40googlegroups.com.
Using cached file /Users/anne/sage/sage/upstream/kiwisolver-1.4.5.tar.gz
Setting up build directory 
/Users/anne/sage/sage/local/var/lib/sage/venv-python3.10/var/tmp/sage/build/kiwisolver-1.4.5
No patch files found in ../patches
Host system: Darwin MacBook-Pro-3.local 24.0.0 Darwin Kernel Version 24.0.0: 
Mon Aug 12 20:51:54 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6000 arm64
C compiler: gcc, Apple clang version 16.0.0 (clang-1600.0.26.3), Target: 
arm64-apple-darwin24.0.0, Thread model: posix, InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
No stamp file for package 'kiwisolver' in 
/Users/anne/sage/sage/local/var/lib/sage/venv-python3.10/var/lib/sage/installed
No spkg-legacy-uninstall script; nothing to do
[spkg-install] Installing kiwisolver-1.4.5
[spkg-install] * Creating isolated environment: venv+pip...
[spkg-install] * Installing packages in isolated environment:
[spkg-install]   - cppy>=1.2.0
[spkg-install]   - setuptools>=61.2
[spkg-install]   - setuptools_scm[toml]>=3.4.3
[spkg-install]   - wheel
[spkg-install] * Getting build dependencies for wheel...
[spkg-install] running egg_info
[spkg-install] writing py/kiwisolver.egg-info/PKG-INFO
[spkg-install] writing dependency_links to 
py/kiwisolver.egg-info/dependency_links.txt
[spkg-install] writing requirements to py/kiwisolver.egg-info/requires.txt
[spkg-install] writing top-level names to py/kiwisolver.egg-info/top_level.txt
[spkg-install] reading manifest file 'py/kiwisolver.egg-info/SOURCES.txt'
[spkg-install] reading manifest template 'MANIFEST.in'
[spkg-install] warning: no files found matching '*.png' under directory 
'docs/source'
[spkg-install] no previously-included directories found matching '.git'
[spkg-install] no previously-included directories found matching 'dist'
[spkg-install] no previously-included directories found matching 'build'
[spkg-install] no previously-included directories found matching 'docs/build'
[spkg-install] adding license file 'LICENSE'
[spkg-install] writing manifest file 'py/kiwisolver.egg-info/SOURCES.txt'
[spkg-install] * Installing packages in isolated environment:
[spkg-install]   - wheel
[spkg-install] * Building wheel...
[spkg-install] running bdist_wheel
[spkg-install] running build
[spkg-install] running build_py
[spkg-install] creating build
[spkg-install] creating build/lib.macosx-10.15-x86_64-cpython-310
[spkg-install] creating build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] copying py/kiwisolver/__init__.py -> 
build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] copying py/kiwisolver/exceptions.py -> 
build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] copying py/kiwisolver/_cext.pyi -> 
build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] copying py/kiwisolver/py.typed -> 
build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] running build_ext
[spkg-install] building 'kiwisolver._cext' extension
[spkg-install] creating build/temp.macosx-10.15-x86_64-cpython-310
[spkg-install] creating build/temp.macosx-10.15-x86_64-cpython-310/py
[spkg-install] creating build/temp.macosx-10.15-x86_64-cpython-310/py/src
[spkg-install] gcc -Wno-unused-result -Wsign-compare -Wunreachable-code 
-fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -g -O2 
-I/private/var/folders/w7/5f55cjjn4s5g04gb_0bzld280000gn/T/build-env-dkf4yuy7/lib/python3.10/site-packages/cppy/include
 -I. 
-I/private/var/folders/w7/5f55cjjn4s5g04gb_0bzld280000gn/T/build-env-dkf4yuy7/include
 
-I/usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10
 -c py/src/constraint.cpp -o 
build/temp.macosx-10.15-x86_64-cpython-310/py/src/constraint.o -std=c++11
[spkg-install] py/src/constraint.cpp:8:10: fatal error: 'algorithm' file not 
found
[spkg-install]     8 | #include <algorithm>
[spkg-install]       |          ^~~~~~~~~~~
[spkg-install] 1 error generated.
[spkg-install] error: command '/usr/bin/gcc' failed with exit code 1
[spkg-install] 
[spkg-install] ERROR Backend subprocess exited when trying to invoke build_wheel
[spkg-install] Warning: building with "python3 -m build --wheel --outdir=dist   
." failed.
[spkg-install] Retrying with "python3 -m build --wheel --outdir=dist 
--no-isolation --skip-dependency-check  .".
[spkg-install] * Building wheel...
[spkg-install] running bdist_wheel
[spkg-install] running build
[spkg-install] running build_py
[spkg-install] copying py/kiwisolver/__init__.py -> 
build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] copying py/kiwisolver/exceptions.py -> 
build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] copying py/kiwisolver/_cext.pyi -> 
build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] copying py/kiwisolver/py.typed -> 
build/lib.macosx-10.15-x86_64-cpython-310/kiwisolver
[spkg-install] running build_ext
[spkg-install] building 'kiwisolver._cext' extension
[spkg-install] gcc -Wno-unused-result -Wsign-compare -Wunreachable-code 
-fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -g -O2 
-I/Users/anne/sage/sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/cppy/include
 -I. -I/Users/anne/sage/sage/local/var/lib/sage/venv-python3.10/include 
-I/usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10
 -c py/src/constraint.cpp -o 
build/temp.macosx-10.15-x86_64-cpython-310/py/src/constraint.o -std=c++11
[spkg-install] py/src/constraint.cpp:8:10: fatal error: 'algorithm' file not 
found
[spkg-install]     8 | #include <algorithm>
[spkg-install]       |          ^~~~~~~~~~~
[spkg-install] 1 error generated.
[spkg-install] error: command '/usr/bin/gcc' failed with exit code 1
[spkg-install] 
[spkg-install] ERROR Backend subprocess exited when trying to invoke build_wheel
[spkg-install] 
********************************************************************************
[spkg-install] Error building a wheel for kiwisolver-1.4.5
[spkg-install] 
********************************************************************************
************************************************************************
Error installing package kiwisolver-1.4.5
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  /Users/anne/sage/sage/logs/pkgs/kiwisolver-1.4.5.log
and
  /Users/anne/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/anne/sage/sage/local/var/lib/sage/venv-python3.10/var/tmp/sage/build/kiwisolver-1.4.5
 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/anne/sage/sage/local/var/lib/sage/venv-python3.10/var/tmp/sage/build/kiwisolver-1.4.5'
 && '/Users/anne/sage/sage/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************

Reply via email to