skorotkov / ossbuild

GStreamer 0.10 windows build environment. Automatically exported from code.google.com/p/ossbuild
Other
0 stars 0 forks source link

Cannot Import gst in Python 2.7 #126

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have the BETA 10.7 WinBuilds installer and SDK installer. I'm running Python 
2.7.

I can import pygst just fine, but I'm having a lot of trouble importing gst.

I run the code:
>import pygst
>pygst.require('0.10')
>import gst

And I get:
Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    import gst
  File "C:\Program Files\OSSBuild\GStreamer\v0.10.7\lib\site-packages\gst-0.10\gst\__init__.py", line 193, in <module>
    from _gst import *
ImportError: DLL load failed: The specified module could not be found.

How do I fix this?

Original issue reported on code.google.com by indelibl...@gmail.com on 11 Aug 2011 at 7:20

GoogleCodeExporter commented 8 years ago
Pretty sure this is the same issue as issue 124.

Original comment by wil...@bluesock.org on 12 Aug 2011 at 7:10

GoogleCodeExporter commented 8 years ago
It isn't. I got issue 124, and I resolved that. I now have this issue.

Original comment by indelibl...@gmail.com on 12 Aug 2011 at 9:45

GoogleCodeExporter commented 8 years ago
IIRC, one of the python dll should be named _gst.pyd instead of gst.pyd
Could you try this?

Original comment by ylatuya on 14 Aug 2011 at 7:39

GoogleCodeExporter commented 8 years ago
What exactly do you mean by "try this". What steps do you want me to take?

Original comment by indelibl...@gmail.com on 14 Aug 2011 at 8:21

GoogleCodeExporter commented 8 years ago
I managed to get it to work with python 2.7 by copying the sdk 2.7 folder into 
the main one.
ie. copy the folders in "C:\Program 
Files\OSSBuild\GStreamer\v0.10.7\sdk\bindings\python\v2.7" to "C:\Program 
Files\OSSBuild\GStreamer\v0.10.7"

Original comment by goran.st...@gmail.com on 20 Sep 2011 at 1:22

GoogleCodeExporter commented 8 years ago
Getting a little closer, but I now have this error on "import gst"...

"AttributeError: 'module' object has no attribute 'Element'"

Original comment by indelibl...@gmail.com on 20 Sep 2011 at 7:28