Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612380 - media-sound/gnome-music will not start
Summary: media-sound/gnome-music will not start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-12 01:36 UTC by imese
Modified: 2017-03-23 16:45 UTC (History)
0 users

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 imese 2017-03-12 01:36:48 UTC
gnome-music will not start, behold:

gene@go:~# gnome-music
Traceback (most recent call last):
  File "/usr/bin/gnome-music", line 16, in <module>
    import gi
  File "/usr/lib64/python3.5/site-packages/gi/__init__.py", line 42, in <module>
    from . import _gi
ImportError: cannot import name '_gi'

But there is a solution in bugzilla https://bugs.gentoo.org/show_bug.cgi?id=509866.

This however is from a few years back.

The solution was to change this:

#!/usr/bin/env python3

to this:

#!/usr/bin/env python3.5
Comment 1 Mart Raudsepp gentoo-dev 2017-03-23 16:45:41 UTC
commit d0a442be5a2f7851c768527571360ccaf453be37
Author: Mart Raudsepp <leio@gentoo.org>
Date:   Thu Mar 23 18:40:54 2017 +0200

    media-sound/gnome-music: fix python and introspection deps handling
    
    Convert from python-r1 to python-single-r1 while we don't have any gnome-music module
    consumers than gnome-music itself, to not have useless site-packages of these.
    Upstream has a hardcoded to python3 shebang, so force it to what python-single-r1
    ended up choosing.
    Remove ugly upstream 3.4 site-packages path inserts that would potentially defeat our
    whole purpose of choosing 3.5 or 3.6 over 3.4 as python provider.
    
    Gentoo-bug: 612380
    Thanks-to: Mike Gilbert <floppym@gentoo.org>

 media-sound/gnome-music/gnome-music-3.22.2-r1.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 profiles/base/package.use                            |  4 ++++
 2 files changed, 67 insertions(+)