0

I failed at setting up AndroidViewClient. It's a tool for Android testing, I want to run a Script (check-import.py) which start with:

#! /usr/bin/env monkeyrunner
'''
Created on Aug 29, 2012

@author: diego
'''

import re
import sys
import os

but fails with

  File "/home/asc/AndroidViewClient/AndroidViewClient/examples/check-import.py", line 8, in <module>
    import re
ImportError: No module named re

130617 20:04:31.907:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.Py.ImportError(Py.java:304)
130617 20:04:31.907:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.import_first(imp.java:755)
130617 20:04:31.907:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.import_module_level(imp.java:837)
130617 20:04:31.907:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.imp.importName(imp.java:917)

Monkeyrunner is part of the Android SDK and, as far as I understand it, can be used as an alternative Python interpreter. It is in my path and runs fine from the command line, python is installed. I tried this on different linux installations. What am I doing wrong?

Akshay
  • 1,019
  • 12
  • 21
fweigl
  • 21,278
  • 20
  • 114
  • 205

0 Answers0