Cannot Import GST in Python

后端 未结 4 1318
夕颜
夕颜 2020-12-10 09:58

I\'m in a quandary. I\'m following the following tutorial (specifically, 6.4.2)

http://majorsilence.com/pygtk_audio_and_video_playback_gstreamer

I\'m running

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 10:27

    I had the same problem on Windows 7 with Python 2.7, but the posted solution didn't work. It turned out there was something fishy going on with my path variables, I still don't know why. Here's how I fixed it:

    • I created a file pygst.pth in the Python27 site-packages
    • I copied the path from my environment variables PYTHONPATH, which was C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.7\lib\site-packages\ on my computer, into the file pygst.pth

    It was then able to import using the standard method after reopening the interpreter.

提交回复
热议问题