p2exe using wine/cxoffice
Thomas Heller
theller at python.net
Wed Sep 14 02:43:24 EDT 2005
James Stroud <jstroud at mbi.ucla.edu> writes:
> Hello,
>
> My department has switched from vmware to wine/cxoffice. I have been
> playing with this all morning, and I've gotten this far. If someone
> has done this, could you point me in the right direction
>
>
> euler 65% winpy
> Enthought Edition build 1057
> Python 2.3.3 (#51, Feb 16 2004, 04:07:52) [MSC v.1200 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> py> from distutils.core import setup
> py> import py2exe
> py> import sys
> py> sys.argv.append('py2exe')
> py> setup(console=["erase.py"])
> running py2exe
> *** searching for required modules ***
> *** parsing results ***
> creating python loader for extension '_sre'
> *** finding dlls needed ***
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "C:\Python23\lib\distutils\core.py", line 149, in setup
> dist.run_commands()
> File "C:\Python23\lib\distutils\dist.py", line 907, in run_commands
> self.run_command(cmd)
> File "C:\Python23\lib\distutils\dist.py", line 927, in run_command
> cmd_obj.run()
> File "C:\Python23\lib\site-packages\py2exe\build_exe.py", line 183, in run
> self._run()
> File "C:\Python23\lib\site-packages\py2exe\build_exe.py", line 230, in _run
> dlls = self.find_dlls(extensions)
> File "C:\Python23\lib\site-packages\py2exe\build_exe.py", line 300, in find_dlls
> self.dll_excludes)
> File "C:\Python23\lib\site-packages\py2exe\build_exe.py", line 768, in find_dependend_dlls
> alldlls, warnings = bin_depends(loadpath, images, dll_excludes)
> File "C:\Python23\lib\site-packages\py2exe\build_exe.py", line 1086, in bin_depends
> for result in py2exe_util.depends(image, loadpath).items():
> py2exe_util.bind_error: (120, 'Call not implemented', 'C:\\Python23\\DLLs\\_sre.pyd')
>
I guess this means that wine does not implement some function in
imagehlp.dll (which py2exe_util uses). It *may* be possible to write a
pure Python version of the binary dependency analysis (afaik, McMillan
installer has such code) - but since I don't run py2exe on linux I won't
do it myself. Even better would be to fix wine ;-), if my guess is correct.
Thomas
More information about the Python-list
mailing list