From: "py2exe-users-request@lists.sourceforge.net" <py2exe-users-request@lists.sourceforge.net>
To: py2exe-users@lists.sourceforge.net
Sent: Friday, October 17, 2008 3:29:12 PM
Subject: Py2exe-users Digest, Vol 29, Issue 6

Send Py2exe-users mailing list submissions to
    py2exe-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.sourceforge.net/lists/listinfo/py2exe-users
or, via email, send a message with subject or body 'help' to
    py2exe-users-request@lists.sourceforge.net

You can reach the person managing the list at
    py2exe-users-owner@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Py2exe-users digest..."


Today's Topics:

  1. Error in python.exe during setup and other stuff (Timo)
  2. Re: Error in python.exe during setup and other stuff (Larry Bates)
  3. Re: Running a program in console mode and see    stdout/stderr
      (Fr?d?ric)
  4. Problem with py2exe generated exe (Srinivasa NL)
  5. Re: Py2exe for Python 2.6? (Chris Spencer)
  6. library.zip (Fr?d?ric)
  7. library.zip (Fr?d?ric)
  8. library.zip (Fr?d?ric)
  9. Re: Problem with py2exe generated exe (Larry Bates)


----------------------------------------------------------------------

Message: 1
Date: Thu, 16 Oct 2008 18:05:12 +0200
From: Timo <timovwb@gmail.com>
Subject: [Py2exe-users] Error in python.exe during setup and other
    stuff
To: py2exe-users@lists.sourceforge.net
Message-ID: <48f76638.04ba420a.1a1d.65b5@mx.google.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello, I get the typical windows error box when executing 'python
setup.py py2exe'. It happens on this line:
copying C:\Python25\lib\site-packages\py2exe\run_w.exe ->
C:\myappdir\dist\myapp.exe

It is a PyGTK program, after copying needed GTK files/folders to the
dist folder, the program seems to work, but what does it give me that error?


Also, is there a way to disable the message that there was something
written to the log? I use a progress bar, it needs a number between 0
and 1, but sometimes it can get a number that is just a little higher
then 1 (which doesn't really matter), and when I quit the application I
get the log-box. It's just a warning that can be ignored.
GtkWarning: gtk_progress_set_percentage: assertion `percentage >= 0 &&
percentage <= 1.0' failed


Last thing, probably nothing to do with py2exe, but maybe someone has a
solution. When I make an installer with inno setup, and run the program,
nothing happens and this is what's in the logfile:
RuntimeError: could not create GladeXML object
Although everything is there I think (and everything works before
creating the installer).


Timo



------------------------------

Message: 2
Date: Thu, 16 Oct 2008 12:04:50 -0500
From: Larry Bates <larry.bates@websafe.com>
Subject: Re: [Py2exe-users] Error in python.exe during setup and other
    stuff
To: py2exe-users@lists.sourceforge.net
Message-ID: <gd7s7m$uf6$1@ger.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Timo wrote:
> Hello, I get the typical windows error box when executing 'python
> setup.py py2exe'. It happens on this line:
> copying C:\Python25\lib\site-packages\py2exe\run_w.exe ->
> C:\myappdir\dist\myapp.exe
>
> It is a PyGTK program, after copying needed GTK files/folders to the
> dist folder, the program seems to work, but what does it give me that error?
>
>
> Also, is there a way to disable the message that there was something
> written to the log? I use a progress bar, it needs a number between 0
> and 1, but sometimes it can get a number that is just a little higher
> then 1 (which doesn't really matter), and when I quit the application I
> get the log-box. It's just a warning that can be ignored.
> GtkWarning: gtk_progress_set_percentage: assertion `percentage >= 0 &&
> percentage <= 1.0' failed
>
>
> Last thing, probably nothing to do with py2exe, but maybe someone has a
> solution. When I make an installer with inno setup, and run the program,
> nothing happens and this is what's in the logfile:
> RuntimeError: could not create GladeXML object
> Although everything is there I think (and everything works before
> creating the installer).
>
>
> Timo
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/

Can you share with all of us what the windows error box actually says?  Then
perhaps we can offer up a suggestion.

Don't pass the progress bar a number > 1.0.  Pass it something like:
max(val, 1.0) to limit it in case it gets 'just a little higher than 1'.

-Larry




------------------------------

Message: 3
Date: Thu, 16 Oct 2008 19:07:42 +0200
From: Fr?d?ric <frederic.mantegazza@gbiloba.org>
Subject: Re: [Py2exe-users] Running a program in console mode and see
    stdout/stderr
To: py2exe-users@lists.sourceforge.net
Message-ID: <200810161907.42861.frederic.mantegazza@gbiloba.org>
Content-Type: text/plain;  charset="iso-8859-15"

On jeudi 16 octobre 2008, Larry Bates wrote:

> For console= programs stdout IS the console window. ?You must have
> something else going on in your code.You need to trim down to a
> minimal working example and post some code for us to review.
>
> Take a look at logger module and log to a file, that is probably what
> you want long-term anyway for a program like what you describe.

In fact, I am using the logging module. And I found the problem: as I also
have windows scripts, I removed the stream handler when the app is
frozen :o/

Sorry for the noise.

--
    Fr?d?ric

    http://www.gbiloba.org



------------------------------

Message: 4
Date: Fri, 17 Oct 2008 09:53:16 +0530
From: "Srinivasa NL" <nl.srinivas@gmail.com>
Subject: [Py2exe-users] Problem with py2exe generated exe
To: py2exe-users@lists.sourceforge.net
Message-ID:
    <8b85ec440810162123y22f7794bp7ca5b01e3bb87cff@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,
  I am having problem running exe generated from py2exe. I compiled a script
which prints a line(e.g print 'Hello World') and created an exe from it.
When I do not give any option either in the setup.py script or the command
line (python setup.py py2exe) and create the exe and run (in the dist
directory) I get the error

LoadLibrary(pythondll) failedInvalid access to memory location.
E:\programming\python\dist\PYTHON25.DLL

But when I give --bundle-files 1 the exe runs correctly.

I also noticed that, in the beginning of test script, when I print the
sys.path it just shows

..\dist\library.zip                  (the dots before dist just indicate
some path. not the actual output)
on my PC.

On other PCs where the exe runs correctly I see

[..\dist , ..\dis\library.zip]

Has my problem got something to do with sys.path? And why is it that
sys.path is not an extention of the ennvironment variable "PATH"?
Thanks
Srini
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 5
Date: Fri, 17 Oct 2008 03:30:59 -0400
From: Chris Spencer <cspencer@cinci.rr.com>
Subject: Re: [Py2exe-users] Py2exe for Python 2.6?
To: mhammond@skippinet.com.au
Cc: py2exe-users@lists.sourceforge.net
Message-ID: <rdfgf4thp31cbqre433b5ahsb2q04af883@4ax.com>
Content-Type: text/plain; charset=us-ascii

I guess I have to ask the question...

WHY isn't there a binary distribution for py2exe for 2.6?  It can't be
that hard to compile it up and post it on sourceforge...

I realize this is all volunteer work.  I get that.  But if you have
the development environment already on your system, then why not do
the "setup.py install" and upload it to sourceforge?

Will every py2exe user be expected to download VS2008, an SVN client,
and have the expertise to navigate the myriad dependency problems
involved in getting the compile to work? (As in mt.exe and rt.exe from
a platform SDK?)

I will do all that if I have to.  But yeesh...why not just spend the
10 minutes to do it ONCE and then thousands of people can take
advantage of it.

Yet we get a simple "No."  Why "No."?

Chris.

On Tue, 9 Sep 2008 09:12:37 +1000, "Mark Hammond"
<mhammond@skippinet.com.au> wrote:

>> Does the current py2exe source support Python 2.6?
>
>Yes.
>
>> If so, is a pre-compiled version of py2exe available that I could try
>> with Python 2.6?
>
>No.
>
>>
>> Alternatively, where can I find instructions for building py2exe from
>> source?
>
>Maybe on the wiki?  The short story is to make sure you have VS2008, then
>just run 'setup.py install' from the root of the py2exe tree.
>
>Cheers,
>
>Mark
>
>
>-------------------------------------------------------------------------
>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>Build the coolest Linux based applications with Moblin SDK & win great prizes
>Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>_______________________________________________
>Py2exe-users mailing list
>Py2exe-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/py2exe-users



------------------------------

Message: 6
Date: Fri, 17 Oct 2008 10:14:50 +0100
From: Fr?d?ric <frederic.mantegazza@gbiloba.org>
Subject: [Py2exe-users] library.zip
To: py2exe-users@lists.sourceforge.net
Message-ID: <ZBraaAse.1224234890.1090200.fma@alezan.org>
Content-Type: text/plain; charset=ISO-8859-1


Is there a way to open the content of the library.zip file under windows?
I can only list it under linux...

--
  Fr?d?ric



------------------------------

Message: 7
Date: Fri, 17 Oct 2008 10:14:50 +0100
From: Fr?d?ric <frederic.mantegazza@gbiloba.org>
Subject: [Py2exe-users] library.zip
To: py2exe-users@lists.sourceforge.net
Message-ID: <ZBraaAse.1224234890.1090200.fma@alezan.org>
Content-Type: text/plain; charset=ISO-8859-1


Is there a way to open the content of the library.zip file under windows?
I can only list it under linux...

--
  Fr?d?ric



------------------------------

Message: 8
Date: Fri, 17 Oct 2008 10:14:50 +0100
From: Fr?d?ric <frederic.mantegazza@gbiloba.org>
Subject: [Py2exe-users] library.zip
To: py2exe-users@lists.sourceforge.net
Message-ID: <ZBraaAse.1224234890.1090200.fma@alezan.org>
Content-Type: text/plain; charset=ISO-8859-1


Is there a way to open the content of the library.zip file under windows?
I can only list it under linux...

--
  Fr?d?ric



------------------------------

Message: 9
Date: Fri, 17 Oct 2008 08:28:34 -0500
From: Larry Bates <larry.bates@websafe.com>
Subject: Re: [Py2exe-users] Problem with py2exe generated exe
To: py2exe-users@lists.sourceforge.net
Message-ID: <gda3u8$loi$1@ger.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Srinivasa NL wrote:
> Hi,
>  I am having problem running exe generated from py2exe. I compiled a
> script which prints a line(e.g print 'Hello World') and created an exe
> from it. When I do not give any option either in the setup.py script or
> the command line (python setup.py py2exe) and create the exe and run (in
> the dist directory) I get the error
>
> LoadLibrary(pythondll) failedInvalid access to memory location.
> E:\programming\python\dist\PYTHON25.DLL
>
> But when I give --bundle-files 1 the exe runs correctly.
>
> I also noticed that, in the beginning of test script, when I print the
> sys.path it just shows
>
>  ..\dist\library.zip                  (the dots before dist just
> indicate some path. not the actual output)
> on my PC.
>
> On other PCs where the exe runs correctly I see
>
> [..\dist , ..\dis\library.zip]
>
> Has my problem got something to do with sys.path? And why is it that
> sys.path is not an extention of the ennvironment variable "PATH"?
> Thanks
> Srini
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Py2exe-users mailing list
> Py2exe-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/py2exe-users

IMHO more likely a hardware memory error on this machine.  The error
"Invalid access to memory location" normally is a hardware not a software error.

-Larry




------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------

_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users


End of Py2exe-users Digest, Vol 29, Issue 6
*******************************************