After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 588725 - Make of gst-python does not install pygst.py and gst package
Make of gst-python does not install pygst.py and gst package
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-python
0.10.15
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-15 23:34 UTC by Jeffrey Barish
Modified: 2011-08-16 09:39 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Output of ./configure command (5.67 KB, text/plain)
2009-07-17 14:10 UTC, Jeffrey Barish
Details
Output of make command (10.56 KB, text/plain)
2009-07-17 14:11 UTC, Jeffrey Barish
Details
Output of make install command (5.50 KB, text/plain)
2009-07-17 14:11 UTC, Jeffrey Barish
Details

Description Jeffrey Barish 2009-07-15 23:34:30 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:
Comment 1 Edward Hervey 2009-07-17 09:50:33 UTC
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.
Comment 2 Jeffrey Barish 2009-07-17 14:10:33 UTC
Created attachment 138592 [details]
Output of ./configure command
Comment 3 Jeffrey Barish 2009-07-17 14:11:09 UTC
Created attachment 138593 [details]
Output of make command
Comment 4 Jeffrey Barish 2009-07-17 14:11:46 UTC
Created attachment 138594 [details]
Output of make install command
Comment 5 Jeffrey Barish 2009-07-17 14:15:26 UTC
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.
Comment 6 Edward Hervey 2009-07-17 14:34:32 UTC
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).
Comment 7 Jeffrey Barish 2009-07-17 15:13:36 UTC
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.
Comment 8 Sebastian Dröge (slomo) 2011-05-20 07:11:02 UTC
Is this still happening with the latest gst-python release?
Comment 9 Akhil Laddha 2011-07-01 05:58:19 UTC
Jeffrey, can you please confirm the bug against latest gst-python ?
Comment 10 Akhil Laddha 2011-08-16 09:39:36 UTC
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.