linux wine py2exe ??

duikboot arjen.dijkstra%no%-%spam% at hccnet.nl
Sun Dec 21 15:45:03 EST 2003


Hi


A friend of mine runs windows, and asked me to write a little script. He has no Python installed though, and istalling it, is no option.
So I really wanted to make an executable for windows.
So I Installed wine:

[arjen at localhost]$ rpm -qa | grep wine
wine-devel-20031212-1fc1winehq
wine-20031212-1fc1winehq

Then I created the scripts he needed, and tried to make it an executable.

I'll throw all the code in and the errors

I hope you can help me. 
Thanks anyway for your trouble

Greetings,
Arjen

####code script######
from glob import glob
from string import strip
lijst=glob("*.txt")
                                                                                
for bestand in lijst:
        o=open(bestand).read()[1:]
        b=open(bestand,'w')
        b.write(o)
        b.close()


###setup.py###
from distutils.core import setup
import py2exe
 
setup(name="vervang",
      scripts=["vervang.py"],
)

[arjen at localhost Python23]$ wine python.exe setup.py py2exe
fixme:console:SetConsoleCtrlHandler (0x7800f03e,1) - no error checking or testing yet
running py2exe
running build
running build_scripts
running install_scripts
fixme:imagehlp:BindImageEx (7, "C:\\Python23\\DLLs\\_sre.pyd", "C:\\Python23\\DLLs;C:\\Python23;C:\\WINDOWS\\SYSTEM;C:\\WINDOWS;c:\\windows;c:\\windows\\"..., (null), 0x10001570): stub
Traceback (most recent call last):
  File "setup.py", line 6, in ?
    scripts=["vervang.py"],
  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 698, in run
    extra_path + sys.path)
  File "C:\PYTHON23\Lib\site-packages\py2exe\build_exe.py", line 842, in find_dependend_dlls
    alldlls, warnings = bin_depends(loadpath, images)
  File "C:\PYTHON23\Lib\site-packages\py2exe\build_exe.py", line 1154, in bin_depends
    for result in py2exe_util.depends(image, loadpath).items():
py2exe_util.bind_error: C:\Python23\DLLs\_sre.pyd







More information about the Python-list mailing list