PMW 0.8.5 vs Python 2.3

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robin Becker

    PMW 0.8.5 vs Python 2.3

    I'm getting the following error when I attempt to run an app with
    Python 2.3. I suppose this was silently ignored under 2.2. With
    debugging I see that s==0 in

    _int = int
    ......
    def atoi(s , base=10):
    return _int(s, base)

    is the cause of the error. Has int changed or is it the source of the
    value ie menu.entrycget( item, 'underline')


    File "C:\Python\lib\ site-packages\Pmw\Pm w_0_8_5\lib\Pmw MainMenuBar.py" ,
    line 140, in addmenuitem
    self._addHotkey ToOptions(menuN ame, kw, traverseSpec)
    File "C:\Python\lib\ site-packages\Pmw\Pm w_0_8_5\lib\Pmw MainMenuBar.py"
    , line 177, in _addHotkeyToOpt ions
    underline = string.atoi(men u.entrycget(ite m, 'underline'))
    File "C:\Python\Lib\ string.py", line 220, in atoi
    return _int(s, base)
    TypeError: int() can't convert non-string with explicit base
    --
    Robin Becker
  • Erik Max Francis

    #2
    Re: PMW 0.8.5 vs Python 2.3

    Robin Becker wrote:
    [color=blue]
    > I'm getting the following error when I attempt to run an app with
    > Python 2.3. I suppose this was silently ignored under 2.2. With
    > debugging I see that s==0 in[/color]

    Something else is going on, you get the same error in 2.2:

    Python 2.2.3 (#1, May 31 2003, 21:31:33)
    [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
    Type "help", "copyright" , "credits" or "license" for more information.[color=blue][color=green][color=darkred]
    >>> int(0, 16)[/color][/color][/color]
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    TypeError: int() can't convert non-string with explicit base

    --
    Erik Max Francis && [email protected] && http://www.alcyone.com/max/
    __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
    / \ Men and women, women and men. It will never work.
    \__/ Erica Jong

    Comment

    • Robin Becker

      #3
      Re: PMW 0.8.5 vs Python 2.3

      In article <3F35FF75.C01C5 [email protected] >, Erik Max Francis
      <[email protected] m> writes[color=blue]
      >Robin Becker wrote:
      >[color=green]
      >> I'm getting the following error when I attempt to run an app with
      >> Python 2.3. I suppose this was silently ignored under 2.2. With
      >> debugging I see that s==0 in[/color][/color]

      never min people, I upgraded to Pmw 1.2 and things are now fine.
      --
      Robin Becker

      Comment

      Working...