linux wine py2exe ??

D

duikboot

Hi all,

I've tried to create a .exe file on linux (Fedora).

So in installed wine, python2.3 with wine and py2exe (with wine ofcourse)

I made a setup file (setup.py) and ran
wine python.exe setup.py py2exe

Does anybody know what I've done wrong? Or is it just not possible

Greetings,
Arjen

output:
arjen@linux 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

####
from distutils.core import setup
import py2exe

setup(name="vervang",
scripts=["vervang.py"],
)
#####
 
J

Jules Dubois

On Fri, 19 Dec 2003 20:22:23 +0100, in article
Does anybody know what I've done wrong?
No.

Or is it just not possible
Maybe.

arjen@linux Python23]$ wine python.exe setup.py py2exe [...]
py2exe_util.bind_error: C:\Python23\DLLs\_sre.pyd

Did you copy the pyd file into C:\Python23\DLLs\ on the (WINE-mapped) C:
drive? In the past, I've copied DLLs one by one into my WINE configuration
directory as applications complained about not finding them. In some
cases, I've successfully run the programs; some not.

Does the WINE log provide more information?
 
T

Tim Roberts

duikboot said:
I've tried to create a .exe file on linux (Fedora).

So in installed wine, python2.3 with wine and py2exe (with wine ofcourse)

I made a setup file (setup.py) and ran

Does anybody know what I've done wrong? Or is it just not possible

Before folks spend a lot of time giving the answer, I would just like to
confirm something.

Are you REALLY trying to create a Windows executable on Linux? Or are you
actually wanting to make a Linux executable, and you have been misled into
thinking that py2exe is the only way to do that?
 
D

Doveclaw

Assuming he knows what wine is, and that it looks like he installed a
versions of Python through wine.. he's trying to create a windows
executable with wine on a linux box. I didn't see the original message,
but I'd think we all need some more information (as far as errors and
the code that threw them).. unless somebody knows a reason off the top
of their head.. such as whether that wine-installed version would be
able to happily co-exist.
 
D

duikboot

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@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@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
 
S

Simon Burton

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:

Yeah! I think this is a great idea. Please let us know how you go.

Simon Burton.
 
L

Lukasz Pankowski

duikboot said:
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.

I recently done similar thing but using `McMillan installer`_ and
`Inno Setup`_. The program was wxPython app with a C extension. I
tried py2exe half year ago and have some problem with running it under
wine, but do not remember what it was.

... _McMillan installer: http://www.mcmillan-inc.com/install1.html
... _Inno Setup: http://www.jrsoftware.org/isinfo.php
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top