Post-EasyTether, PDANet Tethering Samsung Galaxy 4g to Mac OS X 10.7.4 to Implement Python
Question: 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:

[mac os x 10.6.6 and "adb devices" fails to list android
devices](http://stackoverflow.com/questions/4680637/mac-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.


Answer: I'm not sure if that book is great for Python 3. There is a Python3
APK(http://code.google.com/p/python-for-
android/downloads/detail?name=Python3ForAndroid_r6.apk), but the other one,
the standard PythonForAndroid is 2.6(?) based. You need to use the same
version of python across both your android device and your local machine for
what you're trying to do. I'm not sure which Python 3 ve

When I was playing with this and the same book, I had to install the same
version of python on my local machine that was used in the APK I installed on
my device. It was still a lot of screwing around to get it to work and wasn't
really worth the effort in the end.

However, I found that just pushing the script across and instantly running it
was way easier than trying to play with IDLE remotely. This is now how I
rapidly prototype any Android apps I'm planning to work on.

