<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I have a Python script getData.py that uses Mechanize, and runs fine
under the interpreter. It was installed using easy_install - and the
install seemed to indicate it was completed.<br>
<br>
The problem is, when I try to compile it using py2exe while in the
folder of the script, and using the run line command:<br>
<br>
<u><i><b>python getData.py py2exe</b></i></u><br>
<br>
I get the warning: "Import error: No Module named mechanize"...<br>
<br>
I checked the environmental path and find the following:<br>
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
Files (x86)\Python;C:\Python25\Lib\site-packages;C:\Program Files
(x86)\Common Files\Adobe\AGL<br>
<br>
I did a search for mechanize and find an egg file in
C:\Python25\Lib\site-packages named mechanize-0.1.7b-py2.5.<br>
<br>
Not really understanding the "egg" thing, what do I have here that
needs to be done?<br>
<br>
Stephen<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>