Monday, July 15, 2013

GstNet import fixed

What i achieved

As i said in my previous posts Flumotion didn't import GstNet, but i could import it in the interactive prompt (ipython). I looked for a solution and i thought 'Why i don't try and initialize GstNet in the boot.py file?' . So did this change, where i assert GstNet in boot.py:
https://github.com/bananadine/flumotion/commit/83f2d799e550d9483a2d6c26aa2391537b473376#L0R256

And then i printed sys.modules:
http://pastebin.com/8B3SnjH2

And i got this line:
'gi.repository.GstNet': <gi.module.DynamicModule 'GstNet' from '/usr/lib/girepository-1.0/GstNet-1.0.typelib'>

GstNet gets imported successfully now.

Other changes are made here -> [83f2d79]

What problems I'm currently having

flumotion-worker output: http://pastebin.com/7bA4Ldf0
1.
  1. Traceback (most recent call last):
  2.   File "/home/max/Desktop/flumotion-porting/flumotion/flumotion/common/gstreamer.py", line 51, in verbose_deep_notify_cb
  3.     value = orig.get_property(pspec.name)
  4. AttributeError: 'NoneType' object has no attribute 'name'
2.
  1.  File "/home/max/Desktop/flumotion-porting/flumotion/cache/component/7b26f59c71d7d30689ac8d72ceef8fc0/flumotion/component/feedcomponent010.py", line 534, in pipelinePaused
  2.     self.clock_provider = GstNet.NetTimeProvider.new(clock, None, port)
  3.   File "/usr/lib/python2.7/dist-packages/gi/types.py", line 72, in constructor
  4.     return info.invoke(cls, *args, **kwargs)
  5. exceptions.TypeError: Argument 1 does not allow None as a value

3.
  1. Traceback (most recent call last):
  2.   File "/home/max/Desktop/flumotion-porting/flumotion/cache/volume-effect/5236a1d089cdbda5f04595a1315bdec1/flumotion/component/effects/volume/volume.py", line 67, in _bus_message_received_cb
  3.     if message.structure.get_name() == 'level':
  4. AttributeError: 'Message' object has no attribute 'structure'

4.
  1. Traceback (most recent call last):
  2.   File "/home/max/Desktop/flumotion-porting/flumotion/cache/vorbis-component/f5edb82cece7c472fab6e049e0573240/flumotion/component/encoders/vorbis/vorbis010.py", line 74, in buffer_probe
  3.     in_rate = caps[0]['rate']
  4. TypeError: string indices must be integers, not str
  5. TypeError: event_probe_cb() takes exactly 5 arguments (4 given)




TO DO:
Fix the above mentioned problems

No comments :

Post a Comment