Issue
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.
Solution
Probably in your Eclipse environment there's a module named glob
that gets imported before the standard library one.
Try printing the glob.__file__
to check it out.
Answered By - Paolo Casciello
Answer Checked By - Mildred Charles (JavaFixing Admin)