Python import gtk error



Title: Python import gtk error

Hi list,

I have installed gtk+-2.16.6 and pygtk-2.16.0 as part of my Python application on 64-bit Linux. The Python installation directory is /home/sgong/iapp/lib/python2.6/

But if I move my application to another location or give it to other user, "import gtk" will give error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sgong/iapp/OpenEV/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: /home/sgong/iapp/OpenEV/lib/python2.6/site-packages/gtk-2.0/gtk/_gtk.so: undefined symbol: gtk_recent_action_get_type

Did I make an installation error or use the wrong gtk version?

Thanks,
Shawn



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]