On Mon, Feb 18, 2019 at 11:37 PM John H Palmieri <jhpalmier...@gmail.com> wrote: > > On one of my machines running OS X Mojave, when I run 'make', the pip > installation fails, saying > > ModuleNotFoundError: No module named 'zlib' > > That's when the solution is > > ./sage -f zlib python2 python3 > make > so this points at inability of Pythons to use system's zlib module on Mojave, even though it's apparently perfectly functional...
internet says one should run xcode-select --install sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / to make the headers available. (cf e.g. https://github.com/pyenv/pyenv/issues/1219) Are you saying this particular strain of tsores known as OSX 10.14 is resistant to these spells on this particular box? I think we really should look into using Homebrew for building on OSX, otherwise we are doomed to repeat what's done there... > > On Monday, February 18, 2019 at 12:58:19 PM UTC-8, John H Palmieri wrote: >> >> At this point you should probably do 'make distclean' and start again. There >> should be no need to do 'sage --sh' and easy_install, and that could easily >> mess things up. >> >> >> >> On Monday, February 18, 2019 at 12:29:20 PM UTC-8, Andrew wrote: >>> >>> >>> >>> On Tuesday, 19 February 2019 03:44:02 UTC+11, John H Palmieri wrote: >>>> >>>> Can you post the end of the file logs/pkgs/pip-18.1.log? The last 30 lines >>>> or so? Or post the whole file if you can. >>>> >>> The log from after the failed make is s below. It says that >>> No record that 'pip' was ever installed; skipping uninstall >>> I've tried going into the sage sh and using easy_install 2-7 and 3.6 to >>> install pip (as in >>> https://groups.google.com/forum/#!topic/sage-release/XUYlh2DHP9E) and then >>> running make but, again, I end up with pip-18.1 not installed. The problem >>> seems to be that I have pip-19.0.2: >>> >>> local/bin/pip --version >>> pip 19.0.2 from >>> /usr/local/src/sage/local/lib/python2.7/site-packages/pip-19.0.2-py2.7.egg/pip >>> (python 2.7) >>> >>> ----install log for pip >>> >>> Found local metadata for pip-18.1 >>> Using cached file /usr/local/src/sage/upstream/pip-18.1.tar.gz >>> pip-18.1 >>> ==================================================== >>> Setting up build directory for pip-18.1 >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 >>> Finished extraction >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> No patch files found in ../patches >>> **************************************************** >>> Host system: >>> Darwin MacAndrew.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 >>> 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64 >>> **************************************************** >>> C compiler: gcc >>> C compiler version: >>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>> Apple LLVM version 10.0.0 (clang-1000.11.45.5) >>> Target: x86_64-apple-darwin18.2.0 >>> Thread model: posix >>> InstalledDir: >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> **************************************************** >>> No record that 'pip' was ever installed; skipping uninstall >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> /usr/local/src/sage/local/bin/python3: No module named pip >>> ******************************************************************************** >>> Error building / installing pip3 >>> ******************************************************************************** >>> >>> real 0.096 user 0.054 sys 0.033 pcpu 90.38 >>> >>> ************************************************************************ >>> Error installing package pip-18.1 >>> ************************************************************************ >>> Please email sage-devel (http://groups.google.com/group/sage-devel) >>> explaining the problem and including the log file >>> /usr/local/src/sage/logs/pkgs/pip-18.1.log >>> Describe your computer, operating system, etc. >>> If you want to try to fix the problem yourself, *don't* just cd to >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 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 '/usr/local/src/sage/local/var/tmp/sage/build/pip-18.1' && >>> '/usr/local/src/sage/sage' --sh) >>> When you are done debugging, you can type "exit" to leave the subshell. >>> ************************************************************************ >>> Found local metadata for pip-18.1 >>> Using cached file /usr/local/src/sage/upstream/pip-18.1.tar.gz >>> pip-18.1 >>> ==================================================== >>> Setting up build directory for pip-18.1 >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 >>> Finished extraction >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> No patch files found in ../patches >>> **************************************************** >>> Host system: >>> Darwin MacAndrew.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 >>> 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64 >>> **************************************************** >>> C compiler: gcc >>> C compiler version: >>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>> Apple LLVM version 10.0.0 (clang-1000.11.45.5) >>> Target: x86_64-apple-darwin18.2.0 >>> Thread model: posix >>> InstalledDir: >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> **************************************************** >>> No record that 'pip' was ever installed; skipping uninstall >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> /usr/local/src/sage/local/bin/python3: No module named pip >>> ******************************************************************************** >>> Error building / installing pip3 >>> ******************************************************************************** >>> >>> real 0.097 user 0.053 sys 0.036 pcpu 91.13 >>> >>> ************************************************************************ >>> Error installing package pip-18.1 >>> ************************************************************************ >>> Please email sage-devel (http://groups.google.com/group/sage-devel) >>> explaining the problem and including the log file >>> /usr/local/src/sage/logs/pkgs/pip-18.1.log >>> Describe your computer, operating system, etc. >>> If you want to try to fix the problem yourself, *don't* just cd to >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 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 '/usr/local/src/sage/local/var/tmp/sage/build/pip-18.1' && >>> '/usr/local/src/sage/sage' --sh) >>> When you are done debugging, you can type "exit" to leave the subshell. >>> ************************************************************************ >>> Found local metadata for pip-18.1 >>> Using cached file /usr/local/src/sage/upstream/pip-18.1.tar.gz >>> pip-18.1 >>> ==================================================== >>> Setting up build directory for pip-18.1 >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 >>> Finished extraction >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> No patch files found in ../patches >>> **************************************************** >>> Host system: >>> Darwin MacAndrew.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 >>> 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64 >>> **************************************************** >>> C compiler: gcc >>> C compiler version: >>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>> Apple LLVM version 10.0.0 (clang-1000.11.45.5) >>> Target: x86_64-apple-darwin18.2.0 >>> Thread model: posix >>> InstalledDir: >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> **************************************************** >>> No record that 'pip' was ever installed; skipping uninstall >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> /usr/local/src/sage/local/bin/python3: No module named pip >>> ******************************************************************************** >>> Error building / installing pip3 >>> ******************************************************************************** >>> >>> real 0.144 user 0.056 sys 0.049 pcpu 72.87 >>> >>> ************************************************************************ >>> Error installing package pip-18.1 >>> ************************************************************************ >>> Please email sage-devel (http://groups.google.com/group/sage-devel) >>> explaining the problem and including the log file >>> /usr/local/src/sage/logs/pkgs/pip-18.1.log >>> Describe your computer, operating system, etc. >>> If you want to try to fix the problem yourself, *don't* just cd to >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 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 '/usr/local/src/sage/local/var/tmp/sage/build/pip-18.1' && >>> '/usr/local/src/sage/sage' --sh) >>> When you are done debugging, you can type "exit" to leave the subshell. >>> ************************************************************************ >>> Found local metadata for pip-18.1 >>> Using cached file /usr/local/src/sage/upstream/pip-18.1.tar.gz >>> pip-18.1 >>> ==================================================== >>> Setting up build directory for pip-18.1 >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 >>> Finished extraction >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> No patch files found in ../patches >>> **************************************************** >>> Host system: >>> Darwin MacAndrew.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 >>> 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64 >>> **************************************************** >>> C compiler: gcc >>> C compiler version: >>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>> Apple LLVM version 10.0.0 (clang-1000.11.45.5) >>> Target: x86_64-apple-darwin18.2.0 >>> Thread model: posix >>> InstalledDir: >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> **************************************************** >>> No record that 'pip' was ever installed; skipping uninstall >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> /usr/local/src/sage/local/bin/python3: No module named pip >>> ******************************************************************************** >>> Error building / installing pip3 >>> ******************************************************************************** >>> >>> real 0.098 user 0.053 sys 0.038 pcpu 92.82 >>> >>> ************************************************************************ >>> Error installing package pip-18.1 >>> ************************************************************************ >>> Please email sage-devel (http://groups.google.com/group/sage-devel) >>> explaining the problem and including the log file >>> /usr/local/src/sage/logs/pkgs/pip-18.1.log >>> Describe your computer, operating system, etc. >>> If you want to try to fix the problem yourself, *don't* just cd to >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 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 '/usr/local/src/sage/local/var/tmp/sage/build/pip-18.1' && >>> '/usr/local/src/sage/sage' --sh) >>> When you are done debugging, you can type "exit" to leave the subshell. >>> ************************************************************************ >>> Found local metadata for pip-18.1 >>> Using cached file /usr/local/src/sage/upstream/pip-18.1.tar.gz >>> pip-18.1 >>> ==================================================== >>> Setting up build directory for pip-18.1 >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 >>> Finished extraction >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> No patch files found in ../patches >>> **************************************************** >>> Host system: >>> Darwin MacAndrew.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 >>> 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64 >>> **************************************************** >>> C compiler: gcc >>> C compiler version: >>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>> Apple LLVM version 10.0.0 (clang-1000.11.45.5) >>> Target: x86_64-apple-darwin18.2.0 >>> Thread model: posix >>> InstalledDir: >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> **************************************************** >>> No record that 'pip' was ever installed; skipping uninstall >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> /usr/local/src/sage/local/bin/python3: No module named pip >>> ******************************************************************************** >>> Error building / installing pip3 >>> ******************************************************************************** >>> >>> real 0.122 user 0.049 sys 0.038 pcpu 72.04 >>> >>> ************************************************************************ >>> Error installing package pip-18.1 >>> ************************************************************************ >>> Please email sage-devel (http://groups.google.com/group/sage-devel) >>> explaining the problem and including the log file >>> /usr/local/src/sage/logs/pkgs/pip-18.1.log >>> Describe your computer, operating system, etc. >>> If you want to try to fix the problem yourself, *don't* just cd to >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 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 '/usr/local/src/sage/local/var/tmp/sage/build/pip-18.1' && >>> '/usr/local/src/sage/sage' --sh) >>> When you are done debugging, you can type "exit" to leave the subshell. >>> ************************************************************************ >>> Found local metadata for pip-18.1 >>> Using cached file /usr/local/src/sage/upstream/pip-18.1.tar.gz >>> pip-18.1 >>> ==================================================== >>> Setting up build directory for pip-18.1 >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 >>> Finished extraction >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> No patch files found in ../patches >>> **************************************************** >>> Host system: >>> Darwin MacAndrew.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 >>> 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64 >>> **************************************************** >>> C compiler: gcc >>> C compiler version: >>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>> Apple LLVM version 10.0.0 (clang-1000.11.45.5) >>> Target: x86_64-apple-darwin18.2.0 >>> Thread model: posix >>> InstalledDir: >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> **************************************************** >>> No record that 'pip' was ever installed; skipping uninstall >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> /usr/local/src/sage/local/bin/python3: No module named pip >>> ******************************************************************************** >>> Error building / installing pip3 >>> ******************************************************************************** >>> >>> real 0.080 user 0.045 sys 0.028 pcpu 91.32 >>> >>> ************************************************************************ >>> Error installing package pip-18.1 >>> ************************************************************************ >>> Please email sage-devel (http://groups.google.com/group/sage-devel) >>> explaining the problem and including the log file >>> /usr/local/src/sage/logs/pkgs/pip-18.1.log >>> Describe your computer, operating system, etc. >>> If you want to try to fix the problem yourself, *don't* just cd to >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 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 '/usr/local/src/sage/local/var/tmp/sage/build/pip-18.1' && >>> '/usr/local/src/sage/sage' --sh) >>> When you are done debugging, you can type "exit" to leave the subshell. >>> ************************************************************************ >>> Found local metadata for pip-18.1 >>> Using cached file /usr/local/src/sage/upstream/pip-18.1.tar.gz >>> pip-18.1 >>> ==================================================== >>> Setting up build directory for pip-18.1 >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 >>> Finished extraction >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> No patch files found in ../patches >>> **************************************************** >>> Host system: >>> Darwin MacAndrew.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 >>> 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64 >>> **************************************************** >>> C compiler: gcc >>> C compiler version: >>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>> Apple LLVM version 10.0.0 (clang-1000.11.45.5) >>> Target: x86_64-apple-darwin18.2.0 >>> Thread model: posix >>> InstalledDir: >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> **************************************************** >>> No record that 'pip' was ever installed; skipping uninstall >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1/src >>> /usr/local/src/sage/local/bin/python3: No module named pip >>> ******************************************************************************** >>> Error building / installing pip3 >>> ******************************************************************************** >>> >>> real 0.094 user 0.050 sys 0.036 pcpu 90.92 >>> >>> ************************************************************************ >>> Error installing package pip-18.1 >>> ************************************************************************ >>> Please email sage-devel (http://groups.google.com/group/sage-devel) >>> explaining the problem and including the log file >>> /usr/local/src/sage/logs/pkgs/pip-18.1.log >>> Describe your computer, operating system, etc. >>> If you want to try to fix the problem yourself, *don't* just cd to >>> /usr/local/src/sage/local/var/tmp/sage/build/pip-18.1 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 '/usr/local/src/sage/local/var/tmp/sage/build/pip-18.1' && >>> '/usr/local/src/sage/sage' --sh) >>> When you are done debugging, you can type "exit" to leave the subshell. >>> ************************************************************************ >>> > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.