GNOME Bugzilla – Bug 704967
The Python module is not installed where it should
Last modified: 2013-07-27 07:08:41 UTC
The gnomemusic Python module is installed in $(pyexecdir). For example, on Fedora, this is /usr/lib64/python3.3/site-packages on a 64 bits machine, and /usr/lib/python3.3/site-packages on a 32 bits machine. However, the module is pure Python, so it is not arch-specific. As such, it should be installed in $(pythondir), which, on Fedora, is /usr/lib/python3.3/site-packages on all architectures.
Created attachment 250252 [details] [review] Install the Python modules in the arch-independent location
In case it wasn't clear, I am not saying this is a Fedora-specific issue. I'm merely using it as an example, because I have no idea what the equivalent paths are on other distributions. :)
Review of attachment 250252 [details] [review]: It was using $(pythondir) before, but the code needs to add the path of pygobject to PYTHONPATH (see first 4 lines of gnome-music.in), so I just changed $(pythondir) to $(pyexecdir) to make it work. So, half of what the patch does is probably correct (installing gnome-music to pythondir), but not the adding of $(pythondir) to PYTHONPATH. It's best to test the patch against a jhbuild in a distro that doesn't have gtk+ 3.8. If Python correctly founds pygobject of jhbuild and gnome-music didn't crash, it is probably correct :) ::: Makefile.am @@ -57,3 @@ -e s!\@localedir\@!$(localedir)! \ -e s!\@pythondir\@!$(pythondir)! \ - -e s!\@pyexecdir\@!$(pyexecdir)! \ Same as in the other note. ::: gnome-music.in @@ +3,2 @@ import sys, signal, os, locale, gettext +sys.path.insert(1, '@pythondir@') This is the path to pygobject, so it shouldn't be changed back to pythondir. It won't work inside jhbuild.
Created attachment 250253 [details] [review] Install the Python modules in the arch-independent location Here's the new version, which fixes the mess I had created with the previous one. :)
Review of attachment 250253 [details] [review]: Works in my jhbuild in openSUSE 12.3.
Committed as b240c347. Thank you for your bug report.