Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6693751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:01:19+00:00 2026-05-26T06:01:19+00:00

I created python executables with py2exe with both 64bit python interpreter and 32 bit

  • 0

I created python executables with py2exe with both 64bit python interpreter and 32 bit python interpreter.

In my program, I use the module pywin32 com, and so I dl’ed and installed both the 64bit and 32bit versions of the program prior to creating the executable.

The 64bit exe works fine, but the 32 bit one has the following problem:

Traceback (most recent call last):
  File "program.py", line 11, in <module>
  File "win32com\__init__.pyc", line 5, in <module>
  File "win32api.pyc", line 12, in <module>
  File "win32api.pyc", line 10, in __load
ImportError: DLL load failed: The specified procedure could not be found.

I tried both versions by running the source directly, ie python program.py and C:\python_32\python.exe program.py and both work fine.

Note I tested the 64bit exe on a 64bit windows 7 computer and the 32bit exe on a 32bit windows XP computer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:01:20+00:00Added an answer on May 26, 2026 at 6:01 am

    Older than everything ever, but I stumbled on this problem today, and if anyone else does, what I ran was:

    python /c/Python26/Scripts/pywin32_postinstall.py -install from the commandline (change values to fit). That worked:

    $ python /c/Python26/Scripts/pywin32_postinstall.py -install
    Copied pythoncom26.dll to C:\WINDOWS\system32\pythoncom26.dll
    Copied pythoncomloader26.dll to C:\WINDOWS\system32\pythoncomloader26.dll
    Copied pywintypes26.dll to C:\WINDOWS\system32\pywintypes26.dll
    Registered: Python.Interpreter
    Registered: Python.Dictionary
    Registered: Python
    -> Software\Python\PythonCore\2.6\Help[None]=None
    -> Software\Python\PythonCore\2.6\Help\PythonwinReference[None]='c:\\Python26\\Lib\\site-packages\\PyWin32.chm'
    Pythonwin has been registered in context menu
    Creating directory c:\Python26\Lib\site-packages\win32com\gen_py
    Shortcut for Pythonwin created
    Shortcut to documentation created
    The pywin32 extensions were successfully installed.`
    

    (On WinXP SP3)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a Python module that creates and populates several SQLite tables. Now,
When I extract files from a ZIP file created with the Python zipfile module,
I created an executable with py2exe on a 64bit windows 7 machine, and distributed
I have a new 64-bit Windows machine and use python for various things and
I'm still new to Python and py2exe. I've created an executable from py2exe, but
So, I created a simple python module, test.py import commands def main(): cmd =
(In windows) I have both Python 2.6 and 2.4 installed on a machine (for
I have a Python app that works fine. Now I use py2exe to create
My CentOS 5.5 server has both Python 2.4 and Python 2.7 installed (to /opt/python2.7.2
I have created two python environments with virtualenv: /usr/local/pythonenv/BASELINE and /usr/local/pythonenv/django1 . Both were

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.