Jennifer Davis (sigje) wrote,
Jennifer Davis

Checking out Head First Programming

I'll write a complete review at some point, but just wanted to make a comment about the urllib.request exercise it has in Chapter 3.

If you are like me and starting to learn python, you may have downloaded the recommended 2.6.4 release and started mucking about with it. I first downloaded python when it was the 2.6.3 release so this may no longer be applicable, but it wasn't available within the first few lines when I did a search for the error:

Traceback (most recent call last):
File "", line 1, in
import urllib.request
ImportError: No module named request

As the book Head First programming mentions in the intro, they are basing their code on 3.0 line of code. Download the latest release (3.1.1 at this time) and you will have no problem.

  • Day 1: Your Current Relationship; If Single Discuss How Single Life Is.

    So I'm copying Phil, sounds like a great way to get myself writing. Day 1's topic seems a bit.. incomplete. Current relationship? 15 years ago,…

  • Hike number 2 of 2011!

    Today hiked at Sunol Regional Wilderness and it was actually hike number 2! On Thursday I went hiking at Henry Cowell State Park and Natural Bridges…

  • (no subject)

    So, been doing much better since going gluten-free/paleo diet mostly. There is this relatively new studies out about lectins and how they react to…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment