System: Win7 32bit Python 2.7.3 Gstreamer SDK 2012.7 Environment variables added: GSTREAMER_SDK_ROOT_X86: D:\gstreamer-sdk\0.10\x86\ PYTHONPATH: %GSTREAMER_SDK_ROOT_X86%\lib\python2.7\site-packages PATH: %GSTREAMER_SDK_ROOT_X86%\bin Problem: Gstreamer SDK tutorial builds ok and runs ok. But when run my python codes(which runs ok on Ubuntu 10.04 LTS), it always fails and shows: Traceback (most recent call last): File "justplayer.py", line 7, in <module> import gst File "d:/gstreamer-sdk/0.10/x86/lib/python2.7/site-packages/gst-0.10\gst\__ini t__.py", line 193, in <module> from _gst import * ImportError: could not import gobject (error was: 'DLL load failed: The specifie d module could not be found.')
Besides, I have to modify the file: %GSTREAMER_SDK_ROOT_X86%\lib\python2.7\site-packages\pygst.py: from: _pygst_dir = 'c:/gstreamer-sdk/0.10/x86/lib/python2.7/site-packages/gst-0.10' to: _pygst_dir = 'd:/gstreamer-sdk/0.10/x86/lib/python2.7/site-packages/gst-0.10' Otherwise, the python codes will fail with following error: Traceback (most recent call last): File "justplayer.py", line 7, in <module> import gst ImportError: No module named gst
I found probably libpyglib-2.0-python.pyd is missing
I though we already make pygstdir a relative path to allow relocations at some point. I will investigate further to check where we lost this change. Regarding the import issue, are you importing it like: import pygst pygst.require('0.10') import gst
I'm able to reproduce the issue. I'll try to fix as soon as possible
Yes, I import it using import pygst pygst.require('0.10') import gst
(In reply to comment #4) > I'm able to reproduce the issue. I'll try to fix as soon as possible It's working for me, it just that I wasn't setting the correct PATH :) Can you please confirm that the file $GSTREAMER_SDK_ROOT_X86/bin/libpyglib-2.0-python.pyd exists? Can you import gobject with "import gobject"?
Created attachment 64985 [details] libpyglib-2.0-python.pyd (x86)
Apparently the file was not packaged properly due to the 'pyd' extension. I attach it here so that you can test it.
Yes, the libpyglib-2.0-python.pyd does not exist. After adding it to $GSTREAMER_SDK_ROOT_X86/bin/, the python code runs ok. Thanks Andoni. Should I change bug status?
I'll leave it opened until I fix it's properly fixed in cerbero :)
commit ced530a4bc487c20fa9a4b13ee3a19642a927e91 Author: Andoni Morales Alastruey <ylatuya@gmail.com> Date: Wed Aug 1 11:55:37 2012 +0200 pygobject: add missing category for the main library in windows Fixes #52983
I am experiencing the same issue with the 64bit GStreamer SDK. As there has been no new release yet, could someone attach the 64bit version of the libpyglib-2.0-python.pyd file? I would be greatful. :-)
Created attachment 65957 [details] libpyglib-2.0-python.pyd (x86_64) We will make a new release in the next with this issue fixed among others, but meanwhile I attach the 64bits version of the missing library too.
Thanks!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.