Summary: | Win7 32-bit: Fail to run python codes with gstreamer sdk python binding | ||
---|---|---|---|
Product: | GStreamer SDK | Reporter: | Rafael <mq_han> |
Component: | Windows SDK Distribution | Assignee: | bugs |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | 2012.7 | ||
Hardware: | x86 (IA32) | ||
OS: | Windows (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
libpyglib-2.0-python.pyd (x86)
libpyglib-2.0-python.pyd (x86_64) |
Description
Rafael
2012-07-31 00:51:20 UTC
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.