Search code examples
pythonimporterrorpython-modulelibgmail

Python - problem in importing new module - libgmail


I downloaded Python module libgmail from sourceforge and extracted all the files in the archive. The archive had setup.py, so I went to that directory in command prompt and did

setup.py install 

I am getting the following error message

I:\libgmail-0.1.11>setup.py install
Traceback (most recent call last):
  File "I:\libgmail-0.1.11\setup.py", line 7, in ?
    import libgmail
  File "I:\libgmail-0.1.11\libgmail.py", line 36, in ?
    import mechanize as ClientCookie
ImportError: No module named mechanize

This may be trivial, but I am new to python. So plz guide what to do.

please note, I am using python 2.4 and using Windows-XP.

Thank you

MicroKernel


Solution

  • I think this lib depends on this one:

    http://wwwsearch.sourceforge.net/mechanize/

    Try installing it first.