[web2py] Read excel sheet in web2py

2012-04-28 Thread rahulserver
I wish to read an excel sheet in web2py.I tried few samples from python codes which use the xlrd object.However in web2py, when I import the xlrd object, I get the following error: type 'exceptions.ImportError' No module named xlrd So why is it like that? And is there any way to read an excel

Re: [web2py] Read excel sheet in web2py

2012-04-28 Thread Gary Herron
On 04/28/2012 09:32 AM, rahulserver wrote: I wish to read an excel sheet in web2py.I tried few samples from python codes which use the xlrd object.However in web2py, when I import the xlrd object, I get the following error: type 'exceptions.ImportError' No module named xlrd So why

Re: [web2py] Read excel sheet in web2py

2012-04-28 Thread Anthony
That just means you didn't install or import the module correctly. Both are easy. Place the xlrd folder hierarchy in the modules folder of your app. Then import it with: xlrd = local_import('xlrd') Note, local_import has been deprecated. Even for modules in the application's

Re: [web2py] Read excel sheet in web2py

2012-04-28 Thread RAHUL PRIYADARSI
Dear All, Thank you very much for your reply. I was getting this error because as Anthony pointed out That just means you didn't install or import the module correctly. .So I downloaded xlrd from this link: