Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840122 - dev-python/cryptography-36.0.2 - TypeError: super(type, obj): obj must be an instance or subtype of type
Summary: dev-python/cryptography-36.0.2 - TypeError: super(type, obj): obj must be an ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-22 12:20 UTC by Toralf Förster
Modified: 2022-04-24 15:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.63 KB, text/plain)
2022-04-22 12:20 UTC, Toralf Förster
Details
dev-python:cryptography-36.0.2:20220421-234851.log (dev-python:cryptography-36.0.2:20220421-234851.log,8.38 KB, text/plain)
2022-04-22 12:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,132.90 KB, text/plain)
2022-04-22 12:20 UTC, Toralf Förster
Details
environment (environment,140.16 KB, text/plain)
2022-04-22 12:20 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.81 KB, application/x-bzip)
2022-04-22 12:20 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,31.92 KB, application/x-bzip)
2022-04-22 12:20 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-04-22 12:20:02 UTC
  File "/usr/lib/python3.9/site-packages/DistUtilsExtra/command/build_extra.py", line 57, in finalize_options
    distutils.command.build.build.finalize_options(self)
  File "/usr/lib/python3.9/site-packages/setuptools_rust/setuptools_ext.py", line 264, in finalize_options
    super().finalize_options()
TypeError: super(type, obj): obj must be an instance or subtype of type
 * ERROR: dev-python/cryptography-36.0.2::gentoo failed (compile phase):
 *   (no error message)

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20220420-172429

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.0 *
clang/llvm (if any):
clang version 14.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.1
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.60.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JRE 11.0.14_p9 [openjdk-jre-bin-11]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-11 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 13e510169a6fb7db8be0fdea75b7636e11f8f4ce
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Apr 21 23:19:22 2022 +0000

    2022-04-21 23:19:22 UTC

emerge -qpvO dev-python/cryptography
[ebuild     U ] dev-python/cryptography-36.0.2 [3.4.7-r3] USE="-debug% -test" PYTHON_TARGETS="python3_9 -pypy3 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-04-22 12:20:03 UTC
Created attachment 772892 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-22 12:20:04 UTC
Created attachment 772895 [details]
dev-python:cryptography-36.0.2:20220421-234851.log
Comment 3 Toralf Förster gentoo-dev 2022-04-22 12:20:06 UTC
Created attachment 772898 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-04-22 12:20:07 UTC
Created attachment 772901 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-04-22 12:20:08 UTC
Created attachment 772904 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-22 12:20:10 UTC
Created attachment 772907 [details]
temp.tar.bz2
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-22 15:16:15 UTC
Well, it's obviously caused by both setuptools-rust and python-distutils-extra being installed -- but I have no clue whether it's a bug in either, or in general problem with plugin stacking in setuptools.
Comment 8 Larry the Git Cow gentoo-dev 2022-04-22 15:28:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ac56d95f192eeb0ec1d2d094cf6b937d90d10a1

commit 6ac56d95f192eeb0ec1d2d094cf6b937d90d10a1
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-04-22 15:23:43 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-04-22 15:28:07 +0000

    dev-python/setuptools-rust: Add a blocker on python-distutils-extra
    
    Bug: https://bugs.gentoo.org/840122
    Bug: https://github.com/PyO3/setuptools-rust/issues/221
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 ...setuptools-rust-1.2.0.ebuild => setuptools-rust-1.2.0-r1.ebuild} | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 9 Techwolf 2022-04-24 05:47:18 UTC
(In reply to Larry the Git Cow from comment #8)
> 
>     dev-python/setuptools-rust: Add a blocker on python-distutils-extra

This change now causes this error:


  (dev-python/python-distutils-extra-2.45:0/0::gentoo, installed) pulled in by
    dev-python/python-distutils-extra[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] (dev-python/python-distutils-extra[python_targets_python3_9(-)]) required by (app-text/pdfarranger-1.8.2:0/0::gentoo, installed) USE="" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -python3_10 -python3_8"

  (dev-python/setuptools-rust-1.2.0-r1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    dev-python/setuptools-rust[python_targets_pypy3(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] (dev-python/setuptools-rust[python_targets_python3_9(-)]) required by (dev-python/cryptography-36.0.2:0/0::gentoo, ebuild scheduled for merge) USE="-debug -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -pypy3 -python3_10 -python3_8"
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-24 15:50:23 UTC
(In reply to Techwolf from comment #9)
> (In reply to Larry the Git Cow from comment #8)
> > 
> >     dev-python/setuptools-rust: Add a blocker on python-distutils-extra
> 
> This change now causes this error:
> 
> 
>   (dev-python/python-distutils-extra-2.45:0/0::gentoo, installed) pulled in
> by
>    
> dev-python/python-distutils-extra[python_targets_python3_8(-)?,
> python_targets_python3_9(-)?,python_targets_python3_10(-)?]
> (dev-python/python-distutils-extra[python_targets_python3_9(-)]) required by
> (app-text/pdfarranger-1.8.2:0/0::gentoo, installed) USE="" ABI_X86="(64)"
> PYTHON_TARGETS="python3_9 -python3_10 -python3_8"
> 
>   (dev-python/setuptools-rust-1.2.0-r1:0/0::gentoo, ebuild scheduled for
> merge) pulled in by
>    
> dev-python/setuptools-rust[python_targets_pypy3(-)?,
> python_targets_python3_8(-)?,python_targets_python3_9(-)?,
> python_targets_python3_10(-)?]
> (dev-python/setuptools-rust[python_targets_python3_9(-)]) required by
> (dev-python/cryptography-36.0.2:0/0::gentoo, ebuild scheduled for merge)
> USE="-debug -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -pypy3
> -python3_10 -python3_8"

It would, it's not avoidable per se for now.
Comment 11 Larry the Git Cow gentoo-dev 2022-04-24 15:55:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fe8429491f99dfecb0cf195e2f96f6ae07aac1a

commit 5fe8429491f99dfecb0cf195e2f96f6ae07aac1a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-24 15:53:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-24 15:53:23 +0000

    dev-python/setuptools-rust: fix build failure w/ python-distutils-extra
    
    Closes: https://bugs.gentoo.org/840122
    Bug: https://github.com/PyO3/setuptools-rust/issues/221
    Signed-off-by: Sam James <sam@gentoo.org>

 ...uptools-rust-1.2.0-fix-distutils-conflict.patch |  67 +++++++++
 .../setuptools-rust-1.2.0-r2.ebuild                | 158 +++++++++++++++++++++
 2 files changed, 225 insertions(+)