py2exe: abnormal program termination

2006-03-15 Thread PyDenis
Today, I found strange error while using py2exe:

1. I wrote simple program and save as 1.py:
import win32ui
import win32con

win32ui.MessageBox('Test messageBox.' , 'Test', win32con.MB_OK |
win32con.MB_TOPMOST )

2. I create 1_setup.py file for py2exe:

> from distutils.core import setup
> import py2exe
> 
> setup( 
>   version = "0.0",
>   description = "",
>   name = '',
> 
> options = {"py2exe": {"compressed": 1,
>   "optimize": 2,
>   "bundle_files": 1}},
> 
>   console = ["1.py"],
>   zipfile = None,
>  )
> 

3. I run 1.exe and get error:
[code:1:7ea8ce03ac]
Runtime Error!
Abnormal program termination.
[/code:1:7ea8ce03ac]
[URL=http://imageshack.us]http://img74.imageshack.us/img74/4212/abnormal5mv.png[/URL]

Is there a way to fix it?
Common way (python 1.py) works.

Thank you!

-- 
http://mail.python.org/mailman/listinfo/python-list


details

2006-03-15 Thread PyDenis
Python:
ActivePython 2.4.2 Build 10 (ActiveState
Corp.) based on
Python 2.4.2 (#67, Jan 17 2006, 15:36:03) [MSC
v.1310 32 bit (Intel)] on win32
-
win32ui:
Dont know how to get version info.
Little snippet
[code:1:f18a50c332]import win32ui

aa = sorted(dir(win32ui))

for i in aa:
print '%s => %r' % (i, getattr(win32ui, i))
print [/code:1:f18a50c332]

gives me only

copyright => 'Copyright 1994-2004 Mark Hammond
([EMAIL PROTECTED])'
-
AFAIK, win32ui is part of pywin32
-
Pythonwin.exe on about: pythonwin32 build
205
-
OS: Windows 2000 SP4
Dualcore: NO

-- 
http://mail.python.org/mailman/listinfo/python-list


WORKAROUND

2006-03-15 Thread PyDenis
I fixed problem using Atypes:

import ctypes

ctypes.windll.user32.MessageBoxA(0, 'test', 'Title',
win32con.MB_ICONINFORMATION | win32con.MB_OK |
win32con.MB_TOPMOST)


It compiles and runs fine with py2exe.


Dont remember buggy pywin32 :)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: WORKAROUND

2006-03-15 Thread PyDenis
> Fredrik Lundhwrote:
Could you perhaps use basic netiquette stuff, such as sticking to the
same sub-
> ject line for followup posts in the same thread, and including a
least some trace
> of the post you're commenting on ?
> 
> (this would be less of a problem if everyone was reading your posts
in a news-
> reader, but this group is available in many different forms...)
> 
> 

Excuse me, please.

I mean, that 

1. When I post new message to WEBFORUM (not a Mailing List nor News
Group) not to include even part of message.

2. About subject line: if this forum huge depends from subject line,
this field must be disabled or set to "RE: % "+ (orig_msg.subject) by
forum admins. Forum using some webforum engine, and easiest way to
format messages - tune it up accurately instead of messaging about
netiquette.

3. I receive message about topic posts without host name, so could go
in Browser History to find it. I mean, misplaced 'netiquette'
eclipsed by this bug: 


Hello,

You are receiving this email because you are watching the topic,
"Re: WORKAROUND" at niXforums. This topic has received
a reply since your last visit. You can use the following link to view
the replies made, no more notifications will be sent until you visit
the topic.

http:///files/forum/viewtopic.php?p=730860#730860

If you no longer wish to watch this topic you can either click the
"Stop watching this topic link" found at the bottom of the
topic above, or by clicking the following link:

http:///files/forum/viewtopic.php?t=136721&unwatch=topic

-- 
Thanks, The Management


Please, sorry for my english.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: WORKAROUND

2006-03-15 Thread PyDenis
> Fredrik Lundhwrote:
Could you perhaps use basic netiquette stuff, such as sticking to the
same sub-
> ject line for followup posts in the same thread, and including a
least some trace
> of the post you're commenting on ?
> 
> (this would be less of a problem if everyone was reading your posts
in a news-
> reader, but this group is available in many different forms...)
> 
> 

Excuse me, please.

I mean, that 

1. When I post new message to WEBFORUM (not a Mailing List nor News
Group) not to include even part of message.

2. About subject line: if this forum huge depends from subject line,
this field must be disabled or set to "RE: % "+ (orig_msg.subject) by
forum admins. Forum using some webforum engine, and easiest way to
format messages - tune it up accurately instead of messaging about
netiquette.

3. I receive message about topic posts without host name, so could go
in Browser History to find it. I mean, misplaced 'netiquette'
eclipsed by this bug: 


Hello,

You are receiving this email because you are watching the topic,
"Re: WORKAROUND" at niXforums. This topic has received
a reply since your last visit. You can use the following link to view
the replies made, no more notifications will be sent until you visit
the topic.

http:///files/forum/viewtopic.php?p=730860#730860

If you no longer wish to watch this topic you can either click the
"Stop watching this topic link" found at the bottom of the
topic above, or by clicking the following link:

http:///files/forum/viewtopic.php?t=136721&unwatch=topic

-- 
Thanks, The Management


Please, sorry for my english.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: WORKAROUND

2006-03-15 Thread PyDenis
> Fredrik Lundhwrote:
Could you perhaps use basic netiquette stuff, such as sticking to the
same sub-
> ject line for followup posts in the same thread, and including a
least some trace
> of the post you're commenting on ?
> 
> (this would be less of a problem if everyone was reading your posts
in a news-
> reader, but this group is available in many different forms...)
> 
> 

Excuse me, please.

I mean, that 

1. When I post new message to WEBFORUM (not a Mailing List nor News
Group) not to include even part of message.

2. About subject line: if this forum huge depends from subject line,
this field must be disabled or set to "RE: % "+ (orig_msg.subject) by
forum admins. Forum using some webforum engine, and easiest way to
format messages - tune it up accurately instead of messaging about
netiquette.

3. I receive message about topic posts without host name, so could go
in Browser History to find it. I mean, misplaced 'netiquette'
eclipsed by this bug: 


Hello,

You are receiving this email because you are watching the topic,
"Re: WORKAROUND" at niXforums. This topic has received
a reply since your last visit. You can use the following link to view
the replies made, no more notifications will be sent until you visit
the topic.

http:///files/forum/viewtopic.php?p=730860#730860

If you no longer wish to watch this topic you can either click the
"Stop watching this topic link" found at the bottom of the
topic above, or by clicking the following link:

http:///files/forum/viewtopic.php?t=136721&unwatch=topic

-- 
Thanks, The Management


Please, sorry for my english.

-- 
http://mail.python.org/mailman/listinfo/python-list