Comment 10 for bug 155927

Revision history for this message
Ian Lawrence (ianlawrence) wrote :

I have some 'solution' and dogtail is now running inside ume...i am still getting errors but now i think they are related to the application under tests. This is what I did:

1. Created a new lpia image in MIC

2. In a target:
aptitude install libgail-common libgail-dev libbonobo2-0 libbonobo2-common libbonobo2-dev autoconf autotools-dev libtool gtk-doc-tools automake1.7
automake1.9 hildon-desktop-dev outo libatspi-dev libatspi1.0-0 python-pyatspi libffi4 libffi4-dev python2.5-dev

3. Compile and Install Hildon Accessibility Library to the target (https://edge.launchpad.net/hail/)
./autogen.sh --prefix=/usr
make && make install

4. Put the rocknrole.py script inside the targets /usr/lib/python2.5 directory.
5. Start 2 target terminals...in one run ume-xephyr-start and when the ume desktop appears run moblin-media

In the other terminal other do this:

(T: lpia-traget)root@lawrence:/home/ume# python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:40:04)
[GCC 4.2.1 (Ubuntu 4.2.1-5ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from rocknrole import *
Creating logfile at /tmp/dogtail/logs/log_20071217-135744_debug ...
Detecting distribution: Ubuntu (or derived distribution)
Hildon Accessibility Module initialized
Creating logfile at /tmp/dogtail/logs/log_20071217-135744_results ...

>>> the_mutts_nuts=appR('moblin-media')
searching for child of {root}: "moblin-media" application (attempt 3)
searching for child of {root}: "moblin-media" application (attempt 4)
searching for child of {root}: "moblin-media" application (attempt 5)
searching for child of {root}: "moblin-media" application (attempt 6)

....

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/rocknrole.py", line 414, in appR
    return RNR(tree.root.application(app))
  File "/var/lib/python-support/python2.5/dogtail/tree.py", line 1092, in application
    return Application(root.findChild(predicate.IsAnApplicationNamed(appName),recursive=False))
  File "/var/lib/python-support/python2.5/dogtail/tree.py", line 875, in findChild
    raise SearchError(describeSearch(self, pred, recursive, debugName))
SearchError: child of {root}: "moblin-media" application

this error is now related to moblin-media (not registering itself properly i think) and not dogtail which now imports fine