LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-10-2008, 03:07 PM   #1
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 770

Rep: Reputation: 94
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.

Any help appreciated

Thanks
 
Old 08-10-2008, 03:31 PM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
I would try reinstalling pygobject and possibly pygtk for good measure.

You don't say what version of Slackware you have but these come with Slackware 12.1, if you are on a previous version and obtained them elsewhere it looks like they're broken. A SlackBuild for pygtk is available here: http://slackbuilds.org/repository/12.0/libraries/pygtk/ and pygobject here http://slackbuilds.org/repository/12...ies/pygobject/
 
Old 08-11-2008, 01:57 AM   #3
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 770

Original Poster
Rep: Reputation: 94
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
o/pygtk-2.10.5'
make: *** [all] Error 2

Any more ideas?

Thanks
 
Old 08-12-2008, 12:25 PM   #4
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 770

Original Poster
Rep: Reputation: 94
Anyone? Struggling here
 
Old 08-12-2008, 03:29 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10.2 = Python 2.5 = pooched DeVeDe? litlmary Suse/Novell 5 12-21-2006 12:33 AM
DeVeDe 2.6 + Python 2.5 bugfix here! litlmary Linux - Software 1 12-21-2006 12:32 AM
python errors coffeedemon Linux - Newbie 2 05-07-2006 04:18 PM
Bittorrent: python errors davoman Linux - Software 2 04-16-2004 03:45 PM
python errors xconspirisist Linux - Software 1 02-16-2004 07:00 AM


All times are GMT -5. The time now is 04:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration