LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Help on driconf (gtk and pygtk) (http://www.linuxquestions.org/questions/slackware-14/help-on-driconf-gtk-and-pygtk-581488/)

zaqwe 09-01-2007 01:07 PM

Problem with driconf (gtk and pygtk)
 
When I install driconf it says this error
Code:

*** Warning: importing GTK version 2 doesn't work.
*** Warning: DRIconf will probably not work for the above reason(s).

Then I installed GTK2 and tried to run driconf and it came with this error
Code:

Traceback (most recent call last):
  File "/usr/local/bin/driconf", line 26, in <module>
    import driconf
  File "/usr/local/lib/driconf/driconf.py", line 24, in <module>
    import pygtk
ImportError: No module named pygtk

After that I installed pygtk too. But it didnt help and I tried to install driconf again, but it just said the same error even when GTK2 was installed..
Do I have to configure gtk some how so driconf is able to import it?

EDIT :
Now I installed from tgz files and get this error :
Code:

Traceback (most recent call last):
  File "/usr/local/bin/driconf", line 26, in <module>
    import driconf
  File "/usr/local/lib/driconf/driconf.py", line 26, in <module>
    import gtk
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 48, in <module>
    from gtk import _gtk
  File "/usr/lib/python2.5/site-packages/cairo/__init__.py", line 1, in <module>
    from _cairo import *
ImportError: /usr/lib/python2.5/site-packages/cairo/_cairo.so: undefined symbol: cairo_clip_extents


Road_map 09-01-2007 01:26 PM

Did you install pygtk from sources or the *.tgz package?

zaqwe 09-01-2007 03:05 PM

Quote:

Originally Posted by Road_map (Post 2877918)
Did you install pygtk from sources or the *.tgz package?

I installed it from sources.

Road_map 09-01-2007 03:18 PM

Sometimes, in previous releases, I remember that for some libraries was necessary to copy /var/cache/packages/<lib_name>.pc to /usr/lib/pkgconfig and again ldconfig.

I'm not very sure for this solution in Slackware 12.0, but you can try to find if you have pygtk*.pc in /usr/lib/pkgconfig.

Edit:
From /usr/local/lib/pkgconfig to /usr/lib/pkgconfig

zaqwe 09-01-2007 05:23 PM

Quote:

Originally Posted by Road_map (Post 2878001)
Sometimes, in previous releases, I remember that for some libraries was necessary to copy /var/cache/packages/<lib_name>.pc to /usr/lib/pkgconfig and again ldconfig.

I'm not very sure for this solution in Slackware 12.0, but you can try to find if you have pygtk*.pc in /usr/lib/pkgconfig.

Edit:
From /usr/local/lib/pkgconfig to /usr/lib/pkgconfig

No difference after that.. And yes, I have pygtk*.pc in there.

zaqwe 09-02-2007 12:59 PM

Does anyone have any ideas?

zaqwe 09-02-2007 05:25 PM

Now I installed them from .tgz files and i get this error when running driconf
Code:

Traceback (most recent call last):
  File "/usr/local/bin/driconf", line 26, in <module>
    import driconf
  File "/usr/local/lib/driconf/driconf.py", line 26, in <module>
    import gtk
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 48, in <module>
    from gtk import _gtk
  File "/usr/lib/python2.5/site-packages/cairo/__init__.py", line 1, in <module>
    from _cairo import *
ImportError: /usr/lib/python2.5/site-packages/cairo/_cairo.so: undefined symbol: cairo_clip_extents


zaqwe 09-03-2007 08:46 AM

bring up my post. :)


All times are GMT -5. The time now is 08:12 AM.