Bug#449341: Fails to find python-gst

2008-09-08 Thread Alexander Wirt
reassign 449341 python-gst0.10
tags 449341 pending
thanks

Hi, 

this is a bug in python-gst (missing dep on python-libxml2 and broken init
sequence). I plan to upload a fix later this day. 

Alex

-- 
Alexander Wirt, [EMAIL PROTECTED]
CC99 2DDD D39E 75B0 B0AA  B25C D35B BC99 BC7D 020A



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#449341: Fails to find python-gst

2007-11-23 Thread Thiemo Seufer
Loïc Minier wrote:
> On Fri, Nov 23, 2007, Thiemo Seufer wrote:
> > It apparently hits the mips and mipsel architectures, the others are fine
> > (judging from the buildlog).
> > 
> > Could you tell my what PYTHONPATH is set to in configure when building
> > flumotion on, say, i386?
> 
>  Why not simply research the import failing in the case of the python
>  script you provided?

I don't speak python.

>  PYTHONPATH is set to $srcdir in configure.ac, I guess that's ".".

That was my guess as well, it still failed with that value.


Thiemo




Bug#449341: Fails to find python-gst

2007-11-23 Thread Loïc Minier
On Fri, Nov 23, 2007, Thiemo Seufer wrote:
> It apparently hits the mips and mipsel architectures, the others are fine
> (judging from the buildlog).
> 
> Could you tell my what PYTHONPATH is set to in configure when building
> flumotion on, say, i386?

 Why not simply research the import failing in the case of the python
 script you provided?

 PYTHONPATH is set to $srcdir in configure.ac, I guess that's ".".

-- 
Loïc Minier




Bug#449341: Fails to find python-gst

2007-11-23 Thread Thiemo Seufer
Loïc Minier wrote:
> On Fri, Nov 23, 2007, Thiemo Seufer wrote:
> > There is no old version of flumotion installed.
> 
>  It'd be best if you could diagnose this further in your environment
>  then.  You might want to check whether this works for a regular user
>  with a regular home as this might be some library or gstreamer plugin
>  failing to write a file in $HOME.

This is effectively what I did, the schroot bind-mounts my $HOME.
Apart from that, writing outside the build directory would be another bug.

>  I can't reproduce the issue here, so I can't research it further.

It apparently hits the mips and mipsel architectures, the others are fine
(judging from the buildlog).

Could you tell my what PYTHONPATH is set to in configure when building
flumotion on, say, i386?


Thiemo




Bug#449341: Fails to find python-gst

2007-11-23 Thread Loïc Minier
On Fri, Nov 23, 2007, Thiemo Seufer wrote:
> There is no old version of flumotion installed.

 It'd be best if you could diagnose this further in your environment
 then.  You might want to check whether this works for a regular user
 with a regular home as this might be some library or gstreamer plugin
 failing to write a file in $HOME.  I can't reproduce the issue here, so
 I can't research it further.

-- 
Loïc Minier




Bug#449341: Fails to find python-gst

2007-11-23 Thread Thiemo Seufer
Loïc Minier wrote:
> On Mon, Nov 05, 2007, Thiemo Seufer wrote:
> > larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ cat foo
> > prog="
> > import sys
> > try:
> > import pygst
> > from flumotion.common import boot; boot.init_gobject(); boot.init_gst()
> ...
> > python -d -c "$prog"
> > larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ sh foo
> > ERROR: no GStreamer available (looking for versions ['0.10'])
> 
>  Well your example didn't work for me without adding
>  /usr/lib/flumotion/python to the PYTHONPATH.  Do you have flumotion
>  higher up in your default PYTHONPATH somewhere?

It is an schroot, PYTHONPATH isn't set as an environment variable.

>  I tried your sh example with "export
>  PYTHONPATH=/usr/lib/flumotion/python" before the run, and it exited
>  with 0 exit status.  I also tried running the python snippet directly
>  as a Python script with PYTHONPATH in the env, and it worked fine as
>  well.
> 
>  Please check your setup for obsolete installation of flumotion.

There is no old version of flumotion installed.


Thiemo




Bug#449341: Fails to find python-gst

2007-11-23 Thread Loïc Minier
On Mon, Nov 05, 2007, Thiemo Seufer wrote:
> larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ cat foo
> prog="
> import sys
> try:
> import pygst
> from flumotion.common import boot; boot.init_gobject(); boot.init_gst()
...
> python -d -c "$prog"
> larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ sh foo
> ERROR: no GStreamer available (looking for versions ['0.10'])

 Well your example didn't work for me without adding
 /usr/lib/flumotion/python to the PYTHONPATH.  Do you have flumotion
 higher up in your default PYTHONPATH somewhere?

 I tried your sh example with "export
 PYTHONPATH=/usr/lib/flumotion/python" before the run, and it exited
 with 0 exit status.  I also tried running the python snippet directly
 as a Python script with PYTHONPATH in the env, and it worked fine as
 well.

 Please check your setup for obsolete installation of flumotion.

-- 
Loïc Minier




Bug#449341: Fails to find python-gst

2007-11-05 Thread Thiemo Seufer
Loïc Minier wrote:
> On Mon, Nov 05, 2007, Thiemo Seufer wrote:
> > checking for python module pygst... ERROR: no GStreamer available (looking 
> > for versions ['0.10'])
> 
>  That's really weird.  It builds for me.  Could you try in the chroot:
> % python
> >>> import pygst
> >>> pygst.require("0.10")

larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ schroot
I: [sid chroot] Running login shell: '/bin/bash'
larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ python
Python 2.4.4 (#2, Aug 16 2007, 14:53:35)
[GCC 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygst
>>> pygst.require("0.10")
>>>

Looks good to me (without knowing about python). However:

larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ schroot
I: [sid chroot] Running login shell: '/bin/bash'
larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ cat foo
prog="
import sys

try:

import pygst
from flumotion.common import boot; boot.init_gobject(); boot.init_gst()
sys.exit(0)
except ImportError, e:
raise SystemExit(*e.args)
except SystemExit, e:
if not e.args or (e.args[0] != 0 and not isinstance(e.args[0], str)):
raise SystemExit('Unknown error')
raise
except Exception, e:
print '  Error while trying to import pygst:'
print '%r: %s' % (e, e)
sys.exit(1)"

python -d -c "$prog"
larsa:/srv/ths/debian/flumotion/flumotion-0.4.2$ sh foo
ERROR: no GStreamer available (looking for versions ['0.10'])


Thiemo




Bug#449341: Fails to find python-gst

2007-11-05 Thread Loïc Minier
On Mon, Nov 05, 2007, Thiemo Seufer wrote:
> checking for python module pygst... ERROR: no GStreamer available (looking 
> for versions ['0.10'])

 That's really weird.  It builds for me.  Could you try in the chroot:
% python
>>> import pygst
>>> pygst.require("0.10")


 Thanks,
-- 
Loïc Minier




Bug#449341: Fails to find python-gst

2007-11-05 Thread Thiemo Seufer
Package: flumotion
Version: 0.4.2-2

Flumotion fails to build on mips/mipsel. It doesn't look like a MIPS
specific failure to me:

[...]
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
configure: Looking for Python version >= 2.3
checking for python... /usr/bin/python
checking "/usr/bin/python":... okay
checking local Python configuration... looks good
checking for python version... 2.4
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.4/site-packages
checking for python extension module directory... 
${exec_prefix}/lib/python2.4/site-packages
checking for headers required to compile python extensions... found
checking for python module pygtk... found
checking for python module pygst... ERROR: no GStreamer available (looking for 
versions ['0.10'])
configure: error: gst-python not found or too old
make: *** [config.status] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2


I guess the version check can't cope with two dots (0.10.8) in the
version of python-gst0.10.

$ dpkg -l python-gst0.10
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name   VersionDescription
+++-==-==-
ii  python-gst0.10 0.10.8-1   generic media-playing 
framework (Python bindings)


Thiemo



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]