Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 617030 - setuptools-34.*: ImportError: No module named moves
Summary: setuptools-34.*: ImportError: No module named moves
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: https://github.com/pypa/setuptools/is...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-29 20:14 UTC by Dominique Michel
Modified: 2017-05-28 11:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2017-04-29 20:14:55 UTC
>>> Compiling source in /var/tmp/portage/dev-python/setuptools-34.4.1/work/setuptools-34.4.1 ... 
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile 
/usr/bin/python2.7 setup.py build 
Traceback (most recent call last): 
  File "setup.py", line 11, in <module> 
    import setuptools 
  File "/var/tmp/portage/dev-python/setuptools-34.4.1/work/setuptools-34.4.1-python2_7/setuptools/__init__.py", line 10, in <module> 
    from six.moves import filter, map 
ImportError: No module named moves



Reproducible: Always

Steps to Reproduce:
1.emerge -1 setuptools
2.
3.
Actual Results:  
The compilation fail. I get the same result with all the 34.* versions.
See https://github.com/pypa/setuptools/issues/942


For the emerge --info, see here: https://forums.gentoo.org/viewtopic-p-8062514.html#8062514

setuptools-33.1.1 succeeded to merge, so I masked all the 34.* versions for now.
Comment 1 Mike Gilbert gentoo-dev 2017-05-04 01:09:51 UTC
You probably have a corrupted version of dev-python/six installed via pip.

Remove /usr/lib64/python2.7/site-packages/six*, and reinstall dev-python/six.
Comment 2 ernsteiswuerfel archtester 2017-05-28 11:49:11 UTC
Probably I am experiencing the same issue in a different environment:

$ fs-uae-launcher 
fs-uae-launcher                                                                                                                                                                                                    
2.8.3                                                                                                                                                                                                              
enabling except hook                                                                                                                                                                                               
enable tread exception handler                                                                                                                                                                                     
uname_result(system='Linux', node='yea', release='4.10.17-gentoo', version='#1 SMP Mon May 22 16:09:42 CEST 2017', machine='x86_64', processor='AMD Athlon(tm) 5350 APU with Radeon(tm) R3')                       
['/usr/local/bin/fs-uae-launcher']                                                                                                                                                                                 
FS-UAE Launcher 2.8.3                                                                                                                                                                                              
                                                                                                                                                                                                                   
Unhandled exception detected in thread MainThread:                                                                                                                                                                 
  ImportError:__init__.py:<module>:49                                                                                                                                                                              
                                                                                                                                                                                                                   
Traceback (most recent call last):                                                                                                                                                                                 
  File "/usr/local/bin/fs-uae-launcher", line 61, in <module>                                                                                                                                                      
    main()                                                                                                                                                                                                         
  File "/usr/local/bin/fs-uae-launcher", line 58, in main                                                                                                                                                          
    launcher.apps.main()                                                                                                                                                                                           
  File "/usr/local/share/fs-uae-launcher/launcher/apps/__init__.py", line 73, in main                                                                                                                              
    app_main()                                                                                                                                                                                                     
  File "/usr/local/share/fs-uae-launcher/launcher/apps/fs_uae_launcher.py", line 11, in app_main                                                                                                                   
    from launcher.fs_uae_launcher import FSUAELauncher                                                                                                                                                             
  File "/usr/local/share/fs-uae-launcher/launcher/fs_uae_launcher.py", line 8, in <module>                                                                                                                         
    import fsui                                                                                                                                                                                                    
  File "/usr/local/share/fs-uae-launcher/fsui/__init__.py", line 19, in <module>                                                                                                                                   
    from fsui.qt.Icon import Icon                                                                                                                                                                                  
  File "/usr/local/share/fs-uae-launcher/fsui/qt/Icon.py", line 2, in <module>                                                                                                                                     
    from fsbc.resources import Resources                                                                                                                                                                           
  File "/usr/local/share/fs-uae-launcher/fsbc/resources.py", line 2, in <module>                                                                                                                                   
    from pkg_resources import resource_filename, resource_stream                                                                                                                                                   
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 49, in <module>
    from six.moves import urllib, map, filter
ImportError: No module named 'six.moves'


As you suggested I removed /usr/lib64/python2.7/site-packages/six* and /usr/lib64/python3.4/site-packages/six*, reinstalled dev-python/six but it didn't work out.