Il giorno 31/gen/08, alle ore 14:17, Mr.SpOOn ha scritto: > On Jan 31, 2008 2:09 PM, Y3s <[EMAIL PROTECTED]> wrote: >> >> Il giorno 31/gen/08, alle ore 14:00, Mr.SpOOn ha scritto: >> >> >>> On Jan 31, 2008 1:54 PM, Y3s <[EMAIL PROTECTED]> wrote: > >> Strano che non funzioni allora...prova dalla shell python a fare: >> >> import wxPython > > Viene fuori questo: > > __main__:1: DeprecationWarning: The wxPython compatibility package is > no longer automatically generated or actively maintained. Please > switch to the wx package as soon as possible. > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/ > wxPython/__init__.py", > line 15, in <module> > import _wx > File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/ > wxPython/_wx.py", > line 8, in <module> > from _misc import * > File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/ > wxPython/_misc.py", > line 456, in <module> > wxDateTime_GetNumberOfDaysinYear = > wx._misc.DateTime_GetNumberOfDaysinYear > AttributeError: 'module' object has no attribute > 'DateTime_GetNumberOfDaysinYear
Lo stesso errore che da a me su tiger...strano, perchè su Fedora 8 invece mi funziona...in ogni caso, o ti metti a fare debug e sistemare le cose su wxPython (cosa che mi sembra un po' scema ;-) ), o ti metti a sistemare il codice dell'applicazione in modo da utilizzare il namespace wx ed eliminare il deprecato wxPython, oppure ti installi una versione più vecchia di wxPython e risolvi il problema :-) Ciao -- Antonio Valente _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python