Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24839 > unrolled thread

exe made by py2exe do not run certain computer

Started by"self.python" <howmuchistoday@gmail.com>
First post2012-07-03 16:12 -0700
Last post2012-07-04 11:23 +1000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  exe made by py2exe do not run certain computer "self.python" <howmuchistoday@gmail.com> - 2012-07-03 16:12 -0700
    Re: exe made by py2exe do not run certain computer Miki Tebeka <miki.tebeka@gmail.com> - 2012-07-03 16:46 -0700
      Re: exe made by py2exe do not run certain computer Mark Hammond <skippy.hammond@gmail.com> - 2012-07-04 11:23 +1000

#24839 — exe made by py2exe do not run certain computer

From"self.python" <howmuchistoday@gmail.com>
Date2012-07-03 16:12 -0700
Subjectexe made by py2exe do not run certain computer
Message-ID<27300d23-adf1-4638-a980-8568e1e74d0d@googlegroups.com>
http://makeitmine.tistory.com/attachment/cfile8.uf@192588384FF2C587070EF7.zip

it's a kind of site viewer program and I made it the EXE file using py2exe

It works fine on my computer and some other computer don't have python interpreter(it's Windows 7).

But the same file also do not work on another computer(it's Windows xp)

why does it happen?

is there something difference about windows?

I want to distribute my application who don't have Python:(

[toc] | [next] | [standalone]


#24842

FromMiki Tebeka <miki.tebeka@gmail.com>
Date2012-07-03 16:46 -0700
Message-ID<a80f7982-1777-418e-a165-851fee3a26e3@googlegroups.com>
In reply to#24839
> It works fine on my computer and some other computer don't have python interpreter(it's Windows 7).
> But the same file also do not work on another computer(it's Windows xp)
> why does it happen?
My *guess* is that you're missing some DLLs (probably some Visual Studio runtime ones).

You can run http://www.dependencywalker.com/ on the generated exe and see which DLLs it uses. If you do it on the machine with the problems, these DLLs will be highlighted.

[toc] | [prev] | [next] | [standalone]


#24843

FromMark Hammond <skippy.hammond@gmail.com>
Date2012-07-04 11:23 +1000
Message-ID<mailman.1769.1341365029.4697.python-list@python.org>
In reply to#24842
On 4/07/2012 9:46 AM, Miki Tebeka wrote:
>> It works fine on my computer and some other computer don't have
>> python interpreter(it's Windows 7). But the same file also do not
>> work on another computer(it's Windows xp) why does it happen?
> My *guess* is that you're missing some DLLs (probably some Visual
> Studio runtime ones).
>
> You can run http://www.dependencywalker.com/ on the generated exe and
> see which DLLs it uses. If you do it on the machine with the
> problems, these DLLs will be highlighted.

Another possibility is that py2exe is erroneously picking up *other* 
DLLs from the OS, which you are packaging and installing.  So check your 
distribution for *all* .dll files - most Python extension modules are 
.pyd, so the actual number of .dll files needed should be quite small 
and relatively stable across different py2exe invocations.

Mark

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web