Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631346 - [seden overlay] app-emulation/fs-uae-launcher - ImportError: No module named 'six.moves'
Summary: [seden overlay] app-emulation/fs-uae-launcher - ImportError: No module named ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sven Eden
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-18 20:31 UTC by Phil Rigby
Modified: 2020-04-19 16:23 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 Phil Rigby 2017-09-18 20:31:29 UTC
Attempting to launch fs-uae-launcher from the command line (package pulled down from seden overlay) results in this:

Unhandled exception detected in thread MainThread:
  ImportError:__init__.py:<module>:49

Traceback (most recent call last):
  File "/usr/bin/fs-uae-launcher", line 61, in <module>
    main()
  File "/usr/bin/fs-uae-launcher", line 58, in main
    launcher.apps.main()
  File "/usr/share/fs-uae-launcher/launcher/apps/__init__.py", line 73, in main
    app_main()
  File "/usr/share/fs-uae-launcher/launcher/apps/fs_uae_launcher.py", line 11, in app_main
    from launcher.fs_uae_launcher import FSUAELauncher
  File "/usr/share/fs-uae-launcher/launcher/fs_uae_launcher.py", line 8, in <module>
    import fsui
  File "/usr/share/fs-uae-launcher/fsui/__init__.py", line 19, in <module>
    from fsui.qt.Icon import Icon
  File "/usr/share/fs-uae-launcher/fsui/qt/Icon.py", line 2, in <module>
    from fsbc.resources import Resources
  File "/usr/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'


I believe the module is installed correctly:
undertaker ~ # pip install --user six
Requirement already satisfied: six in ./.local/lib64/python3.4/site-packages

undertaker ~ # emerge --info
Portage 2.3.8 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r4, 4.13.1-gentoo x86_64)
=================================================================
System uname: Linux-4.13.1-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1075T_Processor-with-gentoo-2.3
KiB Mem:    24607744 total,   1975348 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 18 Sep 2017 13:00:01 +0000
Head commit of repository gentoo: cf356cd2645b3ad5def69b7130d62093d2e6ea28
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

gentoo-playground
    location: /var/lib/layman/gentoo-playground
    masters: gentoo
    priority: 50

seden
    location: /var/lib/layman/seden
    masters: gentoo
    priority: 50

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X \ a52 aac acl acpi activities alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cddb cdio cdr cli consolekit corefonts cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode encoder exif fam ffmpeg firefox flac fontconfig fortran gdbm gif glamor gnome-keyring gpm gtk gtk3 htmlthumbs iconv jpeg jpeg2k kate kde kipi kwallet lame lastfm lcms ldap legacy-systray libnotify libvisual mad mng modplug modules moodbar mov mp3 mp4 mpeg multilib musicbrainz ncurses nls nptl nvidia-settings ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 quicktime rdp readline sdl seccomp semantic-desktop session spell ssl startup-notification svg symlink taglib tcpd thumbnail tiff toolbar truetype udev udisks unicode upower usb vaapi vdpau vim vim-syntax vorbis vpx widgets win32codecs win64codecs wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

If more info is required, please let me know...
Comment 1 Sven Eden 2017-09-19 13:40:52 UTC
Curious... I have dev-python/six with PYTHON_TARGETS="python2_7 python3_5" installed, and fs-uae-launcher works just fine.

However, this:

--------
> undertaker ~ # pip install --user six
> Requirement already satisfied: six in ./.local/lib64/python3.4/site-packages
--------

leads to the following questions:

Doe you have dev-python/six installed at all?
Comment 2 Phil Rigby 2017-09-19 14:04:33 UTC
It appears so:

undertaker ~ # emerge -a dev-python/six

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/six-1.10.0 

Would you like to merge these packages? [Yes/No] n

Quitting.

equndertaker ~ # equery uses dev-python/six
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-python/six-1.10.0:
 U I
 - - doc                      : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 + + python_targets_python2_7 : Build with Python 2.7
 + + python_targets_python3_4 : Build with Python 3.4
 - - test                     : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in
                                make.conf/package.use anymore
undertaker ~ #

It also seems to be built against Python 2.7 and 3.4 - I don't have a 3.5 option as you suggest, not sure if that makes any difference.
Comment 3 Phil Rigby 2017-09-19 14:05:18 UTC
It appears so:

undertaker ~ # emerge -a dev-python/six

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/six-1.10.0 

Would you like to merge these packages? [Yes/No] n

Quitting.

equndertaker ~ # equery uses dev-python/six
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-python/six-1.10.0:
 U I
 - - doc                      : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 + + python_targets_python2_7 : Build with Python 2.7
 + + python_targets_python3_4 : Build with Python 3.4
 - - test                     : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in
                                make.conf/package.use anymore
undertaker ~ #

It also seems to be built against Python 2.7 and 3.4 - I don't have a 3.5 option as you suggest, not sure if that makes any difference.
Comment 4 Sven Eden 2017-09-19 15:09:14 UTC
(In reply to Phil Rigby from comment #3)
> It also seems to be built against Python 2.7 and 3.4 - I don't have a 3.5
> option as you suggest, not sure if that makes any difference.

That is odd... The output should be:

========
 ~ # equery uses dev-python/six
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-python/six-1.10.0:
 U I
 - - doc                      : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - python_targets_pypy      : Build with PyPy
 - - python_targets_pypy3     : Build with PyPy3
 + + python_targets_python2_7 : Build with Python 2.7
 - - python_targets_python3_4 : Build with Python 3.4
 + + python_targets_python3_5 : Build with Python 3.5
 - - python_targets_python3_6 : Build with Python 3.6
 - - test                     : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in
                                make.conf/package.use anymore
========


Please run : 

--------
 ~ # equery s dev-python/six
 * dev-python/six-1.10.0
         Total files : 21
         Total size  : 602.62 KiB
--------

and

--------
 ~ # equery k dev-python/six
* Checking dev-python/six-1.10.0 ...
   21 out of 21 files passed
--------

six is relatively small. Perhaps re-emerging may fix this?
It has definitely nothing to do with fs-uae-launcher, though.
Comment 5 Phil Rigby 2017-09-19 15:16:25 UTC
undertaker ~ # equery s dev-python/six
 * dev-python/six-1.10.0
         Total files : 20
         Total size  : 404.27 KiB
undertaker ~ # equery k dev-python/six
* Checking dev-python/six-1.10.0 ...
   20 out of 20 files passed


Did:
emerge -a dev-python/six
...
...
...
ecompressdir: bzip2 -9 /usr/share/doc

>>> Installing (1 of 1) dev-python/six-1.10.0::gentoo

>>> Recording dev-python/six in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


undertaker ~ # equery s dev-python/six
 * dev-python/six-1.10.0
         Total files : 20
         Total size  : 404.27 KiB
undertaker ~ # equery k dev-python/six
* Checking dev-python/six-1.10.0 ...
   20 out of 20 files passed

undertaker ~ # 


Same thing.  I tend to be stable for most things, not sure if that's why we're seeing the difference.  Only my kernel and a few other select items are ~amd64 on this system.
Comment 6 Phil Rigby 2017-10-03 14:06:22 UTC
To relieve some boredom this week I put ACCEPT_KEYWORDS="~amd64" into make.conf and did and emerge -auDN @world... 534 packages later fs-uae-launcher starts now, so wherever the problem is, it's fixed in unstable (oh the irony) but I've no idea what caused or resolved the issue.
Comment 7 Sven Eden 2017-10-06 13:10:25 UTC
(In reply to Phil Rigby from comment #6)
> To relieve some boredom this week I put ACCEPT_KEYWORDS="~amd64" into
> make.conf and did and emerge -auDN @world... 534 packages later
> fs-uae-launcher starts now, so wherever the problem is, it's fixed in
> unstable (oh the irony) but I've no idea what caused or resolved the issue.

I am glad this was fixed for you. But on the other hand it is a pity that we didn't find out, yet, which package did the trick.

Until the end of next week I am rather limited in my spare time. But I will try to find out what dependency it is, so I can have it added to the ebuild. Once that is accomplished, this issue shall be banned. :-)
Comment 8 James Le Cuirot gentoo-dev 2019-04-20 10:10:58 UTC
Sven, this package is in the Gentoo tree now. I think this should be closed.