gtk.gdk module not found
Ciao
nonostante stia usando auto-apt per compilare un sorgente, il configure
mi da questo errore:
checking for python module gtk.gdk... no
configure: error: could not find gtk.gdk module. perhaps pygtk2 is not
installed
configure: error: /bin/sh './configure' failed for osogo
I file configure dovrebbe essere stato scritto bene:
py_mod_var=`echo gtk.gdk'_' | sed 'y%./+-%__p_%'`
echo "$as_me:$LINENO: checking for python module gtk.gdk" >&5
echo $ECHO_N "checking for python module gtk.gdk... $ECHO_C" >&6
if eval "test \"\${py_cv_mod_$py_mod_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
prog="
import sys
try:
import gtk.gdk
except ImportError:
sys.exit(1)
except:
sys.exit(0)
sys.exit(0)"
if $PYTHON -c "$prog" 1>&5 2>&5
then
eval "py_cv_mod_$py_mod_var=yes"
else
eval "py_cv_mod_$py_mod_var=no"
fi
fi
py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
if test "x$py_val" != xno; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
{ { echo "$as_me:$LINENO: error: could not find gtk.gdk module.
perhaps pygtk2 is not installed" >&5
echo "$as_me: error: could not find gtk.gdk module. perhaps pygtk2 is
not installed" >&2;}
{ (exit 1); exit 1; }; }
fi
Il problema forse è che il pkg python2.2-gtk2 (gtk 2) non contiene il
file gtk.py, contenuto invece solo da
python-gtk (gtk 1.2).
Che posso fare? Grazie
--
No, I don't have a drinking problem.
I drink, I get drunk, I fall down.
No problem!
Reply to: