Getting an example of a dog tail script to run on Ubuntu 10.04

I recently installed Dogtail, an open source GUI testing tool and automation system. I downloaded the sample script (https://fedorahosted.org/dogtail/browser/examples/gedit-test-utf8-tree-api.py?format=txt) to my computer, but I had problems with its operation. When I call it, I get a message:

corey@corey-laptop:~/Desktop/exercise$ ./gedit-test-utf8-tree-api.py 
Traceback (most recent call last):
  File "./gedit-test-utf8-tree-api.py", line 6, in <module>
    from dogtail import tree
  File "/home/joe/Desktop/exercise/dogtail.py", line 6, in <module>
    from dogtail import tree
ImportError: cannot import name tree

I am using Ubuntu 10.04. I am not sure why this will not work or how to fix it. Any ideas?

+3
source share
3 answers

Do not specify the file in / home / joe / Desktop / exercise dogtail:

  File "/home/joe/Desktop/exercise/dogtail.py", line 6, in <module>
    from dogtail import tree

Python dogtail.py , /usr/share/python -support/python-dogtail/dogtail.

, python

import dogtail
dogtail.__file__

, .

+3

, , .

~/Desktop/exercise

Dogtail.py , dogtail tree.py. dogtail.py ?

- .

+1

Mina worked when I installed the dog tail in / usr / local and not / usr ./setup.py install --prefix = / usr / local

+1
source

Source: https://habr.com/ru/post/1767628/


All Articles