Friday, 6 September 2013

TypeError: 'module' object is not callable when importing glob in Eclipse

TypeError: 'module' object is not callable when importing glob in Eclipse

I am working with Eclipse Kepler(2013) and python 3.3.2 and running a
simple import like
import glob
a = glob.glob('*')
print(a)
gives a:
TypeError: 'module' object is not callable
This is not the case if I run the same code in Idle. I know I am missing
something.
Any help is appreciated.

No comments:

Post a Comment