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

Bug 723486

Summary: dev-python/zope-i18nmessageid-5.0.0 : ImportError: cannot import name Feature
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: prometheanfire, reuben-gentoo-bugzilla
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/zopefoundation/zope.i18nmessageid/issues/22
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-python:zope-i18nmessageid-5.0.0:20200517-112520.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-05-17 12:32:30 UTC
  File setup.py, line 25, in <module>
    from setuptools import setup, find_packages, Extension, Feature
ImportError: cannot import name Feature
 * ERROR: dev-python/zope-i18nmessageid-5.0.0::gentoo failed (compile phase):
 *   (no error message)
 * 

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20200512-011504

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7 (fallback)
  [3]   python3.6 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.43.1 *
The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat 16 May 2020 11:35:21 AM UTC

emerge -qpvO dev-python/zope-i18nmessageid
[ebuild  N    ] dev-python/zope-i18nmessageid-5.0.0  USE="-test" PYTHON_TARGETS="python2_7 python3_7 -pypy3 -python3_6 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2020-05-17 12:32:33 UTC
Created attachment 639808 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-17 12:32:35 UTC
Created attachment 639810 [details]
dev-python:zope-i18nmessageid-5.0.0:20200517-112520.log
Comment 3 Toralf Förster gentoo-dev 2020-05-17 12:32:38 UTC
Created attachment 639812 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-05-17 12:32:41 UTC
Created attachment 639814 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-05-17 12:32:44 UTC
Created attachment 639816 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-05-17 12:32:46 UTC
Created attachment 639818 [details]
temp.tbz2
Comment 7 Reuben Farrelly 2020-08-03 08:49:00 UTC
This bug is fixed in zope-i18nmessageid 5.0.1 and would be resolved by bumping the package in portage from 5.0.0 to 5.0.1.  It's due to some deprecated functions in setuptools.

https://github.com/zopefoundation/zope.i18nmessageid/issues/22

I ran into the same issue, and bumping to 5.0.1 resolved it for me.
Comment 8 Larry the Git Cow gentoo-dev 2020-08-18 14:59:11 UTC
The bug has been closed via the following commit(s):

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

commit c3ae590dc5ecd4e8d7f43e1f39243b75f9ddc55a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-08-16 06:23:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-08-18 14:58:55 +0000

    dev-python/zope-i18nmessageid: bump to 5.0.1
    
    * Adds Python 3.9
    * Fixes buildtime issue with newer setuptools
    
    Closes: https://bugs.gentoo.org/723486
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/zope-i18nmessageid/Manifest             |  1 +
 .../zope-i18nmessageid-5.0.1.ebuild                | 33 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)