Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601390 - dev-python/pbr import failure
Summary: dev-python/pbr import failure
Status: RESOLVED UPSTREAM
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: 2016-12-01 21:27 UTC by Gary E. Miller
Modified: 2017-01-04 04:48 UTC (History)
2 users (show)

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


Attachments
environment (environment,106.78 KB, text/plain)
2016-12-01 21:27 UTC, Gary E. Miller
Details
build.log (build.log,3.61 KB, text/plain)
2016-12-01 21:28 UTC, Gary E. Miller
Details
build.log (build.log,3.48 KB, text/plain)
2017-01-03 22:26 UTC, Gary E. Miller
Details
environment (environment,142.96 KB, text/plain)
2017-01-03 22:27 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2016-12-01 21:27:55 UTC
Created attachment 454850 [details]
environment

Simple failure to emerge on stable.  Seems to work on unstable.

spidey ~ # emerge -uDNa world
[...]
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pbr/core.py", line 111, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/usr/lib64/python2.7/site-packages/pbr/util.py", line 264, in cfg_to_args
    wrap_commands(kwargs)
  File "/usr/lib64/python2.7/site-packages/pbr/util.py", line 566, in wrap_commands
    cmdclass = ep.resolve()
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ImportError: No module named bdist_ccfreeze
error in setup command: Error parsing /var/tmp/portage/dev-python/mock-2.0.0/work/mock-2.0.0/setup.cfg: ImportError: No module named bdist_ccfreeze
 * ERROR: dev-python/mock-2.0.0::gentoo failed (compile phase):
[...]

spidey ~ # emerge --info '=dev-python/mock-2.0.0::gentoo'
Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.22-r4, 4.4.26-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.26-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-1620_v3_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16365512 total,   1023620 free
KiB Swap:   33554428 total,  33323244 free
Timestamp of repository gentoo: Thu, 01 Dec 2016 17:30:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc[1184] (dcc_trace_version) distcc 3.2rc1 x86_64-pc-linux-gnu; built Oct  2 2016 14:07:25 [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://backup.rellim.com/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude ChangeLog* --delete-excluded

javer
    location: /var/lib/layman/javer
    masters: gentoo
    priority: 0

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=haswell"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=haswell"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --backtrack=5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ ftp://mirror.datapipe.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu,--enable-new-dtags"
MAKEOPTS="-j8 -l3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --delete-excluded"
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 a52 aac aacplus aacs aalib acl adns aesicm aften alsa amd64 amr ao apache2 archive ares aspell avahi avresample bash-completion bcmath berkdb binfilter bluray bzip2 cairo calendar caps cdda cgi cgroup cli community corefonts cracklib crypt cscope cups curl cxx daap dane dbi dbus dirac dlna dri dvd ecwj2k egl enca encode examples exif exit extensions extraengine faac faad ffmpeg fftw firmware flac fontconfig fontforge foomaticdb fortran fping fpm fpx gbm gcrypt gd gdbm geoip geos gif gimp git glamor gles gles1 gles2 glib gml gmp gmplayer gnome-keyring gnutls gphoto2 gps gs gsm gtk gtk3 gui hardened harfbuzz hdf hdf5 hdri highlight http2 hwdb iconv icu id3tag imagemagick imap infinality inifile inotify introspection ipmi iproute2 ipv6 jack java jbig jce jemalloc jpeg jpeg2k json lcms libass libedit libextractor liblockfile libnotify libsamplerate libsecret libsoxr lmdb lxc lzma lzo mad mbox memcached mhash mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mtp multilib mysql ncurses netcdf netlink network nfs nfsv4 nodrm nptl nsplugin offensive ogdi ogg openal openexr opengl openmp openssl openvg opus osmesa pam pango pch pcntl pcre pdf pdfimport pdo perl plotutils plugins png policykit postproc ppds printsupport pth pulseaudio python q32 q8 qt3support qt4 qt5 rar raw readline realtime rle romio rpc rpz rrl rtmp scanner schroedinger scrypt sctp seccomp server session sharedmem slp smi smime smp sndfile snmp sockets spamassassin speex spell sphinx sqlite sqlite3 sse sse2 sse3 sse4_1 ssh ssl ssse3 stats subtitles svg syslog t1lib tcpd theora thin-splines threads threadsafe thumbnail tiff tokudb truetype twolame udev unbound unicode upcall urandom usb utils v4l2 vaapi vhosts vim-syntax vlc vorbis vorbix vpx wavpack webkit webkit2 webp widgets wikipedia winbind wmf x264 xattr xface xine xinerama xml xmp xorg xpm xslt xvfb xvid xvmc xz zeroconf zip zlib" ABI_X86="64" 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" CAMERAS="ptp2" 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa" 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_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Gary E. Miller 2016-12-01 21:28:22 UTC
Created attachment 454852 [details]
build.log
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2017-01-03 22:08:50 UTC
Several of us have failed to duplicate your error with mock-2.0.0.

Looking through the traceback, the failure occurred in the dev-python/pbr package.

Please update this bug with the version of pbr.  Try rebuilding that same version and try re-emerging mock.  If that still fails, report the details (update the bug title and re-open.  You might also try upgrading pbr, my testing was done with dev-python/pbr-1.10.0 installed.
Comment 3 Gary E. Miller 2017-01-03 22:24:56 UTC
Interesting.  I can not build =dev-python/pbr-1.1.0.  That version is installed on my host so it must have broken after installation.

spidey pylib # emerge -pqv '=dev-python/pbr-1.10.0::gentoo'
[ebuild   R   ] dev-python/pbr-1.10.0  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)" 
spidey pylib # emerge --info '=dev-python/pbr-1.10.0::gentoo'
Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.22-r4, 4.4.26-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.26-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-1620_v3_@_3.50GHz-with-gentoo-2.3
KiB Mem:    16365512 total,   3500732 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Tue, 03 Jan 2017 18:30:02 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc[12952] (dcc_trace_version) distcc 3.2rc1 x86_64-pc-linux-gnu; built Oct  2 2016 14:07:25 [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0-r2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://backup.rellim.com/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude ChangeLog* --delete-excluded

javer
    location: /var/lib/layman/javer
    masters: gentoo
    priority: 0

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=haswell"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=haswell"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --backtrack=5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ ftp://mirror.datapipe.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu,--enable-new-dtags"
MAKEOPTS="-j8 -l3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --delete-excluded"
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 a52 aac aacplus aacs aalib acl adns aesicm aften aio alsa amd64 amr ao apache2 archive ares aspell avahi avresample bash-completion bcmath berkdb binfilter bluray bzip2 cacert cairo calendar caps cdda cgi cgroup cli community corefonts cracklib crypt cscope cups curl cxx daap dane dbi dbus dirac dlna dri dvd ecwj2k egl enca encode examples exif exit extensions extraengine faac faad ffmpeg fftw firmware flac fontconfig fontforge foomaticdb fortran fping fpm fpx gbm gcrypt gd gdbm geoip geos gif gimp git glamor gles gles1 gles2 glib gml gmp gmplayer gnome-keyring gnuplot gnutls gphoto2 gps gs gsm gtk gtk3 gui hardened harfbuzz hdf hdf5 hdri highlight http2 hwdb iconv icu id3tag imagemagick imap infinality inifile inotify introspection ipmi iproute2 ipv6 jack java jbig jce jemalloc jpeg jpeg2k json lcms libass libedit libextractor liblockfile libnotify libsamplerate libsecret libsoxr lmdb lxc lzma lzo mad mbox memcached mhash mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mtp multilib mysql ncurses netcdf netlink network nfs nfsv4 nodrm nptl nsplugin offensive ogdi ogg openal openexr opengl openmp openssl openvg opus osmesa pam pango pch pcntl pcre pdf pdfimport pdo perl plotutils plugins png policykit postproc ppds printsupport pth pulseaudio python q32 q8 qt3support qt4 qt5 rar raw readline realtime rle romio rpc rpz rrl rtmp scanner schroedinger scrypt sctp seccomp server session sharedmem slp smi smime smp sndfile snmp sockets spamassassin speex spell sphinx sqlite sqlite3 sse sse2 sse3 sse4_1 ssh ssl ssse3 stats subtitles svg syslog t1lib tcpd theora thin-splines threads threadsafe thumbnail tiff tokudb truetype twolame udev unbound unicode upcall urandom usb utils v4l2 vaapi vhosts vim-syntax vlc vorbis vorbix vpx wavpack webkit webkit2 webp widgets wikipedia winbind wmf x264 xattr xface xine xinerama xml xmp xorg xpm xslt xvfb xvid xvmc xz zeroconf zip zlib" ABI_X86="64" 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" CAMERAS="ptp2" 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="vesa" 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_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-python/pbr-1.10.0::gentoo was built with the following:
USE="-test" ABI_X86="64" PYTHON_TARGETS="python2_7 python3_4 -pypy -pypy3 -python3_5"
Comment 4 Gary E. Miller 2017-01-03 22:26:03 UTC
Created attachment 458612 [details]
build.log

build log, fails
Comment 5 Gary E. Miller 2017-01-03 22:27:13 UTC
Created attachment 458616 [details]
environment
Comment 6 Gary E. Miller 2017-01-03 22:28:02 UTC
Same issue as mock:

/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    **util.cfg_to_args())
  File "/var/tmp/portage/dev-python/pbr-1.10.0/work/pbr-1.10.0/pbr/util.py", line 264, in cfg_to_args
    wrap_commands(kwargs)
  File "/var/tmp/portage/dev-python/pbr-1.10.0/work/pbr-1.10.0/pbr/util.py", line 566, in wrap_commands
    cmdclass = ep.resolve()
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2293, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ImportError: No module named bdist_ccfreeze
Comment 7 Gary E. Miller 2017-01-03 22:30:05 UTC
So, still the same issue, I do not have a python modules named bdist_ccfreeze.

Can someone that has that module tell me where it comes from?
Comment 8 Mike Gilbert gentoo-dev 2017-01-04 03:14:26 UTC
Please run the following to find what is referring to that "bdist_ccfreeze" module.

grep -RlF bdist_ccfreeze /usr/lib64/python2.7/site-packages
Comment 9 Gary E. Miller 2017-01-04 03:26:55 UTC
(In reply to Mike Gilbert from comment #8)
> Please run the following to find what is referring to that "bdist_ccfreeze"
> module.
> 
> grep -RlF bdist_ccfreeze /usr/lib64/python2.7/site-packages

spidey ~ # grep -RlF bdist_ccfreeze /usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/ccfreeze/bdist_bbfreeze.pyc
/usr/lib64/python2.7/site-packages/ccfreeze/bdist_bbfreeze.py
/usr/lib64/python2.7/site-packages/ccfreeze-1.1.5.dist-info/metadata.json
/usr/lib64/python2.7/site-packages/ccfreeze-1.1.5.dist-info/entry_points.txt
spidey ~ #
Comment 10 Gary E. Miller 2017-01-04 03:32:01 UTC
That tells you who provides bdist_ccfreeze, not who called it.

ccfreeze is not a gentoo package, it must have been pulled in by pip.

spidey ~ # equery b /usr/lib64/python2.7/site-packages/ccfreeze/
 * Searching for /usr/lib64/python2.7/site-packages/ccfreeze/ ... 

spidey ~ # pip search ccfreeze
ccfreeze-loader     - provide binary loaders for ccfreeze
  INSTALLED: 1.1.2 (latest)
ccfreeze            - create standalone executables from python scripts
  INSTALLED: 1.1.5 (latest)

spidey ~ # 

My guess is mock and pbr must include it if they find it.
Comment 11 Gary E. Miller 2017-01-04 03:36:12 UTC
I removed ccfreeze:

spidey ~ pp uninstall ccfreeze

Now I can emerge mock and pbr.

So now the bug is that something is importing ccfreeze, and failing, if
ccfreeze is installed.
Comment 12 Gary E. Miller 2017-01-04 03:46:24 UTC
I'll not reopen the bug, but a workaround is not exactly a root cause.

I expect this to byte other's in the future.
Comment 13 Mike Gilbert gentoo-dev 2017-01-04 04:09:09 UTC
(In reply to Gary E. Miller from comment #12)
> I'll not reopen the bug, but a workaround is not exactly a root cause.

ccfreeze-1.1.5.dist-info/entry_points.txt contained an invalid entry. We don't package that, so there's nothing we can do about it.

pbr is poorly designed and tries to load all entry_points.txt files it can find. There's nothing we as a distro can do about that.

If you would like to discuss the issue with the upstream developers, you are welcome to do so.
Comment 14 Gary E. Miller 2017-01-04 04:39:04 UTC
(In reply to Mike Gilbert from comment #13)
> (In reply to Gary E. Miller from comment #12)
> > I'll not reopen the bug, but a workaround is not exactly a root cause.
> 
> ccfreeze-1.1.5.dist-info/entry_points.txt contained an invalid entry. We
> don't package that, so there's nothing we can do about it.

Agreed.  Not worth the effort.

> pbr is poorly designed and tries to load all entry_points.txt files it can
> find. There's nothing we as a distro can do about that.
> 
> If you would like to discuss the issue with the upstream developers, you are
> welcome to do so.

upstream to dev-python/mock is dead, 73 open issues.  It should be killed off.

pbr has 64 open issues, nobody should be using it.

I'm trying, and failing, to open a bug for pbr:

https://github.com/openstack-dev/pbr
https://bugs.launchpad.net/pbr

I'll try again in the AM.
Comment 15 Mike Gilbert gentoo-dev 2017-01-04 04:48:44 UTC
Thanks!