Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 307615

Summary: dev-python/snakeoil fails to build
Product: Gentoo Linux Reporter: Markos Chandras (RETIRED) <hwoarang>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED INVALID    
Severity: normal CC: ferringb
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --ifno
build.log

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