Problem compiling an exe with py2exe and pyinstaller 1.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luke14free
    New Member
    • Apr 2007
    • 79

    Problem compiling an exe with py2exe and pyinstaller 1.3

    Hello,
    I'm working on a project and I need to compile it to run it on win as an exe.
    I choose pyinstaller to build my exe but after several tries my result is always the same, from my console (win2k - py2.5/2.4) I type:
    Code:
    c:\>cd pyinstaller-1.3
    c:\pyinstaller-1.3>Makespec -w --noconsole ..\\fatture\\fatture.py
    [...]project compiled...now run Build to build (more or less)
    c:\pyinstaller-1.3>Build fatture\\fatture.spec
    [...]
    [...]
    Compiled successfully
    Then I try to execute my file and nothing happens. I thought it may have been a pyinstaller problem and i tried with py2exe, same result, when executing no window comes out.
    My program has no sintax error, and I'm able to run it as a .py file.
    Thanks in advance for help,
    Luke
  • luke14free
    New Member
    • Apr 2007
    • 79

    #2
    Any idea ??
    I've tried to comment secondaries class and function to see if it was a stupid problem of encoding but nothing...even if I cut them off...
    Are there any other "compilers" to create exe from py?
    Thanks,
    Luke

    Comment

    • KaezarRex
      New Member
      • Sep 2007
      • 52

      #3
      Have you tried making the spec file without the -w and --noconsole options? If it works without them, try just using one or the other. -w and --noconsole do the same thing, so maybe using them both messes up the compiler.

      Comment

      • KaezarRex
        New Member
        • Sep 2007
        • 52

        #4
        Also, make sure you are trying to run "fatture\distfatture\fatture.exe" not "fatture\buildfatture\fatture.exe"

        Comment

        • luke14free
          New Member
          • Apr 2007
          • 79

          #5
          Yes of course i did, I've even tried to put debugging and what i get is
          Error Loading python25.dll
          [even after replacing it with python's original one]
          -- and when tring to compile on my notebook i get(with debugging)--
          RC: -1 from fatture
          [where fatture is my python main file]
          Do you know what it mean? I googled it but nothing,,,it's strange, I can execute my program and I'm not able to compile!
          Do you need me to email you my code?
          Greetings,
          Luke

          Comment

          • KaezarRex
            New Member
            • Sep 2007
            • 52

            #6
            I have never encountered that error before. The only thing I could find online that seemed related was this page. It looks like the author got the same error as you did on your notebook. Sorry I cannot be of more help.

            Comment

            • luke14free
              New Member
              • Apr 2007
              • 79

              #7
              No problem Kaesar you did much. Is there anyone else who could help me?

              Comment

              • luke14free
                New Member
                • Apr 2007
                • 79

                #8
                Problem solved, it seems that importing 2 times the same lib [as written above] makes py2exe and pyinstaller crash.

                import wx
                from wx import *

                This bug should be submitted somewhere, suddenly I've no time to do that, I hope will report that soon.
                Thanks for help,
                Reguards,
                Luke

                Comment

                Working...