LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   python errors when trying to run Devede (https://www.linuxquestions.org/questions/slackware-14/python-errors-when-trying-to-run-devede-661825/)

vdemuth 08-10-2008 02:07 PM

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

bgeddy 08-10-2008 02:31 PM

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/

vdemuth 08-11-2008 12:57 AM

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

vdemuth 08-12-2008 11:25 AM

Anyone? Struggling here

bgeddy 08-12-2008 02:29 PM

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.


All times are GMT -5. The time now is 03:15 PM.