Problems py22 -> py23

Mauricio Caliggiuri Inforçati mauricio.inforcati at cenpra.gov.br
Mon Aug 11 09:26:51 EDT 2003


Hi,
I am trying to run my project, writed with py22, on my new installed py23.
This is occuring:

Traceback (most recent call last):
  File "python\menu.py", line 1611, in ?
    MenuPro(root)
  File "python\menu.py", line 281, in __init__
    menuBar1.addmenuitem('Ajuda', 'command' , 'Creditos' , label = 'Threshold 2D
')#, command = lambda e = self , x ='copyrightVTK.html' : e.showbrowser(x))
  File "C:\PYTHON23\lib\site-packages\Pmw\Pmw_1_2\lib\PmwMenuBar.py", line 155,
in addmenuitem
    self._addHotkeyToOptions(menuName, kw, 'label', traverseSpec)
  File "C:\PYTHON23\lib\site-packages\Pmw\Pmw_1_2\lib\PmwMenuBar.py", line 204,
in _addHotkeyToOptions
    label = str(menu.entrycget(item, textKey))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-10: ordi
nal not in range(128)
Fatal Python error: PyEval_RestoreThread: NULL tstate

abnormal program termination

What must I do?

  Mauricio Inforcati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030811/d19ea942/attachment.html>


More information about the Python-list mailing list