I just encountered this problem on my system as well. Somehow the installation of `setuptools_scm` had disappeared even though the installation record in local/var/lib/sage/installed was still there. `sage -f setuptools_scm` corrected this.
On Wednesday, September 23, 2020 at 12:57:30 PM UTC-7 Matthias Köppe wrote: > This is likely from the most recent setuptools upgrade. > > Try if https://trac.sagemath.org/ticket/29500 fixes this for you. > > On Wednesday, September 23, 2020 at 2:58:38 AM UTC-7 > [email protected] wrote: > >> On ubuntu bionic incremental build of and dateutils fail. >> >> Those are the logs: >> >> Found local metadata for zipp-0.5.2 >> 2 Attempting to download package zipp-0.5.2.tar.gz from mirrors >> 3 >> https://mirror.koddos.net/sagemath/spkg/upstream/zipp/zipp-0.5.2.tar.gz >> 4 >> [......................................................................] >> 5 zipp-0.5.2 >> 6 ==================================================== >> 7 Setting up build directory for zipp-0.5.2 >> 8 Finished extraction >> 9 No patch files found in ../patches >> 10 **************************************************** >> 11 Host system: >> 12 Linux kliem-ThinkPad-L570 4.15.0-115-generic #116-Ubuntu SMP Wed Aug >> 26 14:04:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux >> 13 **************************************************** >> 14 C compiler: gcc >> 15 C compiler version: >> 16 Using built-in specs. >> 17 COLLECT_GCC=gcc >> 18 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper >> 19 OFFLOAD_TARGET_NAMES=nvptx-none >> 20 OFFLOAD_TARGET_DEFAULT=1 >> 21 Target: x86_64-linux-gnu >> 22 Configured with: ../src/configure -v --with-pkgversion='Ubuntu >> 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs >> --enable-languages=c,ada,c++,go,brig +++,d,fortran,objc,obj-c++ >> --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 >> --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id >> --libexe +++cdir=/usr/lib --without-included-gettext >> --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap >> --enable-clocale=gnu --enable-libstdcxx-debug --enable-lib >> +++stdcxx-time=yes --with-default-libstdcxx-abi=new >> --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx >> --enable-plugin --enable-default-pie --with-system-zlib >> +++--with-target-system-zlib --enable-objc-gc=auto --enable-multiarch >> --disable-werror --with-arch-32=i686 --with-abi=m64 >> --with-multilib-list=m32,m64,mx32 --enable-multilib - >> +++-with-tune=generic --enable-offload-targets=nvptx-none >> --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu >> --host=x86_64-linux-gnu --target=x86_64-linu +++x-gnu >> 23 Thread model: posix >> 24 gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) >> 25 **************************************************** >> 26 Package 'zipp' is currently not installed >> 27 No legacy uninstaller found for 'zipp'; nothing to do >> 28 Installing zipp-0.5.2 >> 29 WARNING: Retrying (Retry(total=4, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCo >> +++nnection object at 0x7fd0fc6899d0>, 'Connection to 192.0.2.0 timed out. >> (connect timeout=15)')': /simple/setuptools-scm/ >> 30 WARNING: Retrying (Retry(total=3, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCo >> +++nnection object at 0x7fd0fc6b4150>, 'Connection to 192.0.2.0 timed out. >> (connect timeout=15)')': /simple/setuptools-scm/ >> 31 WARNING: Retrying (Retry(total=2, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCo >> +++nnection object at 0x7fd0fc6b42d0>, 'Connection to 192.0.2.0 timed out. >> (connect timeout=15)')': /simple/setuptools-scm/ >> 32 WARNING: Retrying (Retry(total=1, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCo >> +++nnection object at 0x7fd0fc6b4490>, 'Connection to 192.0.2.0 timed out. >> (connect timeout=15)')': /simple/setuptools-scm/ >> 33 WARNING: Retrying (Retry(total=0, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCo >> +++nnection object at 0x7fd0fc6b4650>, 'Connection to 192.0.2.0 timed out. >> (connect timeout=15)')': /simple/setuptools-scm/ >> 34 ERROR: Could not find a version that satisfies the requirement >> setuptools_scm>=1.15.0 (from versions: none) >> 35 ERROR: No matching distribution found for setuptools_scm>=1.15.0 >> 36 Traceback (most recent call last): >> 37 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/installer.py", >> >> line 128, in fetch_build_egg >> 38 subprocess.check_call(cmd) >> 39 File "/usr/lib/python3.7/subprocess.py", line 363, in check_call >> 40 raise CalledProcessError(retcode, cmd) >> 41 subprocess.CalledProcessError: Command >> '['/home/jonathan/Applications/sage/local/bin/python3', '-m', 'pip', >> '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tm >> +++ph9pgk8lv', '--quiet', 'setuptools_scm>=1.15.0']' returned non-zero exit >> status 1. >> 42 >> 43 The above exception was the direct cause of the following exception: >> 44 >> 45 Traceback (most recent call last): >> 46 File "setup.py", line 6, in <module> >> 47 setuptools.setup(use_scm_version=True) >> 48 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/__init__.py", >> >> line 162, in setup >> 49 _install_setup_requires(attrs) >> 50 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/__init__.py", >> >> line 157, in _install_setup_requires >> 51 dist.fetch_build_eggs(dist.setup_requires) >> 52 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/dist.py", >> >> line 702, in fetch_build_eggs >> 53 replace_conflicting=True, >> 54 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/pkg_resources/__init__.py", >> >> line 781, in resolve >> 55 replace_conflicting=replace_conflicting >> 56 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/pkg_resources/__init__.py", >> >> line 1064, in best_match >> 57 return self.obtain(req, installer) >> 58 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/pkg_resources/__init__.py", >> >> line 1076, in obtain >> 59 return installer(requirement) >> 60 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/dist.py", >> >> line 758, in fetch_build_egg >> 61 return fetch_build_egg(self, req) >> 62 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/installer.py", >> >> line 130, in fetch_build_egg >> 63 raise DistutilsError(str(e)) from e >> 64 distutils.errors.DistutilsError: Command >> '['/home/jonathan/Applications/sage/local/bin/python3', '-m', 'pip', >> '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/ >> +++tmph9pgk8lv', '--quiet', 'setuptools_scm>=1.15.0']' returned non-zero >> exit status 1. >> 65 Error: could not determine package name >> 66 >> ******************************************************************************************************************************************************************************* >> >> +++***** >> 67 Error installing zipp-0.5.2 >> 68 >> ******************************************************************************************************************************************************************************* >> >> +++***** >> 69 >> 70 real 1m38.874s >> 71 user 0m1.090s >> 72 sys 0m0.118s >> >> 631 Found local metadata for dateutil-2.8.1 >> 632 Using cached file >> /home/jonathan/Applications/sage/upstream/python-dateutil-2.8.1.tar.gz >> 633 dateutil-2.8.1 >> 634 ==================================================== >> 635 Setting up build directory for dateutil-2.8.1 >> 636 Finished extraction >> 637 No patch files found in ../patches >> 638 **************************************************** >> 639 Host system: >> 640 Linux kliem-ThinkPad-L570 4.15.0-117-generic #118-Ubuntu SMP Fri Sep >> 4 20:02:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux >> 641 **************************************************** >> 642 C compiler: gcc >> 643 C compiler version: >> 644 Using built-in specs. >> 645 COLLECT_GCC=gcc >> 646 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper >> 647 OFFLOAD_TARGET_NAMES=nvptx-none >> 648 OFFLOAD_TARGET_DEFAULT=1 >> 649 Target: x86_64-linux-gnu >> 650 Configured with: ../src/configure -v --with-pkgversion='Ubuntu >> 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs >> --enable-languages=c,ada,c++,go,brig, +++d,fortran,objc,obj-c++ >> --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 >> --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id >> --libexecd +++ir=/usr/lib --without-included-gettext >> --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap >> --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstd >> +++cxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object >> --disable-vtable-verify --enable-libmpx --enable-plugin >> --enable-default-pie --with-system-zlib --wi +++th-target-system-zlib >> --enable-objc-gc=auto --enable-multiarch --disable-werror >> --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 >> --enable-multilib --with +++-tune=generic >> --enable-offload-targets=nvptx-none --without-cuda-driver >> --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu >> --target=x86_64-linux-gnu >> 651 Thread model: posix >> 652 gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) >> 653 **************************************************** >> 654 Package 'dateutil' is currently not installed >> 655 No legacy uninstaller found for 'dateutil'; nothing to do >> 656 Installing dateutil-2.8.1 >> 657 WARNING: Retrying (Retry(total=4, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCon +++nection >> object at 0x7ffa11077150>, 'Connection to 192.0.2.0 timed out. (connect >> timeout=15)')': /simple/setuptools-scm/ >> 658 WARNING: Retrying (Retry(total=3, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCon +++nection >> object at 0x7ffa11077950>, 'Connection to 192.0.2.0 timed out. (connect >> timeout=15)')': /simple/setuptools-scm/ >> 659 WARNING: Retrying (Retry(total=2, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCon +++nection >> object at 0x7ffa11077a10>, 'Connection to 192.0.2.0 timed out. (connect >> timeout=15)')': /simple/setuptools-scm/ >> 660 WARNING: Retrying (Retry(total=1, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCon +++nection >> object at 0x7ffa110779d0>, 'Connection to 192.0.2.0 timed out. (connect >> timeout=15)')': /simple/setuptools-scm/ >> 661 WARNING: Retrying (Retry(total=0, connect=None, read=None, >> redirect=None, status=None)) after connection broken by >> 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSCon +++nection >> object at 0x7ffa11077dd0>, 'Connection to 192.0.2.0 timed out. (connect >> timeout=15)')': /simple/setuptools-scm/ >> 662 ERROR: Could not find a version that satisfies the requirement >> setuptools_scm (from versions: none) >> 663 ERROR: No matching distribution found for setuptools_scm >> 664 Traceback (most recent call last): >> 665 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/installer.py", >> >> line 128, in fetch_build_egg >> 666 subprocess.check_call(cmd) >> 667 File "/usr/lib/python3.7/subprocess.py", line 363, in check_call >> 668 raise CalledProcessError(retcode, cmd) >> 669 subprocess.CalledProcessError: Command >> '['/home/jonathan/Applications/sage/local/bin/python3', '-m', 'pip', >> '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp >> +++tokz6a75', '--quiet', 'setuptools_scm']' returned non-zero exit status 1. >> >> >> >> 597,29 92% >> >> 670 >> 671 The above exception was the direct cause of the following exception: >> 672 >> 673 Traceback (most recent call last): >> 674 File "setup.py", line 56, in <module> >> 675 "test": Unsupported >> 676 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/__init__.py", >> >> line 162, in setup >> 677 _install_setup_requires(attrs) >> 678 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/__init__.py", >> >> line 157, in _install_setup_requires >> 679 dist.fetch_build_eggs(dist.setup_requires) >> 680 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/dist.py", >> >> line 702, in fetch_build_eggs >> 681 replace_conflicting=True, >> 682 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/pkg_resources/__init__.py", >> >> line 781, in resolve >> 683 replace_conflicting=replace_conflicting >> 684 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/pkg_resources/__init__.py", >> >> line 1064, in best_match >> 685 return self.obtain(req, installer) >> 686 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/pkg_resources/__init__.py", >> >> line 1076, in obtain >> 687 return installer(requirement) >> 688 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/dist.py", >> >> line 758, in fetch_build_egg >> 689 return fetch_build_egg(self, req) >> 690 File >> "/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/setuptools/installer.py", >> >> line 130, in fetch_build_egg >> 691 raise DistutilsError(str(e)) from e >> 692 distutils.errors.DistutilsError: Command >> '['/home/jonathan/Applications/sage/local/bin/python3', '-m', 'pip', >> '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/t >> +++mptokz6a75', '--quiet', 'setuptools_scm']' returned non-zero exit status >> 1. >> 693 Error: could not determine package name >> 694 >> ******************************************************************************************************************************************************************************** >> >> +++**** >> 695 Error installing dateutil-2.8.1 >> 696 >> ******************************************************************************************************************************************************************************** >> >> +++**** >> 697 >> 698 real 1m39.559s >> 699 user 0m1.487s >> 700 sys 0m0.162s >> 701 >> ************************************************************************ >> 702 Error installing package dateutil-2.8.1 >> 703 >> ************************************************************************ >> 704 Please email sage-devel (http://groups.google.com/group/sage-devel) >> 705 explaining the problem and including the log file >> 706 /home/jonathan/Applications/sage/logs/pkgs/dateutil-2.8.1.log >> 707 Describe your computer, operating system, etc. >> 708 If you want to try to fix the problem yourself, *don't* just cd to >> 709 >> /home/jonathan/Applications/sage/local/var/tmp/sage/build/dateutil-2.8.1 >> and type 'make' or whatever is appropriate. >> 710 Instead, the following commands setup all environment variables >> 711 correctly and load a subshell for you to debug the error: >> 712 (cd >> '/home/jonathan/Applications/sage/local/var/tmp/sage/build/dateutil-2.8.1' >> && '/home/jonathan/Applications/sage/sage' --buildsh) >> 713 When you are done debugging, you can type "exit" to leave the >> subshell. >> 714 >> ************************************************************************ >> >> >> >> 714,29 Bot >> >> Sébastien Labbé schrieb am Dienstag, 22. September 2020 um 22:53:56 UTC+2: >> >>> >>>> I copy paste below the failures: >>>> >>> >>> Just created tickets #30632 to #30638 to deal with the doctest failures >>> I reported earlier. >>> Follow up at https://trac.sagemath.org/ticket/25536 >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/127abeb6-35ef-4ba8-bf6d-cc250738e233n%40googlegroups.com.
