Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546730 - dev-python/six unusable when /usr/lib/python2.7/site-packages/six/ dir present
Summary: dev-python/six unusable when /usr/lib/python2.7/site-packages/six/ dir present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-16 07:40 UTC by Dominique Michel
Modified: 2015-11-20 11:31 UTC (History)
3 users (show)

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


Attachments
build log (build.log,135.50 KB, text/plain)
2015-04-16 07:45 UTC, Dominique Michel
Details
emerge.info (emerge.info,18.16 KB, text/plain)
2015-04-16 07:46 UTC, Dominique Michel
Details
environment (environment,148.98 KB, text/plain)
2015-04-16 07:49 UTC, Dominique Michel
Details
six.py (six.py,29.39 KB, text/x-python)
2015-11-04 09:33 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2015-04-16 07:40:52 UTC
emerge fail with:

/usr/bin/python2.7: No module named moves
 * ERROR: dev-python/sphinx-1.3.1::gentoo failed (compile phase):
 *   Grammar generation failed.



Reproducible: Always

Steps to Reproduce:
1. emerge sphinx
2.
3.



Same result with

MAKEOPTS="-j1" emerge -a1 sphinx
Comment 1 Dominique Michel 2015-04-16 07:45:51 UTC
Created attachment 401308 [details]
build log
Comment 2 Dominique Michel 2015-04-16 07:46:29 UTC
Created attachment 401310 [details]
emerge.info
Comment 3 Dominique Michel 2015-04-16 07:49:49 UTC
Created attachment 401312 [details]
environment
Comment 4 Dominique Michel 2015-04-16 07:55:05 UTC
python-updater find nothing to update.

 # emerge -pqv '=dev-python/sphinx-1.3.1::gentoo'
[ebuild     U ] dev-python/sphinx-1.3.1 [1.2.3] USE="-doc -latex {-test}" PYTHON_TARGETS="python2_7 python3_3 -pypy -python3_4 (-pypy3%)"
Comment 5 Patrick Lauer gentoo-dev 2015-05-13 03:30:34 UTC
I can't figure out how to reproduce this - builds fine for me
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2015-05-24 10:46:05 UTC
This was fixed in some other bug of sphinx I think.
Comment 7 Andreas Sturmlechner gentoo-dev 2015-11-03 20:49:02 UTC
Same here, also dev-python/unittest2 with the same error and >=rbtools-0.7 at runtime for ages already, which I circumvented with a local rbtools-0.6 until now.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2015-11-04 07:50:45 UTC
Which version of six are you using?
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2015-11-04 08:01:05 UTC
Does 

python2 -c "from six.moves import http_client"

work for you?
Comment 10 Andreas Sturmlechner gentoo-dev 2015-11-04 09:06:53 UTC
That is using dev-python/six-1.10.0.

$ python2 -c "from six.moves import http_client"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named moves
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2015-11-04 09:21:30 UTC
(In reply to Andreas Sturmlechner from comment #10)
> That is using dev-python/six-1.10.0.
> 
> $ python2 -c "from six.moves import http_client"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ImportError: No module named moves

Could you please attach 

/usr/lib64/python2.7/site-packages/six.py
Comment 12 Justin Lecher (RETIRED) gentoo-dev 2015-11-04 09:30:24 UTC
Do you have a directory at 

/usr/lib/python2.7/site-packages/six

present?
Comment 13 Andreas Sturmlechner gentoo-dev 2015-11-04 09:33:20 UTC
Created attachment 416058 [details]
six.py
Comment 14 Andreas Sturmlechner gentoo-dev 2015-11-04 09:39:09 UTC
(In reply to Justin Lecher from comment #12)
> Do you have a directory at 
> 
> /usr/lib/python2.7/site-packages/six

Yes, and it looks like it contains quite outdated copies of six.py*
Comment 15 Justin Lecher (RETIRED) gentoo-dev 2015-11-04 09:40:47 UTC
(In reply to Andreas Sturmlechner from comment #14)
> (In reply to Justin Lecher from comment #12)
> > Do you have a directory at 
> > 
> > /usr/lib/python2.7/site-packages/six
> 
> Yes, and it looks like it contains quite outdated copies of six.py*

before you are deleting that directory, could you please find out which package owns those files?

equere belongs 

or such helps you.
Comment 16 Andreas Sturmlechner gentoo-dev 2015-11-04 09:43:50 UTC
$ equery b /usr/lib/python2.7/site-packages/six/six.py
 * Searching for /usr/lib/python2.7/site-packages/six/six.py ... 
app-emulation/fs-uae-launcher-2.4.3 (/usr/lib64/python2.7/site-packages/six/six.py)

ouch ;)
Comment 17 Justin Lecher (RETIRED) gentoo-dev 2015-11-04 09:52:33 UTC
(In reply to Andreas Sturmlechner from comment #16)
> $ equery b /usr/lib/python2.7/site-packages/six/six.py
>  * Searching for /usr/lib/python2.7/site-packages/six/six.py ... 
> app-emulation/fs-uae-launcher-2.4.3

That exact package is also what I found on my research
Comment 18 Justin Lecher (RETIRED) gentoo-dev 2015-11-04 09:56:08 UTC
I suspect the package is coming from the roslin overlay. Piotr, could you please fix this?
Comment 19 Andreas Sturmlechner gentoo-dev 2015-11-04 11:41:04 UTC
It looks like it's fixed already by -r1 (contains ${PN}-drop-bundled-lhafile-and-six.patch), will try.
Comment 20 Andreas Sturmlechner gentoo-dev 2015-11-04 11:54:35 UTC
Yes, all fine now. Sorry for bothering you with an outdated overlay ebuild and thanks for the solution :)
Comment 21 Justin Lecher (RETIRED) gentoo-dev 2015-11-20 11:31:16 UTC
commit 24f3b61dbd6db8a41c01dc5ea8bd5bf4b87704b2
Author: Justin Lecher <jlec@gentoo.org>
Date:   Fri Nov 20 12:00:44 2015 +0100

    dev-python/six: Break if SITEDIR/six is a dir

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=546730

    Package-Manager: portage-2.2.25
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24f3b61dbd6db8a41c01dc5ea8bd5bf4b87704b2