My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 06, 2008 by noisymime
Setup_instructions  

Introduction

This page will give a very brief overview on how to get Gloss up and running on your system. It assumes you already have a working MythTV setup using a version 0.21 backend.

Note: If using Clutter 0.4.x please use SVN rev. 86 as anything past this has been updated for Clutter 0.6

Ubuntu

Gloss was developed on Ubuntu so hence I can give the best instructions for how to get it working on this platform.

Getting Clutter

There are currently two main methods for obtaining Clutter, which is required by Gloss. The first is using the prebuilt binaries and is relatively straightforward. This is currently the recommended method as Gloss is being developed against the Clutter 0.6 release. The second method is compiling from source (releases or SVN) however use of Clutter SVN with Gloss is currently untested. In each case, simply copy the lines into the command prompt, one at a time.

Binaries (apt-get)

  1. If you're using Ubuntu Hardy, then you don't need to add anything, but if you have an earlier version you will need the add the Clutter repository: echo "deb http://debian.o-hand.com gutsy/" | sudo tee -a /etc/apt/sources.list (Replace gutsy with edgy/dapper/fiesty if required)
  2. sudo apt-get update
  3. sudo apt-get install libclutter-0.6-0 libclutter-gst-0.6-0 libclutter-cairo-0.6-0 python-clutter python-mysqldb python-gst0.10 subversion eyed3 gstreamer0.10-fluendo-mpegdemux jackd gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly

General

Compile Clutter from source

Releases of Clutter can be downloaded from: http://www.clutter-project.org/sources/

Getting Gloss

Once you have Clutter installed, getting Gloss running should be fairly easy:

Release

Download the latest release of Gloss: http://code.google.com/p/gloss-mc/downloads/list

SVN

  1. svn checkout http://gloss-mc.googlecode.com/svn/trunk/ gloss-mc
  2. cd gloss-mc

Debian / Ubuntu apt

Gloss is maintained iin an apt repository that can be found @ https://launchpad.net/~gloss-development/+archive

Running Gloss

Gloss can be started simply with:

  1. ./gloss

from within the gloss-mc directory

If you are experiencing problem with Gloss, you can also try starting it with any of the following options:

  1. ./gloss --help: Display the various start up options
  2. ./gloss --debug: Provide additional debug output


Comment by thepizzaking, Jan 29, 2008

I think the fourth step for installing on Ubuntu should be: # svn checkout -r 86 http://gloss-mc.googlecode.com/svn/trunk/ gloss-mc Since step three installs clutter 0.4 which isn't supported by r > 86

Comment by netwolfuk, Feb 13, 2008

If you've installed Clutter from SVN, you can either export LD_LIBRARY_PATH (as above), or run sudo ldconfig (on Ubuntu 7.10) to rebuild the dynamic library cache since /usr/local/lib is already in /etc/ld.so.conf.d/libc.conf

Comment by noisymime, Feb 13, 2008

Thanks netwolfuk, I'll update the page with that info!

Comment by bolanster, Apr 28, 2008

Hi, I'm interested in trying Clutter as a front-end for Myth on my pc, but I'm getting the following error when trying to run python gloss.py

File "/home/john/dev/gloss/gloss-mc/ui_elements/ReflectionTexture??.py", line 4, in <module>

from clutter.cluttercairo import CairoTexture??

ImportError??: No module named cluttercairo

I have installed clutter, and even clutter-cairo in attempt to resolve this but still get the same error. Any suggestions?

Comment by noisymime, Apr 28, 2008

Hi bolanster,

I've updated the instructions above with the added cairo requirements. If you're compiling Clutter from source, make sure you install pycairo-dev, then clutter-cairo, then compile pyclutter and install (In that order). Shoot me an email if you're still having any troubles.

Comment by lindsay.mathieson, May 22, 2008

Looks really good! problems installing though :)

Have followed the steps above for Hardy, but when I try to run gloss I get the following: 'python gloss.py

(gloss.py:6674): WARNING : failed to bind GLXGetProcAddress or GLXGetProcAddressARB Traceback (most recent call last):

File "gloss.py", line 26, in <module>
from SplashScr? import SplashScr?
File "/home/lindsay/gloss-mc/SplashScr?.py", line 3, in <module>
import pygst
ImportError?: No module named pygst'

Comment by noisymime, May 22, 2008

Hi lindsay, looks like I missed a dependency. Try installing 'python-gst0.10', should fix the problem.

Comment by lindsay.mathieson, May 22, 2008

That did the trick, thanks

Comment by brock.haywood, Jun 03, 2008

I've installed clutter via apt on hardy but when i try to run gloss.py i get the following error: Fatal Python error: can't initialise module clutter

any ideas?

Comment by noisymime, Jun 04, 2008

Hi brock.haywood

Did you install the python-clutter package as well as just libclutter?

Comment by brock.haywood, Jun 04, 2008

hi there,

yes, i installed by cutting and pasting the command supplied in the guide above. i did confirm, however, that python-clutter installed correctly.

i should point out that i am on kubuntu. is it possible that there are some gdk packages that clutter unwittingly depends on?

Comment by gronslet, Jun 04, 2008

I just tried to install after some nice packagers fixed clutter-cairo, but it didn't work:

# yum install clutter-devel pyclutter pyclutter-gst pyclutter-gtk pycairo-devel clutter-cairo # ldconfig

$ cd svn/gloss-mc $ svn up $ python gloss.py Traceback (most recent call last):

File "gloss.py", line 26, in <module>
from SplashScr? import SplashScr?
File "/home/gronslet/download/svn/gloss-mc/SplashScr?.py", line 9, in <module>
from ui_elements.rounded_rectangle import RoundedRectangle?
File "/home/gronslet/download/svn/gloss-mc/ui_elements/rounded_rectangle.py", line 4, in <module>
from clutter.cluttercairo import CairoTexture?
ImportError?: No module named cluttercairo


This is on Fedora 8.

Aha - I just did: # yum install pyclutter-cairo python-eyed3

And now it almost worked: Found Module: slideshow Found Module: video_player Found Module: myth_tv_player Found Module: dvd_player Found Module: music_player DB Version error: Expected version 1214, found version 1160 Attempting to continue, however this will almost certainly fail Segmentation fault

Any ideas?

Comment by noisymime, Jun 04, 2008

@gronslet

Hi, looks like you're running the Myth 0.20 backend? Gloss has been updated now to work with 0.21 and will have problems with 0.20 system.

@brock.haywood

It is possible that the Clutter packages don't have all the necessary dependencies under KDE. I'll have to try a vanilla Kubuntu install to see if I can find anything missing. Is this Kubuntu 8.04?

Comment by brock.haywood, Jun 04, 2008

@noisymime

Yes, it is Kubuntu 8.04

Comment by brock.haywood, Jun 04, 2008

well.. i'm not sure what changed this evening (haven't done any updates etc) but i re-installed the packages (for the third or fourth time) and now it runs fine .. i did have to install librsvg2-common to get svg support under kubuntu

Comment by gronslet, Jun 05, 2008

Yes, I am running mythtv-0.20.2-169.fc6, updated several times from a Mythdora 4.0 (Fedora 6) via atrpms. Updates are now discontinued :/

Anyway - thanks for the reply! (or maybe there is a known good svn revision that works with mythtv 0.20 that I can try just for the fun of it?)

Comment by noisymime, Jun 05, 2008

@gronslet

A quick look in SVN shows that the bulk of the 0.21 updates were made around r199. If you try around the r190-r198 range you should get a working one. Be aware thought that there's been a lot of other fixes and additions since then.

Comment by jsage...@verizon.net, Jun 05, 2008

I have installed clutter, clutter-cairo, clutter-gst, clutter-gtk & pyclutter. I checked out revision 228 of gloss and am getting the following when I run it:

(gloss.py:3912): GStreamer-WARNING : Failed to load plugin '/usr/lib/gstreamer-0.10/libgstneonhttpsrc.so': /usr/lib/gstreamer-0.10/libgstneonhttpsrc.so: undefined symbol: ne_get_status Found Module: myth_tv_player Found Module: video_player Found Module: dvd_player Found Module: slideshow Found Module: music_player Segmentation fault

Any thoughts as to how I should fix this? I am quite anxious to toy around with gloss. The video clips look great!

Comment by dbourgoyne, Jun 06, 2008

Any clue on the following error?

$ python gloss.py Traceback (most recent call last):

File "gloss.py", line 26, in ?
from GlossMgr? import GlossMgr?
File "/home/foo/gloss/gloss-mc/GlossMgr?.py", line 4, in ?
from ui_elements.message import Message
File "/home/foo/gloss/gloss-mc/ui_elements/message.py", line 6
class Message():
^
SyntaxError?: invalid syntax

I have the following versions installed:

clutter-0.6.2/ clutter-gst-0.6.1/ clutter-cairo-0.6.2/ clutter-gtk-0.6.0/

Gloss Rev 229

Comment by noisymime, Jun 07, 2008

Hi, I believe this is related to the python version you're using. Do you know if you have 2.4 or 2.5?

Gloss requires 2.5 to operate correctly.

Comment by jsage...@verizon.net, Jun 08, 2008

I am getting the following segfault when I try to run gloss-mc:

371182.821753? python3963?: segfault at 10 ip b7e6fe2b sp bf95b590 error 4 in libpython2.5.so.1.0b7e0c000+cf000?

I am using python-2.5.2, pyclutter-0.6.2, clutter-0.6.4, clutter-cairo-0.6.2, clutter-gst-0.6.1, clutter-gtk-0.6.0 and gloss-mc svn 231.

Comment by keathmilligan, Jun 22, 2008

Hi, I've got Gloss running on Ubuntu 8, but for some reason, the window does not show full screen. It isn't showing a window frame, but the stage canvas is shifted down and to the right slightly as if it is still making room for a window border. Any ideas? I've tried explicitly setting my front-end window size to the screen resolution as well as leaving it at 0,0. I also tried modifying the gloss.py MainApp? init routine to force self.stage.fullscreen() and self.stage.set_property("fullscreen", True).

Comment by keathmilligan, Jun 22, 2008

@myself

nevermind - the full screen issue is another compiz fusion + intel gfx issue apparently. Turning off the effects fixes it.

Comment by patrick.oleary, Jul 02, 2008

Just drawing attention here to  Issue 9  which I just filed, a hang on startup with the debug log below:

manager@prandtl:~/gloss-mc$ python gloss.py --debug

(gloss.py:7269): WARNING : failed to bind GLXGetProcAddress or GLXGetProcAddressARB Found Module: music_player Found Module: dvd_player Found Module: tests Found Module: myth_tv_player Found Module: slideshow Found Module: video_player Using debug mode Music Artist SQL: SELECT FROM music_directories

(gloss.py:7269): Clutter-Gst-WARNING : Unable to create playbin GST element.

(gloss.py:7269): Clutter-Gst-WARNING : Failed to initiate suitable playback pipeline. Music Base Dir: /var/lib/mythtv/music/ Music Artist SQL: SELECT FROM music_artists ORDER BY artist_name Loading module: Music Loading module: DVD Loading module: Tests Traceback (most recent call last):

File "gloss.py", line 114, in loadGloss
temp_menu_item.setAction(tempMod.action())
File "/home/manager/gloss-mc/modules/tests/tests.py", line 36, in action File "/home/manager/gloss-mc/modules/tests/tests.py", line 176, in generateMenu File "/home/manager/gloss-mc/interfaces/ListMenu2?/ListMenu2?.py", line 143, in selectFirst
self.label_list.get_current_item().get_item_textures().show()
AttributeError?: 'NoneType?' object has no attribute 'get_item_textures'

System is Mythbuntu 8.04.

Comment by patrick.oleary, Jul 02, 2008

Just drawing attention here to  Issue 9  which I just filed, a hang on startup with the debug log below. System is Mythbuntu 8.04.

manager@prandtl:~/gloss-mc$ python gloss.py --debug

** (gloss.py:7269): WARNING **: failed to bind GLXGetProcAddress or GLXGetProcAddressARB
Found Module: music_player
Found Module: dvd_player
Found Module: tests
Found Module: myth_tv_player
Found Module: slideshow
Found Module: video_player
Using debug mode
Music Artist SQL: SELECT * FROM music_directories

(gloss.py:7269): Clutter-Gst-WARNING **: Unable to create playbin GST element.

(gloss.py:7269): Clutter-Gst-WARNING **: Failed to initiate suitable playback pipeline.
Music Base Dir: /var/lib/mythtv/music/
Music Artist SQL: SELECT * FROM music_artists ORDER BY artist_name
Loading module: Music
Loading module: DVD
Loading module: Tests
Traceback (most recent call last):
  File "gloss.py", line 114, in loadGloss
    temp_menu_item.setAction(tempMod.action())
  File "/home/manager/gloss-mc/modules/tests/tests.py", line 36, in action
  File "/home/manager/gloss-mc/modules/tests/tests.py", line 176, in generateMenu
  File "/home/manager/gloss-mc/interfaces/ListMenu2/ListMenu2.py", line 143, in selectFirst
    self.label_list.get_current_item().get_item_textures().show()
AttributeError: 'NoneType' object has no attribute 'get_item_textures'

Sign in to add a comment
Hosted by Google Code