TypeError: 'module' object is not callable

Gary Wessle phddas at yahoo.com
Fri Apr 28 03:05:45 EDT 2006


dear python users

I am not sure why I am getting

****************************************************************
Traceback (most recent call last):
  File "my.py", line 3, in ?
    urlparse('http://www.cwi.nl:80/%7Eguido/Python.html')
TypeError: 'module' object is not callable
****************************************************************

with this code

****************************************************************
import urlparse

urlparse('http://www.cwi.nl:80/%7Eguido/Python.html')
****************************************************************


thank you



More information about the Python-list mailing list