Emerge gentoolkit failed

From thelinuxwiki
Jump to: navigation, search

Problem description

emerge gentoolkit failing on argparse dependency


error messages

>>> Emerging (1 of 3) dev-python/argparse-1.2.1

* argparse-1.2.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                         [ ok ]

>>> Unpacking source... >>> Unpacking argparse-1.2.1.tar.gz to /var/tmp/portage/dev-python/argparse-1.2.1/work >>> Source unpacked in /var/tmp/portage/dev-python/argparse-1.2.1/work >>> Preparing source in /var/tmp/portage/dev-python/argparse-1.2.1/work/argparse-1.2.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/argparse-1.2.1/work/argparse-1.2.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/argparse-1.2.1/work/argparse-1.2.1 ...

* Building of dev-python/argparse-1.2.1 with CPython 2.6...

python2.6 setup.py build -b build-2.6 running build running build_py creating build-2.6 creating build-2.6/lib copying argparse.py -> build-2.6/lib

* Building of dev-python/argparse-1.2.1 with CPython 3.1...

python3.1 setup.py build -b build-3.1 Traceback (most recent call last):

 File "setup.py", line 3, in <module>
   from setuptools import setup, find_packages

ImportError: No module named setuptools

* ERROR: dev-python/argparse-1.2.1 failed (compile phase):
*   Building failed with CPython 3.1 in distutils_building() function
* 
* Call stack:
*     ebuild.sh, line   56:  Called src_compile
*   environment, line 3622:  Called distutils_src_compile
*   environment, line  943:  Called python_execute_function 'distutils_building'
*   environment, line 2006:  Called die
* The specific snippet of code:
*                       die "${failure_message}";
* 
* If you need support, post the output of 'emerge --info =dev-python/argparse-1.2.1',
* the complete build log and the output of 'emerge -pqv =dev-python/argparse-1.2.1'.
* The complete build log is located at '/var/tmp/portage/dev-python/argparse-1.2.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/argparse-1.2.1/temp/environment'.
* S: '/var/tmp/portage/dev-python/argparse-1.2.1/work/argparse-1.2.1'

>>> Failed to emerge dev-python/argparse-1.2.1, Log file:

>>> '/var/tmp/portage/dev-python/argparse-1.2.1/temp/build.log'

* Messages for package dev-python/argparse-1.2.1:
* ERROR: dev-python/argparse-1.2.1 failed (compile phase):
*   Building failed with CPython 3.1 in distutils_building() function
* 
* Call stack:
*     ebuild.sh, line   56:  Called src_compile
*   environment, line 3622:  Called distutils_src_compile
*   environment, line  943:  Called python_execute_function 'distutils_building'
*   environment, line 2006:  Called die
* The specific snippet of code:
*                       die "${failure_message}";
* 
* If you need support, post the output of 'emerge --info =dev-python/argparse-1.2.1',
* the complete build log and the output of 'emerge -pqv =dev-python/argparse-1.2.1'.
* The complete build log is located at '/var/tmp/portage/dev-python/argparse-1.2.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/argparse-1.2.1/temp/environment'.
* S: '/var/tmp/portage/dev-python/argparse-1.2.1/work/argparse-1.2.1'


solution

 emerge -av1 setuptools