View Single Post
  #1 (permalink)  
Old August 7th, 2015, 09:44 AM
jc. jc. is offline
Registered User
Points: 53, Level: 1
Points: 53, Level: 1 Points: 53, Level: 1 Points: 53, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2015
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default P79, Try It Out - Download Code

Hi,

The book (correctly) starts with:

Code:
import csv
from datetime import datetime
But the downloaded code (incorrectly) starts with:

Code:
import csv, datetime
As a result, strptime (and presumably strftime) are not found and you get:

Code:
AttributeError: 'module' object has no attribute 'strptime'
Reply With Quote