(1) The test code:
Import IEC </P> <p> Ie = IEC. iecontroller () # create a new ie window. <br/> IE. navigate ('HTTP: // www.google.com/') # navigate to a website. <br/> IE. setinputvalue ('Q', 'mayukh Bose ') # Fill in the search box. <br/> IE. clickbutton (name = 'tng') # click on the Search button.
(2) The IEC module download URL:
Http://www.mayukhbose.com/python/IEC/index.php
(3) I ran the test code in pyscripter-portable, and I got
Following error message:
* ** Python 2.5.4 (r254: 67916, Dec 23 2008, 15:10:54) [MSC v.1310 32
Bit (Intel)] on win32 .***
>>>
Traceback (most recent call last ):
File "<string>", line 244, in run_nodebug
File "E:/PPy/libdl/module3.py", line 1, in <module>
Import IEC
File "E:/PPy/libdl/IEC. py", line 40, in <module>
File "E:/PPy/APP/lib/Site-packages/win32com/_ init _. py", line 6, in
<Module>
Import pythoncom
File "E:/PPy/APP/lib/Site-packages/pythoncom. py", line 3, in
<Module>
Pywintypes. _ import_pywin32_system_module _ ("pythoncom ",
Globals ())
File "E:/PPy/APP/lib/Site-packages/Win32/lib/pywintypes. py", line
99, in _ import_pywin32_system_module __
"No system module '% s' (% s)" % (modname, filename)
Importerror: No system module 'pythoncom' (pythoncom25.dll)
>>>
(4) even I have copied "pythoncom25.dll" to C:/Windows/system32,
Same error remains.
(5) thanks in advance.
======================================== Solution ================ ====================
There is a solution which works for me.
You have to copy files:
<Portablepythondir>/APP/lib/Site-packages/Win32/pywintypes25.dll
<Portablepythondir>/APP/lib/Site-packages/win32com/pythoncom25.dll
To
<Portablepythondir>/APP
Where <portablepythondir> is a folder where pp installed.
From: http://groups.google.com/group/portablepython/browse_frm/thread/acfacb783bc39cb7