Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307615 - dev-python/snakeoil fails to build
Summary: dev-python/snakeoil fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 13:29 UTC by Markos Chandras (RETIRED)
Modified: 2010-03-04 09:02 UTC (History)
1 user (show)

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


Attachments
emerge --ifno (emerge.info,4.40 KB, text/plain)
2010-03-03 13:29 UTC, Markos Chandras (RETIRED)
Details
build.log (build.log,14.47 KB, text/plain)
2010-03-03 13:30 UTC, Markos Chandras (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markos Chandras (RETIRED) gentoo-dev 2010-03-03 13:29:10 UTC
Full log and emerge --info attached
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-03-03 13:29:58 UTC
Created attachment 221929 [details]
emerge --ifno
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-03-03 13:30:34 UTC
Created attachment 221931 [details]
build.log
Comment 3 Brian Harring (RETIRED) gentoo-dev 2010-03-03 18:27:06 UTC
Your py3k is busted up for some reason- no idea why you've got an xrange in lib2to3, but you do, and it doesn't belong there.

Snakeoil isn't at fault here, just is what's triggering the breakage.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2010-03-03 20:08:09 UTC
I am open to suggestions
Comment 5 Jesus Rivero (RETIRED) gentoo-dev 2010-03-04 02:21:40 UTC
   May I suggest dropping xrange in favor of range with a little performance loss in the process (in some cases though) or update to the latest py3k to see if this is a bug in lib2to3. 

    Best regards,
Comment 6 Brian Harring (RETIRED) gentoo-dev 2010-03-04 03:46:57 UTC
(In reply to comment #5)
>    May I suggest dropping xrange in favor of range with a little performance
> loss in the process (in some cases though) or update to the latest py3k to see
> if this is a bug in lib2to3. 

range is xrange in py3k, and 2to3 converts xrange to range.  Note also that 2to3 also does *not* come with xrange invocations w/in it's MultiprocessRefactoringTool.refactor method.

What's interesting to me is that I recognize that 'for i in xrange(num_processes)' line- it's part of

processes = [multiprocessing.Process(target=self._child) for i in range(num_processes)]

Which is about 70 lines further down the file then his TB states.  So... something happened to his py3k install (any 2to3 user, which there are several, would trigger this when invoked w/ 2to3 -j >1).

As stated in irc, re-emerge your py3k, specifically one from gentoo-x86 repo.  If you're getting your dev-lang/python-3.1 from somewhere else, they're patching it with stuff they shouldn't.
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2010-03-04 09:02:41 UTC
Rebuilding python-3.1.1 fixed it

Thanks