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:
> #138: Build exe successfully, but it only works on my PC
> ------------------------------------+---------------------------------------
>  Reporter:  kyleinhus...@…          |       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
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to