My environment consist of Ubuntu 13.04, Optimus Q2 with ics.
when I run the following code, it prints 0 but never 1
#! /usr/bin/env monkeyrunner
# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
print "0"
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()
print "1"
do I have to change my Ubuntu to Windows, install smartphone driver, and then try again?