I'm using Mac OS X Version 10.7.4 and Python 3.2.3. I've read through many of the equally frustrated posts on Stack Overflow, this one was especially useful in helping me delete EasyTether after it didn't work, and turns out was blocking PDANet from working:
OS X 10.6.6 and "adb devices" fails to list android devices
I'm using Paul Ferrill's "Pro Android Python with SL4A" and for the past 4 hours I've just wanted to be able to type the following in my Mac's IDLE session:
>>>import android
>>>droid = android.Android()
>>>droid.makeToast("Hello Android from Mac")
I'm pretty stymied at this point. I've allowed USB debugging on my Samsung Galaxy 4g, I finally have the PDANet software working, but I have nothing to show for it. I've watched a bunch of Youtube tutorials, this one was helpful for installing PDANet:
http://www.youtube.com/watch?v=yR9GANNKUgo
A lot of other people had similar trouble with EasyTether, but now that I have PDANet working, I still can't seem to get this code to work. Right now, my I have the following:
Python 3.2.3 Type "copyright", "credits" or "license()" for more information.
import android
Traceback (most recent call last):
File "", line 1, in
import android
ImportError: No module named android
I would be so very thankful for any help you can provide.
Correction
I understand that the reason the code throws an error is that the android module is not found on my computer. I'm simply wondering how I can get my Mac to connect with my Samsung Galaxy such that I can write the above code and have the file android.py that is on my android register with my script on my Mac, such that the program works.