Macosx 15.1.1  M1 laptop

I probably messed something up with my python setup but I cannot figure out 
what.

It is looking for python 3.11 which I have removed.  

Thank you for any assistance.  This is almost certainly my fault, but I'm 
not sure how to fix it.

-- 
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 visit 
https://groups.google.com/d/msgid/sage-devel/9d217829-b3c1-4bac-a983-f97632f3e0can%40googlegroups.com.
Attempting to download package gmpy2-2.2.0a1.tar.gz from mirrors
https://github.com/sagemath/sage/releases/download/10.6/gmpy2-2.2.0a1.tar.gz
[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
ERROR [transfer|run:135]: [Errno 404] Not Found: 
'//github.com/sagemath/sage/releases/download/10.6/gmpy2-2.2.0a1.tar.gz'
https://github.com/sagemath/sage/releases/download/10.5/gmpy2-2.2.0a1.tar.gz
[......................................................................]
Setting up build directory 
/Users/davideinstein/projects/sage/local/var/lib/sage/venv-python3.11/var/tmp/sage/build/gmpy2-2.2.0a1
No patch files found in ../patches
Host system: Darwin MacBook-Pro.local 24.1.0 Darwin Kernel Version 24.1.0: Thu 
Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000 arm64
C compiler: gcc, Apple clang version 16.0.0 (clang-1600.0.26.4), Target: 
arm64-apple-darwin24.1.0, Thread model: posix, InstalledDir: 
/Library/Developer/CommandLineTools/usr/bin
No stamp file for package 'gmpy2' in 
/Users/davideinstein/projects/sage/local/var/lib/sage/venv-python3.11/var/lib/sage/installed
No spkg-legacy-uninstall script; nothing to do
[spkg-install] Installing gmpy2-2.2.0a1
[spkg-install] * Creating isolated environment: venv+pip...
[spkg-install] * Installing packages in isolated environment:
[spkg-install]   - setuptools>=61
[spkg-install] * Getting build dependencies for wheel...
[spkg-install] running egg_info
[spkg-install] writing gmpy2.egg-info/PKG-INFO
[spkg-install] writing dependency_links to gmpy2.egg-info/dependency_links.txt
[spkg-install] writing requirements to gmpy2.egg-info/requires.txt
[spkg-install] writing top-level names to gmpy2.egg-info/top_level.txt
[spkg-install] reading manifest file 'gmpy2.egg-info/SOURCES.txt'
[spkg-install] reading manifest template 'MANIFEST.in'
[spkg-install] adding license file 'COPYING'
[spkg-install] adding license file 'COPYING.LESSER'
[spkg-install] writing manifest file 'gmpy2.egg-info/SOURCES.txt'
[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-12-x86_64-cpython-311
[spkg-install] creating build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] copying gmpy2/__init__.py -> 
build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] running egg_info
[spkg-install] writing gmpy2.egg-info/PKG-INFO
[spkg-install] writing dependency_links to gmpy2.egg-info/dependency_links.txt
[spkg-install] writing requirements to gmpy2.egg-info/requires.txt
[spkg-install] writing top-level names to gmpy2.egg-info/top_level.txt
[spkg-install] reading manifest file 'gmpy2.egg-info/SOURCES.txt'
[spkg-install] reading manifest template 'MANIFEST.in'
[spkg-install] adding license file 'COPYING'
[spkg-install] adding license file 'COPYING.LESSER'
[spkg-install] writing manifest file 'gmpy2.egg-info/SOURCES.txt'
[spkg-install] copying gmpy2/__init__.pxd -> 
build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] copying gmpy2/gmpy2.h -> 
build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] copying gmpy2/gmpy2.pxd -> 
build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] running build_ext
[spkg-install] building 'gmpy2.gmpy2' extension
[spkg-install] creating build/temp.macosx-12-x86_64-cpython-311
[spkg-install] creating build/temp.macosx-12-x86_64-cpython-311/src
[spkg-install] Compiling with an SDK that doesn't seem to exist: 
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
[spkg-install] Please check your Xcode installation
[spkg-install] gcc -Wsign-compare -Wunreachable-code -fno-common -dynamic 
-DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -g -O2 -I./src 
-I/private/var/folders/js/sdj8l0g52vzf9sr9_hy17y740000gn/T/build-env-0hu3rc6t/include
 
-I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11
 -c src/gmpy2.c -o build/temp.macosx-12-x86_64-cpython-311/src/gmpy2.o 
-DSHARED=1
[spkg-install] clang: warning: no such sysroot directory: 
'/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk' [-Wmissing-sysroot]
[spkg-install] In file included from src/gmpy2.c:513:
[spkg-install] 
/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/Python.h:23:12:
 fatal error: 'stdlib.h' file not found
[spkg-install]    23 | #  include <stdlib.h>
[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 gmpy2/__init__.py -> 
build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] running egg_info
[spkg-install] writing gmpy2.egg-info/PKG-INFO
[spkg-install] writing dependency_links to gmpy2.egg-info/dependency_links.txt
[spkg-install] writing requirements to gmpy2.egg-info/requires.txt
[spkg-install] writing top-level names to gmpy2.egg-info/top_level.txt
[spkg-install] reading manifest file 'gmpy2.egg-info/SOURCES.txt'
[spkg-install] reading manifest template 'MANIFEST.in'
[spkg-install] adding license file 'COPYING'
[spkg-install] adding license file 'COPYING.LESSER'
[spkg-install] writing manifest file 'gmpy2.egg-info/SOURCES.txt'
[spkg-install] copying gmpy2/__init__.pxd -> 
build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] copying gmpy2/gmpy2.h -> 
build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] copying gmpy2/gmpy2.pxd -> 
build/lib.macosx-12-x86_64-cpython-311/gmpy2
[spkg-install] running build_ext
[spkg-install] building 'gmpy2.gmpy2' extension
[spkg-install] Compiling with an SDK that doesn't seem to exist: 
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
[spkg-install] Please check your Xcode installation
[spkg-install] gcc -Wsign-compare -Wunreachable-code -fno-common -dynamic 
-DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -g -O2 -I./src 
-I/Users/davideinstein/projects/sage/local/var/lib/sage/venv-python3.11/include 
-I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11
 -c src/gmpy2.c -o build/temp.macosx-12-x86_64-cpython-311/src/gmpy2.o 
-DSHARED=1
[spkg-install] clang: warning: no such sysroot directory: 
'/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk' [-Wmissing-sysroot]
[spkg-install] In file included from src/gmpy2.c:513:
[spkg-install] 
/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/Python.h:23:12:
 fatal error: 'stdlib.h' file not found
[spkg-install]    23 | #  include <stdlib.h>
[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 gmpy2-2.2.0a1
[spkg-install] 
********************************************************************************
************************************************************************
Error installing package gmpy2-2.2.0a1
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  /Users/davideinstein/projects/sage/logs/pkgs/gmpy2-2.2.0a1.log
and
  /Users/davideinstein/projects/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/davideinstein/projects/sage/local/var/lib/sage/venv-python3.11/var/tmp/sage/build/gmpy2-2.2.0a1
 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/davideinstein/projects/sage/local/var/lib/sage/venv-python3.11/var/tmp/sage/build/gmpy2-2.2.0a1'
 && '/Users/davideinstein/projects/sage/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************

Reply via email to