Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 822537

Summary: dev-python/snakeoil-0.9.7 with dev-python/setuptools-60 - ImportError: cannot import name install from setuptools._distutils.command (/usr/lib/python3.9/site-pa
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED FIXED    
Severity: normal CC: floppym, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/pkgcore/snakeoil/pull/63
https://github.com/pkgcore/pkgcheck/pull/357
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 822354    
Attachments: emerge-info.txt
dev-python:snakeoil-0.9.7:20211109-052906.log
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-11-09 08:17:06 UTC
  File "/usr/lib/python3.9/site-packages/setuptools/command/install.py", line 6, in <module>
    import distutils.command.install as orig
ImportError: cannot import name 'install' from 'setuptools._distutils.command' (/usr/lib/python3.9/site-packages/setuptools/_distutils/command/__init__.py)
 * ERROR: dev-python/snakeoil-0.9.7::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-j4-20211108-155141

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit b7d9ade0b35c10d18807c6cf7537b7d2a3beadf4
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 8 22:51:43 2021 +0000

    2021-11-08 22:51:40 UTC

emerge -qpvO dev-python/snakeoil
[ebuild  N    ] dev-python/snakeoil-0.9.7  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2021-11-09 08:17:07 UTC
Created attachment 749700 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-09 08:17:08 UTC
Created attachment 749703 [details]
dev-python:snakeoil-0.9.7:20211109-052906.log
Comment 3 Toralf Förster gentoo-dev 2021-11-09 08:17:09 UTC
Created attachment 749706 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-11-09 08:17:10 UTC
Created attachment 749709 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-11-09 08:17:11 UTC
Created attachment 749712 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-09 08:17:12 UTC
Created attachment 749715 [details]
temp.tar.bz2
Comment 7 Mike Gilbert gentoo-dev 2021-12-23 01:59:24 UTC
I can reproduce this with dev-python/setuptools-60.0.3.

Downgrading to setuptools-59.x makes it work again.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-02 08:00:54 UTC
Fixed in pkgcore 0.10.9 / snakeoil 0.9.10.