Re: freevo2 needs clutter python, that is no more

A Mennucc <[email protected]> Sat, 20 Apr 2013 21:23:43 +0200
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============0864346341845601756==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="----enig2FAEKKCWQQKFUMAFWBBAP"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2FAEKKCWQQKFUMAFWBBAP
Content-Type: multipart/mixed; boundary="------------090300090105040000050508"

This is a multi-part message in MIME format.
--------------090300090105040000050508
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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=
=2Epy",
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 i=
s
> that python-clutter does not exist anymore, nowadays clutter is importe=
d
> 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/taskmanag=
er.py",
> line 46, in <module>
>     from .. import gui
>   File
> "/home/debdev/.local/lib/python2.7/site-packages/freevo2/gui/__init__.p=
y",
> 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/__in=
it__.py",
> line 42, in <module>
>     raise ImportError('error importing %s: %s' % (name, module))
> ImportError: error importing text: No module named clutter
>
>


--------------090300090105040000050508
Content-Type: text/x-diff; name="0001-import-clutter-using-introspection.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="0001-import-clutter-using-introspection.patch"

=46rom cedfd204593229f669b695bed083e69ff1ac989e Mon Sep 17 00:00:00 2001
From: A Mennucc <[email protected]>
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)
+
=20
 from widget import Widget
 from ..core import Color, Font
--=20
1.7.10.4


--------------090300090105040000050508--

------enig2FAEKKCWQQKFUMAFWBBAP
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlFy60IACgkQ9B/tjjP8QKTicgCbBSwvRWHlgp2J0uK6Gng6iZtn
Vi8An3joOvygWaGSZEB4drMiY+9OH70i
=mzgl
-----END PGP SIGNATURE-----

------enig2FAEKKCWQQKFUMAFWBBAP--


--===============0864346341845601756==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
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
--===============0864346341845601756==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

--===============0864346341845601756==--