This is because you are using Python 2.7, and the GST default is 2.6. This is really easy to fix:
Go to C:Program FilesOSSBuildGStreamerv0.10.6sdkindingspythonv2.7lib
and copy
gstreamer-0.10
and site-packages
to
C:Program FilesOSSBuildGStreamerv0.10.6lib
, replacing any existing files.
Then delete the file C:Program FilesOSSBuildGStreamerv0.10.6libgstreamer-0.10libgstpython-v2.6.dll
(or change the extension to .dllx
or something).
Now it should work.
Alternatively to changing GST to suit Python 2.7, you could just use Python 2.6.
EDIT:
After attempting to install Gstreamer on a new computer, I found that I could not import pygst
until I removed the extra backslash from C:Program FilesOSSBuildGstreamerv0.10.7libsite-packages
in PYTHONPATH
. I believe this may have been your problem all the way along.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…