Wednesday, June 19, 2013

gstreamer.py and test_common_gstreamer.py test error

The diff of gstreamer.py: http://pastebin.com/U4PNC2Vj
The diff of test_common_gstreamer.py: http://pastebin.com/e9W5RkPA

When i run "trial flumotion.test.test_common_gstreamer" i still get:

flumotion
  test
    test_common_gstreamer ...                                           [ERROR]

===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 660, in loadByNames
    things.append(self.findByName(name))
  File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 470, in findByName
    return reflect.namedAny(name)
  File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 464, in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/flumotion/flumotion/test/test_common_gstreamer.py", line 18, in <module>
    import gi
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
exceptions.ImportError: could not import gobject (error was: ImportError('When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject".',))

flumotion.test.test_common_gstreamer

Also i learned how to use github properly and from now i'll post links to the commits.

1 comment :

  1. Have you updated your debian/control?

    Try replacing Gst.STATE with Gst.State

    and replacing video/x-raw-yuv and video/x-raw-rgb with video/x-raw

    The following site looks like a pretty good resource:
    https://wiki.ubuntu.com/Novacut/GStreamer1.0

    ReplyDelete