Menu

#94 py2exe for Python 2.5 - unsupported pythoncom25.dll

open
nobody
None
5
2006-07-04
2006-07-04
Anonymous
No

My project executable, created with py2exe, throws an
exception while importing COM related functionality with:

ImportError: No module named pythoncom

I was able to fix this by including again ".dll" as a
valid C_EXTENSION into the table provided via
imp.get_suffixes() from dynload_win.c

This breaks the fix for sqlite3, as discussed in thread
"[Python-Dev] Renaming sqlite3"
http://mail.python.org/pipermail/python-dev/2006-April/063379.html

The actual revision that breaks things is
http://svn.python.org/view?rev=43622&view=rev

Kind regards,
Don Quijote

Discussion

  • Mark Hammond

    Mark Hammond - 2006-09-22

    Logged In: YES
    user_id=14198

    Attached is a patch that does not treat .dll as valid for
    anything other than pywintypes and pythoncom. These 2 files
    already have special treatment in that file, so that
    treatment was expanded. IIUC, this patch should not have
    any issues wrt sqlite3

     
  • Mark Hammond

    Mark Hammond - 2006-09-22

    patch that enhances the special treatment for pywintypes and pythoncom

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.