Unable to use IEC module under portablepython_1.20.py2.5.4

Source: Internet
Author: User

(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.