Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
#138: Build exe successfully, but it only works on my PC
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
PyInstaller Ticket  
View profile  
 More options Nov 3, 9:36 am
From: "PyInstaller Ticket" <t...@pyinstaller.org>
Date: Tue, 03 Nov 2009 14:36:32 -0000
Local: Tues, Nov 3 2009 9:36 am
Subject: [Pyinstaller] #138: Build exe successfully, but it only works on my PC
#138: Build exe successfully, but it only works on my PC
------------------------------------+-------------------------------------- -
 Reporter:  kyleinhustgs@…          |       Owner:  williamcaban  
     Type:  defect                  |      Status:  new            
 Priority:  normal                  |   Milestone:                
Component:  Documentation           |     Version:  PyInstaller 1.3
 Severity:  blocker                 |    Keywords:  Tkinter        
------------------------------------+-------------------------------------- -
 I write a py script to show a window with two buttons in Windows XP (using
 Tkinter module), it works fine then I built a single exe with Pyinstaller,
 the exe also works fine on my PC; then I test it on another PC, it doesn't
 show the window, and no error, now I'm really confused.Please give me some
 suggestion, thanks.

 Python Version: 2.6.3

 PyInstaller release 1.3

 My PY Scripts:
 #!/usr/bin/env python
 from Tkinter import *
 class App:
     def __init__(self, master):

         frame = Frame(master)
         frame.pack()

         self.button = Button ( frame, text="Test Button 1", fg="red",
 command=self.say_Chou)
         self.button.pack(side=LEFT)
         self.hi_there = Button(frame,text="Test Button
 2",command=self.say_hi)
         self.hi_there.pack(side=LEFT)
     def say_hi(self):
         x_root=Tk()
         w = Label(x_root, text="Window 1")
         w.pack()
         x_root.mainloop()
     def say_Chou(self):
         x_root=Tk()
         w = Label(x_root, text="Window 2")
         w.pack()
         x_root.mainloop()

 def main():
     root = Tk()
     app = App(root)
     root.mainloop()

 if __name__=="__main__":
     main()

 ----------------------------------------
 The "spec" file

 a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
 os.path.join(HOMEPATH,'support\\useUnicode.py'), 'E:\\STUDY\\ActiveState
 Komodo IDE 5\\MyPyFile\\test0002.py'],
              pathex=['E:\\STUDY\\Python\\pyinstaller-1.3'])
 pyz = PYZ(a.pure)
 exe = EXE( pyz,
           a.scripts,
           a.binaries,
           name='test0002.exe',
           debug=False,
           strip=False,
           upx=False,
           console=False , icon='E:\\STUDY\\ActiveState Komodo IDE
 5\\MyPyFile\\32.ico')

 -----------------------------------------
 Build log:

 W: no module named posix (conditional import by os)
 W: no module named optik.__all__ (top-level import by optparse)
 W: no module named readline (delayed, conditional import by cmd)
 W: no module named readline (delayed import by pdb)
 W: no module named pwd (delayed, conditional import by posixpath)
 W: no module named org (top-level import by pickle)
 W: no module named posix (delayed, conditional import by iu)
 W: no module named fcntl (conditional import by subprocess)
 W: no module named org (top-level import by copy)
 W: no module named _emx_link (conditional import by os)
 W: no module named optik.__version__ (top-level import by optparse)
 W: no module named fcntl (top-level import by tempfile)
 W: __all__ is built strangely at line 0 - collections
 (C:\PROGRA~1\Python26\lib\collections.pyc)
 W: delayed  exec statement detected at line 0 - collections
 (C:\PROGRA~1\Python26\lib\collections.pyc)
 W: delayed conditional __import__ hack detected at line 0 - doctest
 (C:\PROGRA~1\Python26\lib\doctest.pyc)
 W: delayed  exec statement detected at line 0 - doctest
 (C:\PROGRA~1\Python26\lib\doctest.pyc)
 W: delayed conditional __import__ hack detected at line 0 - doctest
 (C:\PROGRA~1\Python26\lib\doctest.pyc)
 W: delayed  __import__ hack detected at line 0 - encodings
 (C:\PROGRA~1\Python26\lib\encodings\__init__.pyc)
 W: delayed  exec statement detected at line 0 - Tkinter
 (C:\PROGRA~1\Python26\lib\lib-tk\Tkinter.pyc)
 W: __all__ is built strangely at line 0 - optparse
 (E:\STUDY\Python\pyinstaller-1.3\optparse.pyc)
 W: delayed  __import__ hack detected at line 0 - ctypes
 (C:\PROGRA~1\Python26\lib\ctypes\__init__.pyc)
 W: delayed  __import__ hack detected at line 0 - ctypes
 (C:\PROGRA~1\Python26\lib\ctypes\__init__.pyc)
 W: __all__ is built strangely at line 0 - dis
 (C:\PROGRA~1\Python26\lib\dis.pyc)
 W: delayed  eval hack detected at line 0 - os
 (C:\PROGRA~1\Python26\lib\os.pyc)
 W: __all__ is built strangely at line 0 - __future__
 (C:\PROGRA~1\Python26\lib\__future__.pyc)
 W: delayed conditional __import__ hack detected at line 0 - unittest
 (C:\PROGRA~1\Python26\lib\unittest.pyc)
 W: delayed conditional __import__ hack detected at line 0 - unittest
 (C:\PROGRA~1\Python26\lib\unittest.pyc)
 W: __all__ is built strangely at line 0 - tokenize
 (C:\PROGRA~1\Python26\lib\tokenize.pyc)
 W: delayed  exec statement detected at line 0 - bdb
 (C:\PROGRA~1\Python26\lib\bdb.pyc)
 W: delayed  eval hack detected at line 0 - bdb
 (C:\PROGRA~1\Python26\lib\bdb.pyc)
 W: delayed  eval hack detected at line 0 - bdb
 (C:\PROGRA~1\Python26\lib\bdb.pyc)
 W: delayed  __import__ hack detected at line 0 - pickle
 (C:\PROGRA~1\Python26\lib\pickle.pyc)
 W: delayed  __import__ hack detected at line 0 - pickle
 (C:\PROGRA~1\Python26\lib\pickle.pyc)
 W: delayed conditional exec statement detected at line 0 - iu
 (E:\STUDY\Python\pyinstaller-1.3\iu.pyc)
 W: delayed conditional exec statement detected at line 0 - iu
 (E:\STUDY\Python\pyinstaller-1.3\iu.pyc)
 W: delayed  eval hack detected at line 0 - gettext
 (C:\PROGRA~1\Python26\lib\gettext.pyc)
 W: delayed  __import__ hack detected at line 0 - optik.option_parser
 (E:\STUDY\Python\pyinstaller-1.3\optik\option_parser.pyc)
 W: delayed conditional eval hack detected at line 0 - warnings
 (C:\PROGRA~1\Python26\lib\warnings.pyc)
 W: delayed conditional __import__ hack detected at line 0 - warnings
 (C:\PROGRA~1\Python26\lib\warnings.pyc)
 W: __all__ is built strangely at line 0 - optik
 (E:\STUDY\Python\pyinstaller-1.3\optik\__init__.pyc)
 W: delayed  exec statement detected at line 0 - pdb
 (C:\PROGRA~1\Python26\lib\pdb.pyc)
 W: delayed conditional eval hack detected at line 0 - pdb
 (C:\PROGRA~1\Python26\lib\pdb.pyc)
 W: delayed  eval hack detected at line 0 - pdb
 (C:\PROGRA~1\Python26\lib\pdb.pyc)
 W: delayed conditional eval hack detected at line 0 - pdb
 (C:\PROGRA~1\Python26\lib\pdb.pyc)
 W: delayed  eval hack detected at line 0 - pdb
 (C:\PROGRA~1\Python26\lib\pdb.pyc)

 Regards,
 Kyle

--
Ticket URL: <http://www.pyinstaller.org/ticket/138>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PyInstaller Ticket  
View profile  
 More options Nov 3, 9:39 am
From: "PyInstaller Ticket" <t...@pyinstaller.org>
Date: Tue, 03 Nov 2009 14:39:37 -0000
Local: Tues, Nov 3 2009 9:39 am
Subject: Re: [Pyinstaller] #138: Build exe successfully, but it only works on my PC
#138: Build exe successfully, but it only works on my PC
------------------------------------+-------------------------------------- -
 Reporter:  kyleinhustgs@…          |       Owner:  williamcaban  
     Type:  defect                  |      Status:  new            
 Priority:  normal                  |   Milestone:                
Component:  Documentation           |     Version:  PyInstaller 1.3
 Severity:  blocker                 |    Keywords:  Tkinter        
------------------------------------+-------------------------------------- -

Comment(by kyleinhustgs@…):

 Please feel free to let me know if you need any info, thanks.

--
Ticket URL: <http://www.pyinstaller.org/ticket/138#comment:1>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Höch  
View profile  
 More options Nov 3, 11:06 am
From: Florian Höch <florian.ho...@gmx.de>
Date: Tue, 03 Nov 2009 17:06:00 +0100
Subject: Re: [PyInstaller] #138: Build exe successfully, but it only works on my PC
1.3 is outdated, use the latest pre-release snapshot of Pyinstaller.
Also note Python 2.6 is not officially supported under Windows. There's
a patch you can try if you need Python 2.6 support:
http://www.pyinstaller.org/ticket/39

Regards,

Florian

PyInstaller Ticket schrieb:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google