LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gdesklets can't find gtkhtml2 (https://www.linuxquestions.org/questions/linux-software-2/gdesklets-cant-find-gtkhtml2-267625/)

rebelcan 12-18-2004 01:51 AM

gdesklets can't find gtkhtml2
 
i'm running debian unstable. i've compiled gDesklets from source, and most of the required libraries from source as well, since they weren't avaliable from apt.

gDesklets is now running, but i can't start any displays. all of them have the same error:

Code:

Traceback (most recent call last):
  File "/usr/share/gdesklets/factory/DisplayFactory.py", line 99, in create_display
    dsp.new_child(childtype, settings, children)
  File "/usr/share/gdesklets/display/Display.py", line 219, in new_child
    import targetregistry
  File "/usr/share/gdesklets/display/targetregistry.py", line 18, in ?
    from TargetHTML          import TargetHTML
  File "/usr/share/gdesklets/display/TargetHTML.py", line 6, in ?
    import gtkhtml2
ImportError: No module named gtkhtml2

i've looked around on my computer, and there is a gtkhtml2 python module in :

Code:

# locate gtkhtml2 | grep python
/usr/lib/python2.3/site-packages/gtk-1.2/gtkhtml2.so
/usr/lib/python2.3/site-packages/gtk-2.0/gtkhtml2.la
/usr/lib/python2.3/site-packages/gtk-2.0/gtkhtml2.so
/usr/share/doc/python2.3-gnome2/examples/gtkhtml2
/usr/share/doc/python2.3-gnome2/examples/gtkhtml2/simple-browser.py

so i tried loading the module when in python:

Code:

$ python
Python 2.4 (#2, Dec  3 2004, 17:59:05)
[GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtkhtml2
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named gtkhtml2
>>>

so i set my $PYTHONPATH var with

Code:

$ export PYTHONPATH='/usr/lib/python2.3/site-packages/gtk-2.0'
now this is what i get:
Code:

$ python
Python 2.4 (#2, Dec  3 2004, 17:59:05)
[GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtkhtml2
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: /usr/lib/python2.3/site-packages/gtk-2.0/gtkhtml2.so: undefined symbol: html_selection_get_text

so, what'd i'd like to know, is how to have gdesklets know that the gtkhtml2 module is in that directory, and how to fix the import error that gtkhtml2.so throws at me.

any hints?

rebelcan 12-24-2004 04:21 PM

guess not


All times are GMT -5. The time now is 11:46 AM.