Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640266 - dev-libs/capstone-3.0.5_rc2-r1 fails: ImportError: No module named 'setuptools'
Summary: dev-libs/capstone-3.0.5_rc2-r1 fails: ImportError: No module named 'setuptools'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: setuptools-missing
  Show dependency tree
 
Reported: 2017-12-08 16:05 UTC by int80
Modified: 2017-12-24 14:14 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 int80 2017-12-08 16:05:59 UTC
Hi,

I was following the steps for activating default/linux/amd64/17.0/desktop. So this happened: https://pastebin.com/7EGhs1Pk by issuing: emerge -e @world

I asked in #gentoo and they told me that capstone doesen't to depend on setuptools but should and I should file a bug.

So I did. :-)
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-12-08 16:13:50 UTC
warning: build_py: byte-compiling is disabled, skipping.

 * python3_5: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.5 setup.py build
Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    from setuptools import setup
ImportError: No module named 'setuptools'
 * ERROR: dev-libs/capstone-3.0.5_rc2-r1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 2652:  Called wrap_python 'src_compile'
 *   environment, line 3277:  Called distutils-r1_src_compile 'src_compile'
 *   environment, line  787:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  290:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2195:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1501:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1499:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  517:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  778:  Called distutils-r1_python_compile
 *   environment, line  653:  Called esetup.py 'build'
 *   environment, line 1046:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/capstone-3.0.5_rc2-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/capstone-3.0.5_rc2-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/capstone-3.0.5_rc2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/capstone-3.0.5_rc2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/capstone-3.0.5_rc2-r1/work/capstone-3.0.5-rc2/bindings/python'
 * S: '/var/tmp/portage/dev-libs/capstone-3.0.5_rc2-r1/work/capstone-3.0.5-rc2'

>>> Failed to emerge dev-libs/capstone-3.0.5_rc2-r1, Log file:

>>>  '/var/tmp/portage/dev-libs/capstone-3.0.5_rc2-r1/temp/build.log'
Comment 2 Larry the Git Cow gentoo-dev 2017-12-24 14:13:48 UTC
The bug has been closed via the following commit(s):

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

commit 2c67cd64c97f2f393cdbb3b6fb03498c7402fa27
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2017-12-24 14:13:32 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2017-12-24 14:13:41 +0000

    dev-libs/capstone: add missing 'setuptools' DEPEND, bug #640266
    
    Reported-by: int80
    Closes: https://bugs.gentoo.org/640266
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-libs/capstone/capstone-3.0.5_rc2-r1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-24 14:14:58 UTC
Added missing build-time dependency. Thanks for the report!