Error building package (uses python)

2003-04-22 Thread fbrian
Hi:

I have a package that I am getting ready for my sponsor to upload.
I began getting these errors when I upgraded my python debs from stable to
the unstable versions.

checking for gtk.py... no
configure: error:
 The python interpreter can't find the python bindings for gtk.


When it happened earlier I ended up nuking all my python debs and
reinstalling them all.  This was only a quick fix and really not
what I should do.

Now that I have installed the 2.3 debs I am getting these errors again.

Here is a list of the debs I have installed.

EULER:~# dpkg -l | grep python
ii  python 2.2.2-6An interactive object-oriented scripting
lan
ii  python-gdk-iml 0.6.11-8   GTK gdk_imlib support module for Python.
ii  python-glade   0.6.11-8   Put a bit of python code behind
interfaces b

ii  python-gnome   1.4.2-3PyGNOME -- Python bindings for GNOME.
ii  python-gtk 0.6.11-8   GTK support module for Python.
ii  python2.1  2.1.3-18   An interactive object-oriented scripting
lan

ii  python2.1-xmlb 2.1.3-18   XML support included in Python (v2.1)
ii  python2.2  2.2.2-6An interactive object-oriented scripting

lan
ii  python2.2-gtk2 1.99.16-1  Python bindings for the GTK+ widget set
ii  python2.3  2.2.101-1exp1  An interactive object-oriented scripting

lan
ii  python2.3-gtk2 1.99.16-1  Python bindings for the GTK+ widget set


***Some of the output of a build.


 debian/rules build
./configure --prefix=$(pwd)/debian/paleta/usr
loading cache ./config.cache
checking for python... /usr/bin/python
checking python version... 2.2
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... yes
checking for gnome-config... yes

Here is the build error I get.
checking for gtk.py... no
configure: error:
 The python interpreter can't find the python bindings for gtk.
make: *** [build] Error 1
debuild: fatal error at line 456:
dpkg-buildpackage failed!
[EMAIL PROTECTED]:~/src/paleta-0.1.02082002$



I have attached the configure.in that is generating the error.

TIA

Brian

configure.in
Description: /


Re: Error building package (uses python)

2003-04-22 Thread Torsten Landschoff
Hi Brian, 

On Tue, Apr 22, 2003 at 09:08:57AM -0400, [EMAIL PROTECTED] wrote:
> I have a package that I am getting ready for my sponsor to upload.
> I began getting these errors when I upgraded my python debs from stable to
> the unstable versions.
> 
> checking for gtk.py... no
> configure: error:
>  The python interpreter can't find the python bindings for gtk.

Hmpf. Reminds me of the odd situation of pygtk in Debian. Currently 
the gtk 1.2 bindings are still the default. Probably that should be
fixed. 

> Here is a list of the debs I have installed.

This throws up the question if you need the gtk 1.2 or 2.0 bindings
for that tool...

> Here is the build error I get.
> checking for gtk.py... no
> configure: error:
>  The python interpreter can't find the python bindings for gtk.

Argh. Whoever wrote that script should be larted. Because the error
message does not match reality. In fact, configure.in does not ask the
python interpreter to find gtk.py:

dnl Check if python bindings for gtk are installed

AC_CHECK_PROG(have_pygtk, gtk.py, yes, no, $PYTHON_SITE_DIR)

if test "x$have_pygtk" != xyes
then
   AC_MSG_ERROR([
 The python interpreter can't find the python bindings for gtk.])
fi

Where does that call python? In fact, even $PYTHON_SITE_DIR does not
make much sense. In realitas python searches in a number of paths which 
can be adjusted by throwing a file with extension .pth in there, like
python-gtk does:

[EMAIL PROTECTED]:~$ dpkg -L python-gtk|grep pygtk.pth
/usr/lib/python2.2/site-packages/pygtk.pth
[EMAIL PROTECTED]:~$ cat /usr/lib/python2.2/site-packages/pygtk.pth
gtk-1.2

This results in the following search list in python:

[EMAIL PROTECTED]:~$ python -c "import sys; print sys.path"
['', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-linux2',
'/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload',
'/usr/local/lib/python2.2/site-packages', '/usr/local/lib/site-python',
'/usr/lib/python2.2/site-packages',
'/usr/lib/python2.2/site-packages/Numeric',
'/usr/lib/python2.2/site-packages/PIL',
'/usr/lib/python2.2/site-packages/gtk-1.2', '/usr/lib/site-python']

This is what the script should check for. Or, just use python to figure
out the path:

code="
import sys
try:
  import gtk
except ImportError:
  sys.exit(1)
except:
  sys.exit(0)
sys.exit(0)"
if $PYTHON -c "$code"; then
  AC_MSG_RESULT(yes)
else
  AC_MSG_ERROR("no gtk.py found")
fi

Something along the lines - did not write autoconf for a while...

Greetings

Torsten (python-gtk maintainer)


pgpNlfdTNKL54.pgp
Description: PGP signature


eric3 and qscintilla problem

2003-04-22 Thread Petr Simon
Hi,
I am just a Python noob and I get this when trying to run eric3:
Traceback (most recent call last):
 File "/usr/lib/python2.2/site-packages/eric3/eric3.py", line 130, in ?
   mw = UserInterface(loc, args)
 File "/usr/lib/python2.2/site-packages/UI/UserInterface.py", line 295, 
in __init__
 File "/usr/lib/python2.2/site-packages/ViewManager/__init__.py", line 
45, in factory
 File "", line 1, in ?
 File "/usr/lib/python2.2/site-packages/ViewManager/Tabview.py", line 
14, in ?
 File "/usr/lib/python2.2/site-packages/ViewManager/ViewManager.py", 
line 15, in ?
 File "/usr/lib/python2.2/site-packages/QScintilla/Editor.py", line 13, 
in ?
ImportError: cannot import name QextScintillaPrinter

What does it mean and what can I do about it?
Thanks Petr