#28052: py26-gst-python: 'python' plugin does not work because libpython2.6 cannot be found ---------------------------------+------------------------------------------ Reporter: lsinger@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py26-gst-python ---------------------------------+------------------------------------------ Comment(by lsinger@…): Replying to [comment:3 rmstonecipher@…]:
While I have confirmed that your method changes something, I'm a little concerned about ~/.gstreamer-0.10/.[[br]] I am not comfortable with the idea of having port remove a file in a user's home directory so that gstreamer can recreate that file.[[br]]
But port doesn't delete the registry. I just added the instruction to delete it so that gst-inspect would be forced to attempt to load all plugins. If the plugin scanner fails to load a particular plugin, it will 'blacklist' it by making a note in the registry not to try to load it. If you had previously run gst-inspect and it had not been able to load the plugin 'python', then you would see just the error message {{{ No such element or plugin 'python' }}} Whereas if you start without a plugin registry then you should get this more informative version: {{{ 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' }}}
Also, my results were not the same as yours:[[br]] {{{ euclid:~ ryan$ rm .gstreamer-0.10/registry.* euclid:~ ryan$ gst-inspect --gst-plugin- path=/opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/gstreamer-0.10 python
(gst-plugin-scanner:76458): GStreamer-WARNING **: Failed to load plugin '/opt/local/lib/gstreamer-0.10/libgstcog.so': dlopen(/opt/local/lib/gstreamer-0.10/libgstcog.so, 2): Library not loaded: /opt/local/lib/libpng12.0.dylib Referenced from: /opt/local/lib/gstreamer-0.10/libgstcog.so Reason: image not found
(gst-plugin-scanner:76458): GStreamer-WARNING **: Failed to load plugin '/opt/local/lib/gstreamer-0.10/libgstopengl.so': dlopen(/opt/local/lib/gstreamer-0.10/libgstopengl.so, 2): Library not loaded: /opt/local/lib/libpng12.0.dylib Referenced from: /opt/local/lib/gstreamer-0.10/libgstopengl.so Reason: image not found No such element or plugin 'python' }}} It looks like the above warnings are caused by shortcomings of files installed by gst-plugins-bad and gst-plugins-gl and would appreciate it if you would confirm that suspicion.[[br]]
Is this with or without the patch? The error messages about libgstcog and libgstopengl are not related to gst-python. They are error messages about different plugins. Both libgstcog and libgstopengl depend on libpng, which could not be found in /opt/local/lib. I've seen that sort of error message about libpng before. Which version of the libpng port do you have installed? Is it possible that you built gst-plugins-bad and gst-plugins-gl against libpng 1.2 and later upgraded libpng to 1.4? This was the case with me; the name of the library changed from libpng12 to libpng14. -- Ticket URL: <https://trac.macports.org/ticket/28052#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS