Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • wx message problem on debian

    5 answers - 816 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    My application call a wx.MessageBox:
    File "hylapex.py", line 954, in contr_new_fax
    wx.MessageBox(str(title), str(msg))
    File
    "/", line
    483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)
    michele:~$ python
    Python 2.4.4c0 (#2, Apr 22 2006, 22:39:06)
    [GCC 4.0.3 (Debian 4.0.3-1)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    import wx
    wxversion__
    '2.6.3.2'
    The same, on, win (the same py and wx versions) work
    Can be a wx (linux) bug?
    I'm using the deb package on unstable.
    Thanks,
    Michele
    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.1 | | 289 bytes | |

    Michele Petrazzo wrote:
    My application call a wx.MessageBox:
    File "hylapex.py", line 954, in contr_new_fax
    wx.MessageBox(str(title), str(msg))
    File
    "/", line
    483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)
    What is the rest of the error message?
  • No.2 | | 999 bytes | |

    Robin Dunn wrote:
    Michele Petrazzo wrote:
    >My application call a wx.MessageBox:
    >>

    >File "hylapex.py", line 954, in contr_new_fax
    >wx.MessageBox(str(title), str(msg))
    >File
    >"/",
    >line 483, in MessageBox
    >return _misc_.MessageBox(*args, **kwargs)


    What is the rest of the error message?

    Excuse me:
    File "hylapex.py", line 943, in contr_new_fax
    wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
    File
    "/", line
    483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)
    exceptions.TypeError: coercing to Unicode: need string or buffer, int found

    Note that this happen _after_ the message are shown, so when I press on
    "" button.

    Thank,
    Michele

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.3 | | 919 bytes | |

    Michele Petrazzo wrote:
    Robin Dunn wrote:
    >Michele Petrazzo wrote:

    My application call a wx.MessageBox:

    File "hylapex.py", line 954, in contr_new_fax
    wx.MessageBox(str(title), str(msg))
    File
    "/",
    line 483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)
    >>

    >What is the rest of the error message?
    >>
    >>


    Excuse me:
    File "hylapex.py", line 943, in contr_new_fax
    wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
    File
    "/", line
    483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)
    exceptions.TypeError: coercing to Unicode: need string or buffer, int found

    Note that this happen _after_ the message are shown, so when I press on
    "" button.

    What are the values of title and msg?
  • No.4 | | 1765 bytes | |

    Robin Dunn wrote:
    Michele Petrazzo wrote:
    >Robin Dunn wrote:

    Michele Petrazzo wrote:
    My application call a wx.MessageBox:

    File "hylapex.py", line 954, in contr_new_fax
    wx.MessageBox(str(title), str(msg))
    File
    "/",
    line 483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)

    What is the rest of the error message?


    >>

    >Excuse me:
    >File "hylapex.py", line 943, in contr_new_fax
    >wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
    >File
    >"/",
    >line 483, in MessageBox
    >return _misc_.MessageBox(*args, **kwargs)
    >exceptions.TypeError: coercing to Unicode: need string or buffer, int
    >found
    >>

    >Note that this happen _after_ the message are shown, so when I press on
    >"" button.


    What are the values of title and msg?

    code
    print repr(msg), repr(title), type(msg), type(title)
    wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)

    michele:~$ python hylapex.py
    'You have 10 new fax' 'New fax' <type 'str'<type 'str'>

    <-cut not wx code->

    File "hylapex.py", line 943, in contr_new_fax
    wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
    File
    "/", line
    483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)
    exceptions.TypeError: coercing to Unicode: need string or buffer, int found

    Michele

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.5 | | 1743 bytes | |

    Michele Petrazzo wrote:
    Robin Dunn wrote:
    >Michele Petrazzo wrote:

    Robin Dunn wrote:
    Michele Petrazzo wrote:
    My application call a wx.MessageBox:

    File "hylapex.py", line 954, in contr_new_fax
    wx.MessageBox(str(title), str(msg))
    File
    "/",
    line 483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)

    What is the rest of the error message?

    Excuse me:
    File "hylapex.py", line 943, in contr_new_fax
    wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
    File
    "/",
    line 483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)
    exceptions.TypeError: coercing to Unicode: need string or buffer, int
    found

    Note that this happen _after_ the message are shown, so when I press on
    "" button.
    >>

    >What are the values of title and msg?
    >>


    code
    print repr(msg), repr(title), type(msg), type(title)
    wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)

    michele:~$ python hylapex.py
    'You have 10 new fax' 'New fax' <type 'str'<type 'str'>

    <-cut not wx code->

    File "hylapex.py", line 943, in contr_new_fax
    wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
    File
    "/", line
    483, in MessageBox
    return _misc_.MessageBox(*args, **kwargs)
    exceptions.TypeError: coercing to Unicode: need string or buffer, int found

    It's acting as if it is also expecting a unicode value for the 3rd
    parameter, but I don't see how that is possible unless something went
    strangely wrong with the build.

Re: wx message problem on debian


max 4000 letters.
Your nickname that display:
In order to stop the spam: 7 + 6 =
QUESTION ON "Python"

EMSDN.COM