[gentoo-user] python-2.7 update: re-emerge of cracklib failed, how can I fix it?

2011-03-27 Thread Jarry

Hi,
apparently I screwed something during python update, and now
I can not fix my system. This is what I did:

emerge --sync
emerge --ask --update --deep --newuse world

At the end, I have seen:
You should run 'python-updater ${options}' to rebuild Python modules.

So I did, then emerge --depclean, and that was my mistake:
python2.6 has been unmerged before I switched to python2.7.
Im just surprised python2.6 has been unmerged, when it was
still active and selected python version.

Then by revdep-rebuild I got a lot of error-messages and
at that time I realised something got wrong.

Then I switched to python2.7 (eselect python set python2.7),
and tried revdep-rebuild again. Two packages needed to be
emerged again: libxstl and cracklib. The first got emerged
without a problem, but for cracklib emerge failed with
this messages:


  File setup.py, line 22, in module
from setuptools import setup, Extension, find_packages
ImportError: No module named setuptools
 * ERROR: sys-libs/cracklib-2.8.16 failed (compile phase):
 *   Building failed with CPython 2.7 in distutils_building() function
 *
 * Call stack:
 * ebuild.sh, line   56:  Called src_compile
 *   environment, line 5094:  Called do_python
 *   environment, line 1389:  Called distutils_src_compile
 *   environment, line 1238:  Called python_execute_function 
'distutils_building'

 *   environment, line 3662:  Called die
 * The specific snippet of code:
 *   die ${failure_message};
 *
* If you need support, post the output of 'emerge --info 
=sys-libs/cracklib-2.8.16',
 * the complete build log and the output of 'emerge -pqv 
=sys-libs/cracklib-2.8.16'.
 * The complete build log is located at 
'/var/tmp/portage/sys-libs/cracklib-2.8.16/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/sys-libs/cracklib-2.8.16/temp/environment'.

 * S: '/var/tmp/portage/sys-libs/cracklib-2.8.16/work/cracklib-2.8.16'

 Failed to emerge sys-libs/cracklib-2.8.16, Log file:

  '/var/tmp/portage/sys-libs/cracklib-2.8.16/temp/build.log'


My question is: how can I fix this mess?

Jarry

--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] python-2.7 update: re-emerge of cracklib failed, how can I fix it?

2011-03-27 Thread Adam Carter
 
  File setup.py, line 22, in module
from setuptools import setup, Extension, find_packages
 ImportError: No module named setuptools
  * ERROR: sys-libs/cracklib-2.8.16 failed (compile phase):
  *   Building failed with CPython 2.7 in distutils_building() function
  *
  * Call stack:
  * ebuild.sh, line   56:  Called src_compile
  *   environment, line 5094:  Called do_python
  *   environment, line 1389:  Called distutils_src_compile
  *   environment, line 1238:  Called python_execute_function
 'distutils_building'
  *   environment, line 3662:  Called die
  * The specific snippet of code:
  *   die ${failure_message};
  *
 * If you need support, post the output of 'emerge --info
 =sys-libs/cracklib-2.8.16',
  * the complete build log and the output of 'emerge -pqv
 =sys-libs/cracklib-2.8.16'.
  * The complete build log is located at
 '/var/tmp/portage/sys-libs/cracklib-2.8.16/temp/build.log'.
  * The ebuild environment file is located at
 '/var/tmp/portage/sys-libs/cracklib-2.8.16/temp/environment'.
  * S: '/var/tmp/portage/sys-libs/cracklib-2.8.16/work/cracklib-2.8.16'

  Failed to emerge sys-libs/cracklib-2.8.16, Log file:

   '/var/tmp/portage/sys-libs/cracklib-2.8.16/temp/build.log'
 

 My question is: how can I fix this mess?

 emerge --oneshot dev-python/setuptools would be a good start. (FWIW google
cracklib No module named setuptools...)