Import-Error: cannot import name cluttergtk

Asked by whukes

When running ./entertainer I get the following error:

Traceback (most recent call last):
  File "./entertainer", line 15, in <module>
    main()
  File "/home/admin/tmp/entertainer-0.2/entertainerlib/frontend/__init__.py", line 13, in main
    from entertainerlib.frontend.frontend_client import FrontendClient
  File "/home/admin/tmp/entertainer-0.2/entertainerlib/frontend/frontend_client.py", line 24, in <module>
    from entertainerlib.frontend.gui.user_interface import UserInterface
  File "/home/admin/tmp/entertainer-0.2/entertainerlib/frontend/gui/user_interface.py", line 12, in <module>
    from clutter import cluttergtk
ImportError: cannot import name cluttergtk
[admin@buzzard entertainer-0.2]$ ./entertainer >log
Traceback (most recent call last):
  File "./entertainer", line 15, in <module>
    main()
  File "/home/admin/tmp/entertainer-0.2/entertainerlib/frontend/__init__.py", line 13, in main
    from entertainerlib.frontend.frontend_client import FrontendClient
  File "/home/admin/tmp/entertainer-0.2/entertainerlib/frontend/frontend_client.py", line 24, in <module>
    from entertainerlib.frontend.gui.user_interface import UserInterface
  File "/home/admin/tmp/entertainer-0.2/entertainerlib/frontend/gui/user_interface.py", line 12, in <module>
    from clutter import cluttergtk

---------------------------------------------------------------------

I am running archlinux and have the latest version of clutter-gtk installed. Thanks for the help and if you need any more information please ask.

Question information

Language:
English Edit question
Status:
Solved
For:
Entertainer Media Center Edit question
Assignee:
No assignee Edit question
Solved by:
Matt Layman
Solved:
Last query:
Last reply:
Revision history for this message
Best Matt Layman (mblayman) said :
#1

The version of Entertainer that you are running is too old for the version of clutter that you are running. We had to make some updates to Entertainer when the clutter team released a new version. Entertainer is now compatible with the newest stable clutter (0.8). You can either run the 0.3 beta from the source package, or run from a branch, or use the Entertainer Release Team's PPA (although I guess you won't be able to use this last option since you are running on ArchLinux). Any of those should work with 0.8 clutter. Let me know if that doesn't work for you.

Revision history for this message
Paul Hummer (rockstar) said :
#2

> I am running archlinux and have the latest version of clutter-gtk installed. Thanks for the help and if you need any more information please ask.
>
>

I'm wondering if the pyclutter bindings have the gtk binding stuff in
them. It sounds like we should examine the pyclutter library.

What if import clutter from a python console and then type

print clutter.__version__

Revision history for this message
Matt Layman (mblayman) said :
#3

Paul,

That's not the issue. This is one of things that Samuel had to change when working with 0.8.

This is from a pyclutter release announcement:

IMPORTANT: The cluttercairo, cluttergst and cluttergtk submodules of
clutter have been moved into their own modules. In order to import them,
the import directive must be changed from:

       from clutter import cluttercairo
       from clutter import cluttergst
       from clutter import cluttergtk

to:

       import cluttercairo
       import cluttergst
       import cluttergtk

You can notice from whukes' traceback that it has the old call version so it must be from pre-0.8 preparation of Entertainer.

Revision history for this message
whukes (whukes) said :
#4

Thanks Matt Layman, that solved my question.