I don't get past sys.modules call in imp

    def run(self):
        # Import clutter only in the gobject thread
        # This function will be the running mainloop
        log.info('run entry')
        try:
            from gi.repository import Clutter as clutter
            log.info('clutter imported')
            clutter.threads_init()
            log.info('clutter threads init')
            clutter.init([])
            log.info('clutter init')
            clutter.main()
            log.info('clutter main')
        except Exception, e:
            log.exception('unable to import clutter')
            return

    def imp(self, name, path, server):
        """
        Import inside the clutter thread
        """
        path = os.path.abspath(path)
        log.info('imp path:%s', path)
        basename, dirname = os.path.basename(path), os.path.dirname(path)
        (file, filename, data) = imp.find_module(basename, [ dirname ])
        # hack to provide the module to other modules for import
        sys.modules[name] = imp.load_module(name, file, filename, data)
        log.info('imp name:%s filename: ', name, filename)
 
INFO candy:main(67): run entry
INFO candy:main(70): clutter imported
INFO candy:main(72): clutter threads init
INFO candy:main(74): clutter init
INFO candy:main(92): imp 
path:/usr/local/lib/python2.7/dist-packages/kaa/candy/backend/widgets
2013-05-14 19:52:48,635 [ERROR] stage(164): backend error, restarting
2013-05-14 19:52:48,638 [ERROR] async(552): Unhandled InProgress exception:
IOError: kaa.rpc channel closed
INFO candy:main(67): run entry
INFO candy:main(70): clutter imported
INFO candy:main(72): clutter threads init
INFO candy:main(74): clutter init
INFO candy:main(92): imp 
path:/usr/local/lib/python2.7/dist-packages/kaa/candy/backend/widgets
2013-05-14 19:52:48,840 [ERROR] stage(164): backend error, restarting
2013-05-14 19:52:48,846 [ERROR] async(552): Unhandled InProgress exception:
IOError: kaa.rpc channel closed

Regards,

Jim

On 05/12/2013 06:13 AM, Dirk Meyer wrote:
> Hi,
> 
> On 05/11/2013 03:33 PM, Jim Duda wrote:
>> I believe I have ClutterGst gir installed.  I'm running Ubuntu on my test 
>> machine.
>>
>> jim> sudo aptitude search gst | grep gir
>> i   gir1.2-clutter-gst-1.0          - Gobject introspection data for Clutter 
>> GSt
>> p   gir1.2-clutter-gst-1.0:i386     - Gobject introspection data for Clutter 
>> GSt
>> i   gir1.2-gst-plugins-base-0.10    - Description: GObject introspection 
>> data fo
>> p   gir1.2-gst-plugins-base-0.10:i3 - Description: GObject introspection 
>> data fo
>> p   gir1.2-gst-rtsp-server-0.10     - GObject introspection data for the 
>> gst-rts
>> p   gir1.2-gst-rtsp-server-0.10:i38 - GObject introspection data for the 
>> gst-rts
>> i   gir1.2-gstreamer-0.10           - Description: GObject introspection 
>> data fo
>> p   gir1.2-gstreamer-0.10:i386      - Description: GObject introspection 
>> data fo
> 
> Strange. But we can ignore this for now, it only affects the video
> playback and we do not get so far.
> 
>>> To test something simpler, can you start simple.py in the kaa.candy test
>>> directory?
>>>
>>
>> jim> python simple.py
>> 2013-05-11 09:28:51,103 [ERROR] stage(164): backend error, restarting
>> 2013-05-11 09:28:51,108 [ERROR] async(552): Unhandled InProgress exception:
>> IOError: kaa.rpc channel closed
>> 2013-05-11 09:28:51,308 [ERROR] stage(164): backend error, restarting
>> 2013-05-11 09:28:51,313 [ERROR] async(552): Unhandled InProgress exception:
>> IOError: kaa.rpc channel closed
> 
> OK, let us ignore Freevo for once and take a look at kaa.candy which
> seems to have a big problem for you.
> 
> Can you add some debug statements into the backend code to see where it
> is crashing? In kaa/candy/src/backend/main.py please add some print
> statements in the run() and imp() functions to figure out where the code
> stopps, reinstall kaa.candy and rerun simple.py
> 
>>> Where do you live? Maybe we could schedule a meeting in the Freevo IRC
>>> channel. This would make debugging much easier.
>>>
>>
>> Boston, USA
> 
> Very different time zone. It would be helpfull if you could join #freevo
> at irc.gnu.org if you are awake and we could try to figure it out.
> 
> 
> Dischi
> 



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to