【问题标题】:ImportError: cannot import name GstRtspServer, introspection typelib not foundImportError:无法导入名称 GstRtspServer,未找到自省类型库
【发布时间】:2018-10-03 20:06:07
【问题描述】:

我目前正在尝试让一个简单的 GstRtspServer 程序在外部 amazon linux EC2 服务器上运行,但我在让它实际运行时遇到了严重的问题。无论我做什么,当我尝试运行它时,我都会遇到同样的错误,即使程序被简化为

import gi
gi.require_version('Gst','1.0')
from gi.repository import GLib, Gst, GstRtspServer

我已经安装了 pygobject,我已经安装了 gstreamer,我已经安装了 gobject-introspection,并且任何 google 搜索结果都没有任何帮助。有谁知道我可能会错过什么?

【问题讨论】:

  • GstRtspServer 作为需要安装的额外包。

标签: python amazon-ec2 gstreamer gobject-introspection


【解决方案1】:

具体来说,在 Ubuntu 16.04 上,必须安装包 gir1.2-gst-rtsp-server-1.0,其中包含自省类型库。

sudo apt install gir1.2-gst-rtsp-server-1.0

【讨论】:

  • 这也解决了 LFT 上的问题——jetsons 上的 ubuntu 18。
猜你喜欢
  • 1970-01-01
  • 2019-03-10
  • 1970-01-01
  • 1970-01-01
  • 2016-05-29
  • 2018-12-11
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多