Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492464 - dev-python/msgpack-0.4.0 - ImportError: No module named setuptools
Summary: dev-python/msgpack-0.4.0 - ImportError: No module named setuptools
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-24 22:16 UTC by Thomas Deutschmann (RETIRED)
Modified: 2014-02-19 17:31 UTC (History)
1 user (show)

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 Thomas Deutschmann (RETIRED) gentoo-dev 2013-11-24 22:16:38 UTC
Hi,

while installing app-admin/salt-0.17.2, dev-python/msgpack-0.4.0 failed on multiple clients for the first time:

# emerge -av app-admin/salt

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/libsodium-0.4.5  USE="asm urandom -static-libs" 528 kB
[ebuild  N     ] dev-python/setuptools-1.1.6  PYTHON_TARGETS="python2_7 python3_2 -pypy2_0 -python2_6 -python3_3" 666 kB
[ebuild  N     ] dev-python/pyopenssl-0.13.1-r1  USE="-doc" PYTHON_TARGETS="python2_7 python3_2 -pypy2_0 -python2_6 -python3_3" 249 kB
[ebuild  N     ] dev-python/msgpack-0.4.0  USE="{-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_3" 109 kB
[ebuild  N     ] dev-python/pycrypto-2.6.1  USE="gmp -doc" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_3" 436 kB
[ebuild  N     ] dev-python/pyyaml-3.10-r1  USE="-examples -libyaml" PYTHON_TARGETS="python2_7 python3_2 -pypy2_0 -python2_6 -python3_3" 236 kB
[ebuild  N     ] net-libs/zeromq-4.0.1-r1  USE="-pgm -static-libs {-test}" 2,093 kB
[ebuild  N     ] dev-lang/swig-2.0.11  USE="pcre -ccache -doc" 5,186 kB
[ebuild  N     ] dev-libs/crypto++-5.6.2  USE="-static-libs" 1,112 kB
[ebuild  N     ] dev-python/pycryptopp-0.6.0  PYTHON_TARGETS="python2_7 -python2_6" 1,963 kB
[ebuild  N     ] dev-python/m2crypto-0.21.1-r1  USE="-doc -examples" PYTHON_TARGETS="python2_7 -python2_6" 404 kB
[ebuild  N     ] dev-python/pyzmq-13.1.0  USE="-examples -green {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_3" 820 kB
[ebuild  N     ] dev-python/markupsafe-0.18  PYTHON_TARGETS="python2_7 python3_2 -pypy2_0 -python2_6 -python3_3" 12 kB
[ebuild  N     ] dev-python/jinja-2.7.1  USE="-doc -examples" PYTHON_TARGETS="python2_7 -pypy2_0 -python2_6 -python3_3" 369 kB
[ebuild  N     ] app-admin/salt-0.17.2  USE="openssl -ldap -libvirt -mako -mongodb -mysql -redis {-test}" PYTHON_TARGETS="python2_7 -python2_6" 1,823 kB

Total: 15 packages (15 new), Size of downloads: 16,002 kB

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 15) dev-libs/libsodium-0.4.5
>>> Emerging (2 of 15) dev-python/setuptools-1.1.6
>>> Emerging (3 of 15) dev-python/pyopenssl-0.13.1-r1
>>> Emerging (4 of 15) dev-python/msgpack-0.4.0
>>> Emerging (5 of 15) dev-python/pycrypto-2.6.1
>>> Emerging (6 of 15) dev-python/pyyaml-3.10-r1
>>> Emerging (7 of 15) dev-lang/swig-2.0.11
>>> Emerging (8 of 15) dev-libs/crypto++-5.6.2
>>> Failed to emerge dev-python/msgpack-0.4.0, Log file:
>>>  '/var/log/portage/build/dev-python/msgpack-0.4.0:20131124-220730.log'

(I am including this information because it sounds like a missing dependency)


>>> Jobs: 7 of 15 complete, 1 failed                Load avg: 13.2, 4.9, 1.8
 * Package:    dev-python/msgpack-0.4.0
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_2 userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking msgpack-python-0.4.0.tar.gz to /var/tmp/portage/dev-python/msgpack-0.4.0/work
>>> Source unpacked in /var/tmp/portage/dev-python/msgpack-0.4.0/work
>>> Preparing source in /var/tmp/portage/dev-python/msgpack-0.4.0/work/msgpack-python-0.4.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/msgpack-0.4.0/work/msgpack-python-0.4.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/msgpack-0.4.0/work/msgpack-python-0.4.0 ...
 * python3_2: running distutils-r1_run_phase distutils-r1_python_compile
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.2 setup.py build
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    from setuptools import setup, Extension
ImportError: No module named setuptools
 * ERROR: dev-python/msgpack-0.4.0::gentoo failed (compile phase):
 *   (no error message)
 *
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    from setuptools import setup, Extension
ImportError: No module named setuptools
 * Call stack:
 * ERROR: dev-python/msgpack-0.4.0::gentoo failed (compile phase):
 *   (no error message)
 *     ebuild.sh, line   93:  Called src_compile
 *
 * Call stack:
 *   environment, line 3565:  Called distutils-r1_src_compile
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 1010:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line 3565:  Called distutils-r1_src_compile
 *   environment, line  237:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1010:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line 3430:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  237:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2665:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3430:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2613:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2665:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2611:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2613:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2656:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  636:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 2611:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2656:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  999:  Called distutils-r1_python_compile
 *   environment, line  636:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  878:  Called esetup.py 'build'
 *   environment, line  999:  Called distutils-r1_python_compile
 *   environment, line 1806:  Called die
 *   environment, line  878:  Called esetup.py 'build'
 * The specific snippet of code:
 *   environment, line 1806:  Called die
 *       "${@}" || die
 * The specific snippet of code:
 *
 * If you need support, post the output of `emerge --info '=dev-python/msgpack-0.4.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/msgpack-0.4.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-python/msgpack-0.4.0:20131124-220730.log'.
 *       "${@}" || die
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/msgpack-0.4.0/temp/build.log'.
 *
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/msgpack-0.4.0/temp/environment'.
 * If you need support, post the output of `emerge --info '=dev-python/msgpack-0.4.0::gentoo'`,
 * Working directory: '/var/tmp/portage/dev-python/msgpack-0.4.0/work/msgpack-python-0.4.0'
 * S: '/var/tmp/portage/dev-python/msgpack-0.4.0/work/msgpack-python-0.4.0'
 * the complete build log and the output of `emerge -pqv '=dev-python/msgpack-0.4.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-python/msgpack-0.4.0:20131124-220730.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/msgpack-0.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/msgpack-0.4.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/msgpack-0.4.0/work/msgpack-python-0.4.0'
 * S: '/var/tmp/portage/dev-python/msgpack-0.4.0/work/msgpack-python-0.4.0'
/usr/lib64/portage/bin/isolated-functions.sh: line 219: kill: (27672) - No such process


Re-emerging will work. I guess because *now* setuptools is installed.


 # emerge --info
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.17, 3.10.20-gentoo x86_64)
=================================================================
System uname: Linux-3.10.20-gentoo-x86_64-AMD_Opteron-tm-_Processor_6164_HE-with-gentoo-2.2
KiB Mem:    49396164 total,  47849028 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of tree: Sun, 24 Nov 2013 15:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r4, 3.2.5-r3, 3.3.3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.17


Reproducible: Always
Comment 1 Sergey Popov gentoo-dev 2014-02-19 14:05:48 UTC
This error is not related to msgpack itself, check your setuptools installation. Probably python-updater run and or proper PYTHON_TARGETS setup is needed on your systems.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2014-02-19 14:15:38 UTC
Sergey, I think you are wrong. See msgpack's setup.py:

import os
import sys
from glob import glob
from distutils.command.sdist import sdist
from setuptools import setup, Extension
^^^^^^^^^^^^^^^

from distutils.command.build_ext import build_ext
[...]

https://github.com/msgpack/msgpack-python/blob/0.4.0/setup.py#L7

=> msgpack has a dependency on setuptools, not?

=> But this dependency is not reflected in the ebuild...
Comment 3 Sergey Popov gentoo-dev 2014-02-19 17:31:05 UTC
(In reply to Thomas D. from comment #2)
> Sergey, I think you are wrong. See msgpack's setup.py:
> 
> import os
> import sys
> from glob import glob
> from distutils.command.sdist import sdist
> from setuptools import setup, Extension
> ^^^^^^^^^^^^^^^
> 
> from distutils.command.build_ext import build_ext
> [...]
> 
> https://github.com/msgpack/msgpack-python/blob/0.4.0/setup.py#L7
> 
> => msgpack has a dependency on setuptools, not?
> 
> => But this dependency is not reflected in the ebuild...

+  19 Feb 2014; Sergey Popov <pinkbyte@gentoo.org> msgpack-0.2.4.ebuild,
+  msgpack-0.3.0.ebuild, msgpack-0.4.0.ebuild:
+  Add dev-python/setuptools to build-time dependencies, wrt bug #492464. Thanks
+  to Thomas D. <whissi AT whissi.de> for discovering this issue

You are absolutely right, i have totally missed that. Fixed now.