Hello, I am trying to install sage from source, and I ran into an error.
I am running mac OS version 10.13.4. I'm attaching the log file, it failed to build * package: setuptools-38.2.4.p0 and told me to post / email here. How should I proceed? Best, Sachi -- 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.
Cleaning up PYTHONPATH: Old: "//Applications/sage-8.2/local" New: "/Applications/sage-8.2/local" Found local metadata for setuptools-38.2.4.p0 Using cached file //Applications/sage-8.2/upstream/setuptools-38.2.4.zip setuptools-38.2.4.p0 ==================================================== Setting up build directory for setuptools-38.2.4.p0 Finished extraction Applying patches from ../patches... Applying ../patches/easy_install_lock.patch patching file setuptools/command/easy_install.py Hunk #1 succeeded at 1584 (offset 138 lines). Hunk #2 succeeded at 1622 with fuzz 1 (offset 138 lines). Hunk #3 succeeded at 1641 with fuzz 2 (offset 131 lines). **************************************************** Host system: Darwin Sachis-MacBook-Pro.local 17.5.0 Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64 **************************************************** C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/Applications/sage-8.2/local/bin/../libexec/gcc/x86_64-apple-darwin17.5.0/7.2.0/lto-wrapper Target: x86_64-apple-darwin17.5.0 Configured with: ../src/configure --prefix=//Applications/sage-8.2/local --with-local-prefix=//Applications/sage-8.2/local --with-gmp=//Applications/sage-8.2/local --with-mpfr=//Applications/sage-8.2/local --with-mpc=//Applications/sage-8.2/local --with-system-zlib --disable-multilib --disable-nls --enable-languages=c,c++,fortran --disable-libitm --with-build-config=bootstrap-debug --without-isl --without-cloog Thread model: posix gcc version 7.2.0 (GCC) **************************************************** running install running build running build_py creating build creating build/lib copying easy_install.py -> build/lib creating build/lib/setuptools copying setuptools/ssl_support.py -> build/lib/setuptools copying setuptools/windows_support.py -> build/lib/setuptools copying setuptools/package_index.py -> build/lib/setuptools copying setuptools/archive_util.py -> build/lib/setuptools copying setuptools/py36compat.py -> build/lib/setuptools copying setuptools/config.py -> build/lib/setuptools copying setuptools/version.py -> build/lib/setuptools copying setuptools/py31compat.py -> build/lib/setuptools copying setuptools/depends.py -> build/lib/setuptools copying setuptools/py27compat.py -> build/lib/setuptools copying setuptools/__init__.py -> build/lib/setuptools copying setuptools/glob.py -> build/lib/setuptools copying setuptools/sandbox.py -> build/lib/setuptools copying setuptools/launch.py -> build/lib/setuptools copying setuptools/extension.py -> build/lib/setuptools copying setuptools/unicode_utils.py -> build/lib/setuptools copying setuptools/monkey.py -> build/lib/setuptools copying setuptools/pep425tags.py -> build/lib/setuptools copying setuptools/build_meta.py -> build/lib/setuptools copying setuptools/dep_util.py -> build/lib/setuptools copying setuptools/site-patch.py -> build/lib/setuptools copying setuptools/msvc.py -> build/lib/setuptools copying setuptools/dist.py -> build/lib/setuptools copying setuptools/lib2to3_ex.py -> build/lib/setuptools copying setuptools/glibc.py -> build/lib/setuptools copying setuptools/py33compat.py -> build/lib/setuptools copying setuptools/wheel.py -> build/lib/setuptools copying setuptools/namespaces.py -> build/lib/setuptools creating build/lib/pkg_resources copying pkg_resources/py31compat.py -> build/lib/pkg_resources copying pkg_resources/__init__.py -> build/lib/pkg_resources creating build/lib/setuptools/command copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command copying setuptools/command/alias.py -> build/lib/setuptools/command copying setuptools/command/py36compat.py -> build/lib/setuptools/command copying setuptools/command/build_ext.py -> build/lib/setuptools/command copying setuptools/command/easy_install.py -> build/lib/setuptools/command copying setuptools/command/install_scripts.py -> build/lib/setuptools/command copying setuptools/command/upload.py -> build/lib/setuptools/command copying setuptools/command/register.py -> build/lib/setuptools/command copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command copying setuptools/command/dist_info.py -> build/lib/setuptools/command copying setuptools/command/install_lib.py -> build/lib/setuptools/command copying setuptools/command/upload_docs.py -> build/lib/setuptools/command copying setuptools/command/build_py.py -> build/lib/setuptools/command copying setuptools/command/__init__.py -> build/lib/setuptools/command copying setuptools/command/sdist.py -> build/lib/setuptools/command copying setuptools/command/test.py -> build/lib/setuptools/command copying setuptools/command/saveopts.py -> build/lib/setuptools/command copying setuptools/command/bdist_rpm.py -> build/lib/setuptools/command copying setuptools/command/build_clib.py -> build/lib/setuptools/command copying setuptools/command/egg_info.py -> build/lib/setuptools/command copying setuptools/command/install.py -> build/lib/setuptools/command copying setuptools/command/develop.py -> build/lib/setuptools/command copying setuptools/command/rotate.py -> build/lib/setuptools/command copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command copying setuptools/command/setopt.py -> build/lib/setuptools/command creating build/lib/setuptools/extern copying setuptools/extern/__init__.py -> build/lib/setuptools/extern creating build/lib/pkg_resources/_vendor copying pkg_resources/_vendor/__init__.py -> build/lib/pkg_resources/_vendor copying pkg_resources/_vendor/appdirs.py -> build/lib/pkg_resources/_vendor copying pkg_resources/_vendor/six.py -> build/lib/pkg_resources/_vendor copying pkg_resources/_vendor/pyparsing.py -> build/lib/pkg_resources/_vendor creating build/lib/pkg_resources/extern copying pkg_resources/extern/__init__.py -> build/lib/pkg_resources/extern creating build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/version.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/__init__.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/utils.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/requirements.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/_structures.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/markers.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/__about__.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/_compat.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/specifiers.py -> build/lib/pkg_resources/_vendor/packaging copying setuptools/script (dev).tmpl -> build/lib/setuptools copying setuptools/script.tmpl -> build/lib/setuptools copying setuptools/cli-64.exe -> build/lib/setuptools copying setuptools/gui-64.exe -> build/lib/setuptools copying setuptools/cli.exe -> build/lib/setuptools copying setuptools/cli-32.exe -> build/lib/setuptools copying setuptools/gui-32.exe -> build/lib/setuptools copying setuptools/gui.exe -> build/lib/setuptools copying setuptools/command/launcher manifest.xml -> build/lib/setuptools/command running install_lib copying build/lib/easy_install.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages creating /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/ssl_support.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/windows_support.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/package_index.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/archive_util.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/py36compat.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/config.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/version.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/py31compat.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/cli-64.exe -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/gui-64.exe -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/depends.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/py27compat.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/__init__.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/glob.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/sandbox.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/script.tmpl -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/launch.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/extension.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/unicode_utils.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/monkey.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/pep425tags.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/build_meta.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/cli.exe -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/dep_util.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools creating /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/bdist_egg.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/alias.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/py36compat.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/build_ext.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/easy_install.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/launcher manifest.xml -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/install_scripts.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/upload.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/register.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/bdist_wininst.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/dist_info.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/install_lib.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/upload_docs.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/build_py.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/__init__.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/sdist.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/test.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/saveopts.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/bdist_rpm.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/build_clib.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/egg_info.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/install.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/develop.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/rotate.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/install_egg_info.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/command/setopt.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/command copying build/lib/setuptools/site-patch.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/msvc.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/cli-32.exe -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools creating /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/extern copying build/lib/setuptools/extern/__init__.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools/extern copying build/lib/setuptools/gui-32.exe -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/gui.exe -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/dist.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/lib2to3_ex.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/glibc.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/py33compat.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/wheel.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/namespaces.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools copying build/lib/setuptools/script (dev).tmpl -> /Applications/sage-8.2/local/lib/python2.7/site-packages/setuptools creating /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources creating /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor creating /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/version.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/__init__.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/utils.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/requirements.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/_structures.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/markers.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/__about__.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/_compat.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/packaging/specifiers.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging copying build/lib/pkg_resources/_vendor/__init__.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor copying build/lib/pkg_resources/_vendor/appdirs.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor copying build/lib/pkg_resources/_vendor/six.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor copying build/lib/pkg_resources/_vendor/pyparsing.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/_vendor copying build/lib/pkg_resources/py31compat.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources copying build/lib/pkg_resources/__init__.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources creating /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/extern copying build/lib/pkg_resources/extern/__init__.py -> /Applications/sage-8.2/local/lib/python2.7/site-packages/pkg_resources/extern Traceback (most recent call last): File "setup.py", line 187, in <module> dist = setuptools.setup(**setup_params) File "/Applications/sage-8.2/local/var/tmp/sage/build/setuptools-38.2.4.p0/src/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "//Applications/sage-8.2/local/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "//Applications/sage-8.2/local/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "//Applications/sage-8.2/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Applications/sage-8.2/local/var/tmp/sage/build/setuptools-38.2.4.p0/src/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "//Applications/sage-8.2/local/lib/python2.7/distutils/command/install.py", line 575, in run self.run_command(cmd_name) File "//Applications/sage-8.2/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "//Applications/sage-8.2/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Applications/sage-8.2/local/var/tmp/sage/build/setuptools-38.2.4.p0/src/setuptools/command/install_lib.py", line 15, in run self.byte_compile(outfiles) File "//Applications/sage-8.2/local/lib/python2.7/distutils/command/install_lib.py", line 138, in byte_compile dry_run=self.dry_run) File "//Applications/sage-8.2/local/lib/python2.7/distutils/util.py", line 454, in byte_compile % (file, prefix)) ValueError: invalid prefix: filename '/Applications/sage-8.2/local/lib/python2.7/site-packages/easy_install.py' doesn't start with '//Applications/sage-8.2/local/var/tmp/sage/build/setuptools-38.2.4.p0/inst' ******************************************************************************** Error building / installing setuptools for Python 2 ******************************************************************************** real 0m0.419s user 0m0.236s sys 0m0.168s ************************************************************************ Error installing package setuptools-38.2.4.p0 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the log file //Applications/sage-8.2/logs/pkgs/setuptools-38.2.4.p0.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to //Applications/sage-8.2/local/var/tmp/sage/build/setuptools-38.2.4.p0 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 '//Applications/sage-8.2/local/var/tmp/sage/build/setuptools-38.2.4.p0' && '//Applications/sage-8.2/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************