Re: [Tutor] xlrd has no attribute

2018-01-11 Thread Alan Gauld via Tutor
On 11/01/18 22:52, Roger Lea Scherer wrote: > Traceback (most recent call last): > File "C:\Users\Roger\Documents\Roger\Python\xlrd.py", line 1, in > import xlrd Look closely at the error message. What is the name of the file that causes the error? What is the name of the module you are im

[Tutor] xlrd has no attribute

2018-01-11 Thread Roger Lea Scherer
I'm trying to learn how open a xls file in python. I thought this would be easier. I've read on a blog this code and seen it on other websites. I thought I'd try it out. I'm on Windows 10 with python 3.6.4. import xlrd def open_file(path): """ Open and read an Excel file """ book