Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm on Ubuntu 13.04. I'm following this tutorial to write autopilot tests. I get an error when I try to run or list the autopilot tests:

$autopilot list CurrencyConverter

Loading tests from: /home/merlijn/autopilottests/ubuntu-sdk-tutorials/getting-    started/CurrencyConverter/tests/autopilot

Failed to import test module: CurrencyConverter.tests.test_CurrencyConverter Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/loader.py", line 252, in _find_tests module = self._get_module_from_name(name)
File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name__import__(name)
File "/home/merlijn/autopilottests/ubuntu-sdk-tutorials/getting-started/CurrencyConverter/tests/autopilot/CurrencyConverter/tests/__init__.py", line 25, in <module>
from autopilot.input import Mouse, Touch, Pointer
ImportError: No module named input

unittest.loader.ModuleImportFailure.CurrencyConverter.tests.test_CurrencyConverter

If you need more information, feel free to ask.

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

Today I had similar problem. Here are my notes resolve:

NOTE: had to get daily update version of autopilot

Then everything worked.

share|improve this answer
    
Thanks, it worked! –  Galgalesh Jul 4 '13 at 12:00
add comment

I'm one of the autopilot devs.

The function you're looking for was introduced in autopilot 1.3. To check your autopilot version, run:

dpkg -l python-autopilot

If you are running saucy, you will get the very latest version of autopilot every time you do an upgrade. For all other distro released, you will need to add the autopilot PPA, like this:

sudo add-apt-repository ppa:autopilot/ppa

If you have any more questions, you might want to join us in #ubuntu-autopilot, on irc.freenode.net

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.