Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634032 - dev-python/setuptools ValueError: Entry points must be listed in groups
Summary: dev-python/setuptools ValueError: Entry points must be listed in groups
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-11 18:22 UTC by r3lgar
Modified: 2017-10-11 23:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description r3lgar 2017-10-11 18:22:53 UTC
* Package:    dev-python/pyopenssl-17.3.0
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_6 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking pyOpenSSL-17.3.0.tar.gz to /var/tmp/portage/dev-python/pyopenssl-17.3.0/work
>>> Source unpacked in /var/tmp/portage/dev-python/pyopenssl-17.3.0/work
>>> Preparing source in /var/tmp/portage/dev-python/pyopenssl-17.3.0/work/pyOpenSSL-17.3.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pyopenssl-17.3.0/work/pyOpenSSL-17.3.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pyopenssl-17.3.0/work/pyOpenSSL-17.3.0 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 109, in <module>
    "sphinx_rtd_theme",
  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 336, in __init__
    for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 735, in iter_entry_points
    entries = dist.get_entry_map(group)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2759, in get_entry_map
    self._get_metadata('entry_points.txt'), self
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2493, in parse_map
    raise ValueError("Entry points must be listed in groups")
ValueError: Entry points must be listed in groups
 * ERROR: dev-python/pyopenssl-17.3.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 4148:  Called distutils-r1_src_compile
 *   environment, line 1166:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  387:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3593:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2672:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2670:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  727:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1157:  Called distutils-r1_python_compile
 *   environment, line 1032:  Called esetup.py 'build'
 *   environment, line 1717:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pyopenssl-17.3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pyopenssl-17.3.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/pkg/build/dev-python/pyopenssl-17.3.0:20171011-033840.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pyopenssl-17.3.0/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pyopenssl-17.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pyopenssl-17.3.0/work/pyOpenSSL-17.3.0'
 * S: '/var/tmp/portage/dev-python/pyopenssl-17.3.0/work/pyOpenSSL-17.3.0'
Comment 1 r3lgar 2017-10-11 18:25:31 UTC
 % emerge -pvq '=dev-python/pyopenssl-17.3.0::gentoo'
[ebuild  N    ] dev-python/pyopenssl-17.3.0  USE="-doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5"



 % emerge --info '=dev-python/pyopenssl-17.3.0::gentoo'

Portage 2.3.11 (python 3.6.3-final-0, default/linux/amd64/13.0/systemd, gcc-6.4.0, glibc-2.25-r7, 4.13.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    16382440 total,   4935820 free
KiB Swap:   16777212 total,  16777212 free
Head commit of repository gentoo: c6a12a36ccc320b59d65a7bedd243fc505d5a1c6

Head commit of repository qt: bfc1d52fffb5b9bf0d31936aa5f5d7e01b2662ee

Head commit of repository lua: bdf1175be726a31ab9173df46a0d71282332fa61

Head commit of repository neomutt_gentoo: f50fb82b3233edfde996f483a6f89f4a680fba83

Head commit of repository nightmare: f567036b649f16a7f23ab90155a2b53132994acc

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29 p1.0) 2.29
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r7::gentoo
Repositories:

gentoo
    location: /usr/overlays/gentoo
    sync-type: git
    sync-uri: git://github.com/gentoo/gentoo.git
    priority: -1000

qt
    location: /usr/overlays/qt
    sync-type: git
    sync-uri: git://cgit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 8

lua
    location: /usr/overlays/lua
    sync-type: git
    sync-uri: git://cgit.gentoo.org/proj/lua.git
    masters: gentoo
    priority: 10

neomutt_gentoo
    location: /usr/overlays/neomutt_gentoo
    sync-type: git
    sync-uri: git://github.com/neomutt/gentoo-neomutt.git
    masters: gentoo
    priority: 12

nightmare
    location: /usr/overlays/nightmare
    sync-type: git
    sync-uri: git://gitlab.com/r3lgar/nightmare.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --quiet-fail=y --autounmask=y --autounmask-write=y --with-bdeps=y --keep-going -Aa"
FCFLAGS="-O2 -pipe"
FEATURES="binpkg-logs cgroup collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news nodoc noinfo notitles parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/distfiles/bin"
PORTAGE_COMPRESS="tar"
PORTAGE_COMPRESS_FLAGS="cfJ"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac acl aes alsa amd64 avx avx2 awt berkdb bidi bmp bzip2 cacert cairo caps clang cli cracklib crypt curl cxx dbus dmx dri dri3 dv egl expat f2fs faac faad fam fat fbcon ffmpeg fftw filecaps flac fma3 fontconfig fontforge fribidi gcrypt gd gdbm gif git glamor gles gles2 glx gmp gnutls gpg gtkstyle harfbuzz iconv icu idn imagemagick imlib imlib2 introspection ipc jemalloc jit jpeg kmod lame lcms ldns libass libffi libnotify lua luajit lz4 lzma lzo mad magic matroska mime mmx mmxext modules mp3 mp4 mpeg mpfr multilib natspec ncurses nettle nls nptl ntfs ogg opencl openexr opengl openmp orc osmesa pam pango pcf pci pcre pcre2 pie plotutils plugins png policykit popcnt postscript qml quicktime readline sasl sdl seccomp session sndfile sqlite sse sse2 sse3 sse4_1 sse4_2 ssl sslv3 ssse3 stunnel svg syslog systemd theora threads tiff truetype twolame udev unicode unwind upnp ups_drivers_usbhid-ups usb uuid v4l vaapi vdpau vorbis vp8 wav wavpack webp wma x264 xattr xcb xinerama xkb xml xmp xpm xv xvid zlib zsh-completion" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LLVM_TARGETS="AMDGPU BPF X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Mike Gilbert gentoo-dev 2017-10-11 18:30:38 UTC
What version of dev-python/setuptools is installed?
Comment 3 Mike Gilbert gentoo-dev 2017-10-11 18:52:10 UTC
It's possible that one of the entry_points.txt files from an already installed package is causing this. You could run the following command and look for files that are badly formatted.

find /usr/lib64/python2.7/site-packages -name entry_points.txt
Comment 4 r3lgar 2017-10-11 23:18:40 UTC
(In reply to Mike Gilbert from comment #3)

> It's possible that one of the entry_points.txt files from an already installed package is causing this.
Yes, it is. After I restored the filesystem, some files were damaged.
Thanks.