473,378 Members | 1,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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\Pmw_0_8_5\lib\PmwMainMenuBar.py",
line 140, in addmenuitem
self._addHotkeyToOptions(menuName, kw, traverseSpec)
File "C:\Python\lib\site-packages\Pmw\Pmw_0_8_5\lib\PmwMainMenuBar.py"
, line 177, in _addHotkeyToOptions
underline = string.atoi(menu.entrycget(item, '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
Jul 18 '05 #1
2 1916
Robin Becker wrote:
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


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.
int(0, 16)

Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: int() can't convert non-string with explicit base

--
Erik Max Francis && ma*@alcyone.com && 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
Jul 18 '05 #2
In article <3F***************@alcyone.com>, Erik Max Francis
<ma*@alcyone.com> writes
Robin Becker wrote:
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


never min people, I upgraded to Pmw 1.2 and things are now fine.
--
Robin Becker
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.