Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] PERFORCE change 74021 by Sergey A. Lipnevich for review

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: SM Discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] PERFORCE change 74021 by Sergey A. Lipnevich for review
  • Date: Sat, 4 Feb 2006 17:54:26 +0100

On Sat, Feb 04, 2006 at 11:13:20AM -0500, Sergey A. Lipnevich wrote:
> Arwed,
>
> I tried dispelling pycairo and "import gtk" stopped working. The log is
> below (please disregard "couldn't open display" thing, X is not
> started). I looked at gtk-2.0/gtk/__init__.py, and there is no mention
> of cairo, so what seems to be happening it's somehow detecting it. So
> would you like me to make this depends optional?

It seems to be optional. Rebuilding pygtk2 without pycairo installed
gives a working pygtk2. There's no switch to turn it off explicitly
though.

>
> Sergey.
>
> $ python -c 'import gtk'
>
> (-c:32097): Gtk-WARNING **: Locale not supported by C library.
> Using the fallback 'C' locale.
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line
> 38, in ?
> from _gtk import *
> RuntimeError: could not open display
> root@bullet /root
> $ dispel pycairo
> Dispelled spell: pycairo
> root@bullet /root
> $ python -c 'import gtk'
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line
> 38, in ?
> from _gtk import *
> ImportError: No module named cairo
>
>
> Arwed von Merkatz wrote:
> >>==== //sgl/grimoires/devel/x11-toolkits/pygtk2/DEPENDS#5 (xtext) ====
> >>
> >>@@ -1,4 +1,5 @@
> >> depends pygobject &&
> >>+depends pycairo &&
> >> depends gtk+2 &&
> >> depends libglade2 &&
> >>
> >>
> >>==== //sgl/grimoires/devel/x11-toolkits/pygtk2/HISTORY#13 (text) ====
> >>
> >>@@ -1,3 +1,6 @@
> >>+2006-02-01 Sergey Lipnevich <sergey AT sourcemage.org>
> >>+ * DEPENDS: add pycairo.
> >
> >
> > Shouldn't that be optional? I have pygtk2 2.8.4 installed (and working)
> > fine
> > without pycairo.
> >
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>

--
Arwed v. Merkatz Source Mage GNU/Linux developer
http://www.sourcemage.org




Archive powered by MHonArc 2.6.24.

Top of Page