Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407125 - sys-libs/cracklib-2.8.18-r1 - python2.7 setup.py build -b build-2.7: ImportError: No module named setuptools
Summary: sys-libs/cracklib-2.8.18-r1 - python2.7 setup.py build -b build-2.7: ImportEr...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 421281 428578 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-06 15:49 UTC by Phil Tooley
Modified: 2013-06-25 19:03 UTC (History)
5 users (show)

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


Attachments
build log (cracklib-2.8.18-r1.build.log,20.31 KB, text/plain)
2012-03-06 15:50 UTC, Phil Tooley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Tooley 2012-03-06 15:49:27 UTC
When emerging cracklib, one of the python build scripts fails with the error

  File "setup.py", line 22, in <module>
    from setuptools import setup, Extension, find_packages
ImportError: No module named setuptools

Setup tools is installed on my system:
emerge -s setuptools
Searching...    
[ Results for search key : setuptools ]
[ Applications found : 1 ]

*  dev-python/setuptools
      Latest version available: 0.6.24
      Latest version installed: 0.6.24
      Size of files: 606 kB
      Homepage:      http://pypi.python.org/pypi/distribute
      Description:   Distribute (fork of Setuptools) is a collection of extensions to Distutils
      License:       PSF-2





Reproducible: Always

Steps to Reproduce:
1. emerge sys-libs/cracklib

Actual Results:  
build fails

Expected Results:  
build suceeds
Comment 1 Phil Tooley 2012-03-06 15:50:54 UTC
Created attachment 304417 [details]
build log
Comment 2 Phil Tooley 2012-03-06 16:24:46 UTC
Okay so I found the problem.  When setuptools was installed for some reason I only had python-3.2 so it didn't build modules for 2.7.  I have now rebuilt setuptools and it works.  However I was under the impression that 2.7 was still the required version for portage so I'm not sure how this happened.
Comment 3 Ben Kohler gentoo-dev 2012-03-10 01:10:39 UTC
It isn't required for portage, and current stage3 tarballs only include python-3, so you will need to run python-updater when python-2.x gets pulled in as a dep for the first time
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-06-19 12:49:38 UTC
*** Bug 421281 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2013-06-25 19:03:01 UTC
*** Bug 428578 has been marked as a duplicate of this bug. ***