Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Acer Liquid Metal, Gingerbread...

I've tried installing Python on Android (and s4la: http://code.google.com/p/android-scripting/) but when I run the hello world script I get:

dlopen libpython2.6.so

Traceback (most recent call last):

File "compass.py", line 2, in <module>

droid = android.Android()

File "/sdcard/com.googlecode.pythonforandroid/extras/python/android.py", line 34, in __init__

self.conn = socket.create_connection(addr)

File "/home/manuel/AptanaStudio3Workspace/python-for-android/python-build/output/usr/lib/python2.6/socket.py", line 498, in create_connection socket.gaierror: [Errno 8] hostname nor servname provided, or not known."

Any ideas?

share|improve this question
up vote 3 down vote accepted

Easy peasy:

I was using adaway (an app that blocks ads) and somehow its tweaking of my hosts file was not accepted by Python.

Yay! :D

share|improve this answer
    
Thank you for answering back. Why don't you accept this as accepted answer? :D – roxan Apr 1 '12 at 3:59
    
I am glad you found it helping :) I can't accept my own answer until 2 days pass :) – Pitto Apr 1 '12 at 17:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.