Personal tools
You are here: Home Documentation Error References python.exe Unable to locate Component - pywintypes23.dll not found
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

python.exe Unable to locate Component - pywintypes23.dll not found

Warning: This item is marked as outdated.

This Error Reference applies to: Plone 2.1.x, Plone 2.0.x
This Error Reference is intended for: Any audience.

python.exe Unable to locate Component - [..] pywintypes23.dll not found [..]

Zope with Plone on Windows pops up a alert window with the message above.

Reason

The python version has a problem to find a function in the DLL when importing win32api module of Python windows extensions. This module is loaded by PortalTransforms Product for Archetypes 1.3.x shipped with Plone 2.1.x.

Description

PortalTransforms automagically loads available transforms from one mimetype to another and checks it's platform running on for available features.

The word_to_html transform looks for availablity of COM by importing win32com. If this fails the transform is just not available - no reason to worry about. The test for COM availibility itself normally shouldnt affect any user interaction. Unfortunally Windows pops up a dialog-box at this point.

After clicking ok, the Plone/Zope continues starting and works as a production ready application server. It just hasnt a Microsoft Word .doc to HTML converter available.

Solution:

By code manipulation

Surpress checking of word_to_html by commenting the line 20 word_to_html in File 'Products.PortalTransforms.transforms.__init__.py:

   modules = [
    'st',             # zopish
    'rest',           # docutils
    #'word_to_html',   # uno, com, wvware
    'safe_html',      # extract <body> and remove potentially harmful tags
    'html_body',      # extract only the contents of the <body> tag
    'html_to_text',   # re based transform

And in Products.PortalTransforms.libtransforms.utils.py fixate the check for WIN32 to True:

   from sgmllib import SGMLParser

   #try:
   #    import win32api
   #    WIN32 = True
   #except ImportError:
   #    WIN32 = False
   WIN32 = True

   class MissingBinary(Exception): pass

By Windows manipulation

Append the ZOPE_HOME\bin directory to the system-path. This does not work in every case if Zope is started as a service.

Anybody with other success stories: Please let us know and add a comment to this page.

by Jens W. Klein last modified February 28, 2006 - 15:17
Contributors: Martin Raspe
All content is copyright Plone Foundation and the individual contributors.

python.exe Unable to locate Component - [..] pywintypes23.dll not found [..]

Posted by Frank Wilder at June 8, 2006 - 13:22

I am running: - WinXP Prof, service pack 2 - Python 2.3.5 and 2.4.3 - Zope-2.8.1-final

I was having the same problem. I found that I had an older version of pywintypes23.dll (ver 2.3.0.163) in C:/windows/system32 than the copy (ver 2.3.208.0) that came with plone.

I did the following : - renamed the old version to "old pywintypes23.dll" - copied the newer version from the plone install folder (c:/program files/plone) to the system32 dir - rebooted - ran the plone install again (Plone-2.1.3-with-Zope-2.8.exe)

The install did not throw this error this time.

copy pywintypes23.dll to winnt\system32

Posted by Norbert Klamann at July 5, 2006 - 07:48

Plone 2.1.3 on Win XP. The file is placed in [Plone-Dir]\Python\Lib\site-packages\pywin32_system32\ ant this seems not to be in the path.

ant -> and

Posted by Norbert Klamann at July 5, 2006 - 07:48

too bad that one cannot edit ones own comments ...


For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by