Jump to content


Photo

Chapter 8, Page 276


  • Please log in to reply
3 replies to this topic

#1 trumpest

trumpest

    New Member

  • Members
  • Pip
  • 3 posts

Posted 26 September 2012 - 06:00 PM

Hi, Paul:
I just start to program since last month.
I have tried everything to finish the chapter 8, but
it does not seem to work.
The android emulator keeps showing this message:
https://www.dropbox....p. 21 13.03.jpg
https://www.dropbox....p. 27 09.47.jpg

Can you tell me what's wrong?

My android emulator is: 2.3.3
Also, I have downloaded:
PythonForAndroid_r6.apk
sl4a_r6.apk

Thanks for your instruction.


A confused rookie..

Edited by trumpest, 26 September 2012 - 06:01 PM.


#2 trumpest

trumpest

    New Member

  • Members
  • Pip
  • 3 posts

Posted 27 September 2012 - 10:49 PM

I have installed python to 2.6.2
and the same python_for_android_r1.apk
and the sl4a_r2.apk. The version follows the ones in the text,
but it does not seem to work...
The error is like the following:
<urlopen error [Errno100] connection timeout.>

#3 trumpest

trumpest

    New Member

  • Members
  • Pip
  • 3 posts

Posted 27 September 2012 - 11:12 PM

I have installed python to 2.6.2
and the same python_for_android_r1.apk
and the sl4a_r2.apk. The version follows the ones in the text,
but it does not seem to work...
The error is like the following:
<urlopen error [Errno100] connection timeout.>



The problem is solved.
I have executed the server by running simple_httpd.py
to make sure the server is running.

Then everything finally works......with python 2.6.2 and 3.2

#4 emozhe

emozhe

    New Member

  • Members
  • Pip
  • 6 posts

Posted 24 December 2013 - 05:57 AM

Hi, Paul:
I just start to program since last month.
I have tried everything to finish the chapter 8, but
it does not seem to work.
page273
Starting simple_httpd on port: 8080
http://localhost:808...nerate_names.py
["James Lee", "Julie Jones", "Mikey McManus", "Sally Sanchez", "Sarah Sweeney", "Vera Vi"]
in python3.3 shell display
127.0.0.1 - - [24/Dec/2013 21:54:27] "GET /cgi-bin/generate_names.py HTTP/1.1" 200 -
127.0.0.1 - - [24/Dec/2013 21:54:27] command: C:\Python33\python.exe -u C:\Python33\HeadFirstPython\chapter8\webapp-chapter8\cgi-bin\generate_names.py ""
127.0.0.1 - - [24/Dec/2013 21:54:28] CGI script exited OK
127.0.0.1 - - [24/Dec/2013 21:54:28] "GET /favicon.ico HTTP/1.1" 200 -


Can you tell me what's wrong?
Thanks for your instruction




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users