GNOME Bugzilla – Bug 588725
Make of gst-python does not install pygst.py and gst package
Last modified: 2011-08-16 09:39:36 UTC
Please describe the problem: Download gst-python-0.10.15.tar.bz2, untar, cd gst-python-0.10.15, ./configure, make, sudo make install. Run python and import pygst. pygst.__file__ says that the file is in /usr/lib/python2.6/dist-packages, which is not the package that I just made. (That package should appear in /usr/local/lib.) import gst. gst.__file__ is /usr/lib/python2.6/dist-packages/gst-0.10/gst/__init__.pyc, which also is not from the package that I just made. There is a pygst.py in the gst-python-0.10.15 directory. I suspect that it should be installed in the {prefix} directory during the build, but it is not. Likewise, I suspect that something is supposed to happen to the gst directory. Because these items (and others, perhaps) are not installed during the build, it is not possible to use gst-python. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
If you don't pass any arguments to ./configure, the resulting binaries/libraries will be installed in /usr/local/ Retry with ./configure --prefix=/usr If it still fails, attach a debug log.
Created attachment 138592 [details] Output of ./configure command
Created attachment 138593 [details] Output of make command
Created attachment 138594 [details] Output of make install command
You missed the point. I want the binaries/libraries in /usr/local. The problem seems to be that pygst.py and gst do not get installed anywhere.
Set the PYTHONPATH environment variable to the location of you /usr/local/python-XX/site-packages directory, then re-configure. I didn't missed the point, your description was bogus (gst-python *IS* correctly built and installed).
Perhaps I don't understand what you mean by "re-configure". I tried setting PYTHONPATH first and then did ./configure, make, make install. There is still nothing in /usr/local/lib/python2.6/site-packages (nor dist-packages) related to GStreamer (it's all pygtk and gtk) and still when I import gst and check gst.__file__ I get the old version in /usr/lib. I see that the old version has a pygst.py file in /usr/lib/python2.6/dist-packages and I see that the new version comes with a pygst.py file that does not get installed anywhere, and certainly not in /usr/local/lib/python2.6/dist-packages, which would be the corresponding location, nor in site-packages. Ditto for gst. If they were installed in /usr/local/lib/python2.6/dist-packages, then I could see how setting PYTHONPATH would enable Python to find it. Possibly my observations are irrelevant, in which case some other problem explains the inability of Python to find the new version of pygst. I claim no expertise in these matters, so I am not surprised to learn that my description was bogus.
Is this still happening with the latest gst-python release?
Jeffrey, can you please confirm the bug against latest gst-python ?
Please feel free to reopen this bug if the problem still occurs with a newer version of GStreamer Core 0.10.35, Base Plugins 0.10.35, Good Plugins 0.10.30 stable release, tia.