[SM-Discuss] PERFORCE change 74021 by Sergey A. Lipnevich for review

Sergey A. Lipnevich sergey at sourcemage.org
Sat Feb 4 11:13:20 EST 2006


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?

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 at bullet /root
$ dispel pycairo
Dispelled spell: pycairo
root at 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.
> 



More information about the SM-Discuss mailing list