[MacPorts] #28052: py26-gst-python: 'python' plugin does not work because libpython2.6 cannot be found

MacPorts noreply at macports.org
Wed Jan 19 15:06:50 PST 2011


#28052: py26-gst-python: 'python' plugin does not work because libpython2.6 cannot
be found
---------------------------------+------------------------------------------
 Reporter:  lsinger@…            |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.9.2                                
 Keywords:                       |        Port:                                       
---------------------------------+------------------------------------------
 The plugin named "python", which is included in the gst-python package,
 needs to know where to find libpython2.x at run time.

 To reproduce, first nuke your plugin registry:

 {{{
 #!sh
 $ rm -f ~/.gstreamer-0.10/registry.*.bin
 }}}

 Then, run {{{gst-inspect}}} on the "python" plugin as follows:

 {{{
 #!sh
 $ GST_DEBUG=2 gst-inspect --gst-plugin-
 path=/opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/gstreamer-0.10
 python
 }}}

 You should get the following output (or something like it):

 {{{
 0:00:00.004724000  1735   0x606b00 WARN                pyplugin
 gstpythonplugin.c:373:plugin_init: Couldn't g_module_open libpython.
 Reason: dlopen(/usr/lib/libpython2.6.dylib, 10): image not found
 0:00:00.004784000  1735   0x606b00 WARN      GST_PLUGIN_LOADING
 gstplugin.c:558:gst_plugin_register_func: plugin
 "/opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/gstreamer-0.10/libgstpython.so"
 failed to initialise
 0:00:00.005348000  1735   0x606b00 WARN                pyplugin
 gstpythonplugin.c:373:plugin_init: Couldn't g_module_open libpython.
 Reason: dlopen(/usr/lib/libpython2.6.dylib, 10): image not found
 0:00:00.005366000  1735   0x606b00 WARN      GST_PLUGIN_LOADING
 gstplugin.c:558:gst_plugin_register_func: plugin
 "/opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/gstreamer-0.10/libgstpython.so"
 failed to initialise
 No such element or plugin 'python'
 }}}

 Now, apply the attached patch, then update {{{py26-gst-python}}}:

 {{{
 #!sh
 $ sudo port upgrade py26-gst-python
 }}}

 Then nuke your plugin registry again:

 {{{
 #!sh
 $ rm -f ~/.gstreamer-0.10/registry.*.bin
 }}}

 and run {{{gst-inspect}}} again:

 {{{
 #!sh
 $ GST_DEBUG=2 gst-inspect --gst-plugin-
 path=/opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/gstreamer-0.10
 python
 }}}

 You should now get the following output, indicating that the "python"
 plugin was found and was loaded successfully:

 {{{
 Plugin Details:
   Name:                 python
   Description:          loader for plugins written in python
   Filename:
 /opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/gstreamer-0.10/libgstpython.so
   Version:              0.10.20
   License:              LGPL
   Source module:        gst-python
   Binary package:       GStreamer Python Bindings
   Origin URL:           http://gstreamer.freedesktop.org


   0 features:
 }}}

 If you have any Python element classes installed, then they will be listed
 under 'features'.

 Similar patches could be applied to the ports {{{py25-gst-python}}} and
 {{{py27-gst-python}}}.

-- 
Ticket URL: <https://trac.macports.org/ticket/28052>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list