SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
python errors when trying to run Devede
Hi all,
I have downloaded the latest version of Devede, and it installed without any problems.
But, when I try and run it I get this error
Code:
Traceback (most recent call last):
File "//usr/local/bin/devede", line 27, in <module>
import gtk
File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 38, in <module>
import gobject as _gobject
File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py", line 30, in <module>
from gobject.constants import *
File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/constants.py", line 22, in <module>
from _gobject import type_from_name
ImportError: /usr/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.so: undefined symbol: g_timeout_add_seconds_full
I thought this must be a python problem, so I re-installed python, but get the same result. If I run python directly and try to import gtk I get this error
Code:
Python 2.5.2 (r252:60911, Mar 1 2008, 13:52:45)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 38, in <module>
import gobject as _gobject
File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py", line 30, in <module>
from gobject.constants import *
File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/constants.py", line 22, in <module>
from _gobject import type_from_name
ImportError: /usr/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.so: undefined symbol: g_timeout_add_seconds_full
As you can see, it is the same error. Anyone come across this. I have tried google, but the only reference I can find is on slacky.eu, and unfortunately I don't speak Italian.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
Tried as you suggested using the slackbuilds, but pygtk fails to build with the following error during the make cycle:
Code:
In file included from ./pygtk.h:8,
from gtkunixprintmodule.c:28:
/usr/include/gtk-2.0/gtk/gtk.h:48:30: error: gtk/gtkbuildable.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:49:28: error: gtk/gtkbuilder.h: No such file or directory
In file included from /usr/include/gtk-2.0/gtk/gtk.h:52,
from ./pygtk.h:8,
from gtkunixprintmodule.c:28:
/usr/include/gtk-2.0/gtk/gtkcelllayout.h:102: error: expected ')' before '*' token
/usr/include/gtk-2.0/gtk/gtkcelllayout.h:108: error: expected ')' before '*' token
/usr/include/gtk-2.0/gtk/gtkcelllayout.h:113: error: expected ')' before '*' token
In file included from /usr/include/gtk-2.0/gtk/gtk.h:104,
from ./pygtk.h:8,
from gtkunixprintmodule.c:28:
/usr/include/gtk-2.0/gtk/gtkiconview.h:26:28: error: gtk/gtktooltip.h: No such file or directory
In file included from ./pygtk.h:8,
from gtkunixprintmodule.c:28:
/usr/include/gtk-2.0/gtk/gtk.h:146:33: error: gtk/gtkrecentaction.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:155:32: error: gtk/gtkscalebutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:202:33: error: gtk/gtkvolumebutton.h: No such file or directory
make[2]: *** [gtkunixprint_la-gtkunixprintmodule.lo] Error 1
make[2]: Leaving directory `/tmp/SBo/pygtk-2.10.5/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SB
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
I take it from your reply you are running a version of Slackware prior to 12.1 - which comes with pygtk as is.
I have tried the Slackbuild on a Slackware 12 box with pygobject-2.12.1 built from a Slackbuild and pycairo-1.4.0 again from a Slackbuild and pygtk builds fine.
Are you on Slackware 12.0 ?
P.S. - Just noticed your profile Slackware (current). You do know Slackware current has it's own copy of pygtk I take it ? If you are in fact running current I suggest reinstalling pygobject and pygtk.
I have current on a test box and running "import gtk" from python works ok.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.