Silversonic
Posts: 34
Joined: Wed Aug 27, 2014 8:42 pm

Getting the clutter module?

Thu Oct 30, 2014 4:31 pm

I'm trying to follow a guide about running a very simple clutter-bases program in Python

Code: Select all

import clutter
stage=clutter.stage
stage.set_size(500,300)
red=clutter.Color(255,0,0,255)
black=clutter.Color(0,0,0,255)
stage.set_color(black)
stage.show_all()
But of course I need the clutter module first, I keep getting the message "ImportError: No module named Clutter"

Can anyone just give me a quick rundown on how to install clutter? My guide doesn't mention it. I've tried apt-get search clutter and installed libclutter-1.0-0 and libclutter-1.0-dev but neither seems to be sufficient, and I've searched a lot online to no avail.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Getting the clutter module?

Thu Oct 30, 2014 4:52 pm

There's a lot of clutter on the web ;)
Do you have a link to the main page for clutter?
Maybe that can give some clues.

Gr.
Dirk.

Silversonic
Posts: 34
Joined: Wed Aug 27, 2014 8:42 pm

Re: Getting the clutter module?

Fri Oct 31, 2014 2:23 pm

DirkS wrote:There's a lot of clutter on the web ;)
Do you have a link to the main page for clutter?
Maybe that can give some clues.

Gr.
Dirk.
I've prowled all around the site;

http://blogs.gnome.org/clutter/get-it/

I've tried multiple tar files from the get-it section. Every time I download a tar, unzip, I receive errors at either the ./configure stage, where it notifies me I haven't got some required packages installed - and I have no idea where to find these - or I receive errors at the make stage where I get a common error "./son-types.h:131:1: error: unknown type name "G_CONST_RETURN" " or similar.

I really thought this would just be a quick module installation, but it's taken me several hours and I've gotten no further than when I started.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Getting the clutter module?

Fri Oct 31, 2014 3:14 pm

Although you say that the guide you are following doesn't mention it, I wonder if you have considered asking the author of that guide to describe how they got the module installed? They are probably better motivated and informed about this software package than most RPi users, judging from the lack of response to your query...

Using apt-get to install it from a standard repository is not possible, and reading the documentation is possibly informative -

From https://tracker.debian.org/pkg/pyclutter
This package is not in any development repository. This probably means that the package has been removed (or has been renamed). Thus the information here is of little interest ... the package is going to disappear unless someone takes it over and reintroduces it.
That was 3 years ago, and noone has cared enough to reinstate it. I wonder if the project is defunct?

User avatar
paddyg
Posts: 2541
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: Getting the clutter module?

Fri Oct 31, 2014 6:15 pm

also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

Return to “Python”