'module' object is not callable

891 views
Skip to first unread message

ankushchadda

unread,
Jun 16, 2010, 3:45:45 PM6/16/10
to beautifulsoup
Im trying to parse an html page on Google app engine.
This error occures:

'module' object is not callable
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/__init__.py", line 513, in __call__
handler.post(*groups)
File "/base/data/home/apps/webowordtest/1.342715216501310461/answer-
me.py", line 22, in post
soup2=BeautifulSoup(page12.read())
TypeError: 'module' object is not callable

I cant see error in this line.

ankushchadda

unread,
Jun 16, 2010, 4:07:21 PM6/16/10
to beautifulsoup
Jst got the answer.
I need to import the function beautifulsoup from the module
beautifulsoup

just import correctly
for me..it was
from beautifulsoup import beautifulsoup
Reply all
Reply to author
Forward
0 new messages