Thursday, May 2, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1857  / 1 Year ago, mon, may 29, 2023, 12:04:22

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.


More From » application-development

 Answers
1

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

NOTE: had to get daily update version of autopilot





Then everything worked.


[#30469] Wednesday, May 31, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tiowift

Total Points: 119
Total Questions: 113
Total Answers: 110

Location: South Sudan
Member since Sun, Jul 11, 2021
3 Years ago
;