hi, I wrote a small patch but still it does not work fine, see following traceback, anyhow I attach it
a. --- Traceback (most recent call last): File "./bin/freevo2", line 77, in <module> import freevo2.gui File "/home/debdev/.local/lib/python2.7/site-packages/freevo2/__init__.py", line 32, in <module> from core import * File "/home/debdev/.local/lib/python2.7/site-packages/freevo2/core/__init__.py", line 40, in <module> exec('import %s as module' % module) File "<string>", line 1, in <module> File "/home/debdev/.local/lib/python2.7/site-packages/freevo2/core/taskmanager.py", line 46, in <module> from .. import gui File "/home/debdev/.local/lib/python2.7/site-packages/freevo2/gui/__init__.py", line 36, in <module> from stage import Stage, config File "/home/debdev/.local/lib/python2.7/site-packages/freevo2/gui/stage.py", line 89, in <module> class Layer(kaa.candy.Layer, ScaledGroup): AttributeError: 'module' object has no attribute 'Layer' --- On 20/04/2013 20:35, A Mennucc wrote: > hi, > > I wanted to give a try to freevo2 in my Debian Wheezy box but it spit > the traceback in attachment, not finding python-clutter . the problem is > that python-clutter does not exist anymore, nowadays clutter is imported > using > > from gi.repository import Clutter > a. > > > > ------- > > Traceback (most recent call last): > File "/home/debdev/.local/bin/freevo2", line 77, in <module> > import freevo2.gui > File > "/home/debdev/.local/lib/python2.7/site-packages/freevo2/__init__.py", > line 32, in <module> > from core import * > File > "/home/debdev/.local/lib/python2.7/site-packages/freevo2/core/__init__.py", > line 40, in <module> > exec('import %s as module' % module) > File "<string>", line 1, in <module> > File > "/home/debdev/.local/lib/python2.7/site-packages/freevo2/core/taskmanager.py", > line 46, in <module> > from .. import gui > File > "/home/debdev/.local/lib/python2.7/site-packages/freevo2/gui/__init__.py", > line 36, in <module> > from stage import Stage, config > File > "/home/debdev/.local/lib/python2.7/site-packages/freevo2/gui/stage.py", > line 36, in <module> > import kaa.candy > File > "/home/debdev/.local/lib/python2.7/site-packages/kaa/candy/__init__.py", > line 44, in <module> > from widgets import * > File > "/home/debdev/.local/lib/python2.7/site-packages/kaa/candy/widgets/__init__.py", > line 42, in <module> > raise ImportError('error importing %s: %s' % (name, module)) > ImportError: error importing text: No module named clutter > >
From cedfd204593229f669b695bed083e69ff1ac989e Mon Sep 17 00:00:00 2001 From: A Mennucc <mennu...@debian.org> Date: Sat, 20 Apr 2013 21:17:38 +0200 Subject: [PATCH] import clutter using introspection --- src/widgets/text.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/widgets/text.py b/src/widgets/text.py index b6d0aa6..95b1939 100644 --- a/src/widgets/text.py +++ b/src/widgets/text.py @@ -39,7 +39,14 @@ import re # is never initialized and its main loop is not started. If someone # knows a better way to get the intrinsic size, please change this. import pango -import clutter +try: + import clutter +except ImportError: + #http://clutter.wikidot.com/tut:basic + from gi.repository import Clutter as clutter + import sys + clutter.init(sys.argv) + from widget import Widget from ..core import Color, Font -- 1.7.10.4
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel