Re: [Python] Linux: errore wxPython durante installazione applicazione
On Jan 31, 2008, at 2:19 PM, Raffaele Salmaso wrote: > $ python > Python 2.5.1 (r251:54863, Oct 5 2007, 21:08:09) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. import wx print wx.VERSION > (2, 8, 4, 0, '') Ottimo. In effetti avrei potuto controllare io stesso. ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
Il giorno 31/gen/08, alle ore 16:47, Matteo Buferli ha scritto: > On Thursday 31 January 2008 13:54:17 Y3s wrote: >> [...] >> >> Gli sviluppatori dovrebbero leggere anche i warning ;-) >> Usare wxPython è deprecato già da un po' (2.6 mi pare), sul mio >> sistema (mac osx) non funziona proprio, ma è specificato chiaramente >> che non viene più mantenuto! >> >> [...] > > Quindi se uno volesse sviluppare multipiattaforma cosa dovrebbe usare? > ho cominciato a scrivere da poco in python e dato che sto progettando > un software non vorrei incappare in errori di progettazione. No, mi sono spiegato male, il toolkit wxPython funziona decentemente anche su macosx (più che altro migliora velocemente, qualche piccolo problema c'è, ma niente di irreparabile) Intendevo dire che il toolkit wxPython è diviso in due package: - wxPython - wx Il primo era usato per compatibilità con il C++, ma è deprecato ormai, e va usato solo il primo. Quindi quando vedi nomi tipo wxWindow, sappi che non va bene, e devi usare quelli nella forma wx.Window. E tutto il codice che utilizza i vecchi nomi andrebbe aggiornato, visto che il package wxPython, come viene chiaramente indicato dal warning, non è più nè sviluppato nè mantenuto. In ogni caso per sviluppare GUI multipiattaforma hai anche altre scelte, se cerchi nei vecchi archivi della lista e del ng it.comp.lang.python trovi un mare di discussioni, alcune utili altre meno ;-) Ciao -- Antonio Valente ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
On Thursday 31 January 2008 13:54:17 Y3s wrote: > [...] > > Gli sviluppatori dovrebbero leggere anche i warning ;-) > Usare wxPython è deprecato già da un po' (2.6 mi pare), sul mio > sistema (mac osx) non funziona proprio, ma è specificato chiaramente > che non viene più mantenuto! > > [...] Quindi se uno volesse sviluppare multipiattaforma cosa dovrebbe usare? ho cominciato a scrivere da poco in python e dato che sto progettando un software non vorrei incappare in errori di progettazione. -- Matteo Buferli WEB: http://www.buferli.com PGP FINGERPRINT: B7C9 BE0A F77F 4747 56A2 87EC F6E5 8A01 65BB 58C1 signature.asc Description: This is a digitally signed message part. ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
On Jan 31, 2008 2:21 PM, Y3s <[EMAIL PROTECTED]> wrote: > oppure ti installi una versione più vecchia di wxPython e risolvi il > problema :-) Ok, fatto e risolto :D Mi ero dimenticato prima di provare in questo modo. Grazie mille. Ciao ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
On Jan 31, 2008, at 2:16 PM, Y3s wrote: > Boh, ho tiger :-) allora nulla. :) ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
Enrico Franchi wrote: > Uhm, di default Leopard con cosa viene? 4:18:25 Thu Jan 31 [EMAIL PROTECTED] ~ $ python Python 2.5.1 (r251:54863, Oct 5 2007, 21:08:09) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import wx >>> print wx.VERSION (2, 8, 4, 0, '') -- ()_() | Bisogna stare attenti a generalizzare le cose che | + (o.o) | si apprendono con java. Altrimenti si finisce per | +---+ 'm m' | concludere che programmare e' un'attivia' noiosa, | O | (___) | cosa che non e' per nulla vera! :-) - Antonio Cuni | raffaele punto salmaso at gmail punto com ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
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 "", line 1, in > File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/ > wxPython/__init__.py", > line 15, in > import _wx > File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/ > wxPython/_wx.py", > line 8, in > from _misc import * > File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/ > wxPython/_misc.py", > line 456, in > 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
Re: [Python] Linux: errore wxPython durante installazione applicazione
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 "", line 1, in File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wxPython/__init__.py", line 15, in import _wx File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wxPython/_wx.py", line 8, in from _misc import * File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wxPython/_misc.py", line 456, in wxDateTime_GetNumberOfDaysinYear = wx._misc.DateTime_GetNumberOfDaysinYear AttributeError: 'module' object has no attribute 'DateTime_GetNumberOfDaysinYear ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
Il giorno 31/gen/08, alle ore 14:12, Enrico Franchi ha scritto: > > > > On 1/31/08 1:54 PM, "Y3s" <[EMAIL PROTECTED]> wrote: > >> Gli sviluppatori dovrebbero leggere anche i warning ;-) >> Usare wxPython è deprecato già da un po' (2.6 mi pare), sul mio >> sistema (mac osx) non funziona proprio, ma è specificato chiaramente >> che non viene più mantenuto! > > Uhm, di default Leopard con cosa viene? Boh, ho tiger :-) -- Antonio Valente ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
On 1/31/08 1:54 PM, "Y3s" <[EMAIL PROTECTED]> wrote: > Gli sviluppatori dovrebbero leggere anche i warning ;-) > Usare wxPython è deprecato già da un po' (2.6 mi pare), sul mio > sistema (mac osx) non funziona proprio, ma è specificato chiaramente > che non viene più mantenuto! Uhm, di default Leopard con cosa viene? ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
Il giorno 31/gen/08, alle ore 14:00, Mr.SpOOn ha scritto: > On Jan 31, 2008 1:54 PM, Y3s <[EMAIL PROTECTED]> wrote: >> >> Il giorno 31/gen/08, alle ore 12:57, Mr.SpOOn ha scritto: >> Prova a vedere in /usr/lib/python2.5/site-packages/wx-2.8-gtk2- >> unicode >> Dovrebbe esserci un package (una directory insomma) wxPython. Se non >> c'è, mi sa che hai qualche problema con l'installazione di wxPython. > > Mmm sì c'è. Cosa dovrei farci? oo Strano che non funzioni allora...prova dalla shell python a fare: import wxPython -- Antonio Valente ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
On Jan 31, 2008 1:54 PM, Y3s <[EMAIL PROTECTED]> wrote: > > Il giorno 31/gen/08, alle ore 12:57, Mr.SpOOn ha scritto: > Prova a vedere in /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode > Dovrebbe esserci un package (una directory insomma) wxPython. Se non > c'è, mi sa che hai qualche problema con l'installazione di wxPython. Mmm sì c'è. Cosa dovrei farci? oo ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
Re: [Python] Linux: errore wxPython durante installazione applicazione
Il giorno 31/gen/08, alle ore 12:57, Mr.SpOOn ha scritto: > Salve, > su Ubuntu Gutsy Gibbon (7.10) sto cercando di installare il > software pysoulseek. > > Quando provo a dare il comando > > python ./pyslsk > > ricevo il seguente errore: > > ./pyslsk:28: DeprecationWarning: The wxPython compatibility package is > no longer automatically generated or actively maintained. Please > switch to the wx package as soon as possible. Gli sviluppatori dovrebbero leggere anche i warning ;-) Usare wxPython è deprecato già da un po' (2.6 mi pare), sul mio sistema (mac osx) non funziona proprio, ma è specificato chiaramente che non viene più mantenuto! > import wxPython.wx > Can not find wxPython modules. Either wxPython is not > installed, or it's not in Python's module search path (it could be > built > for a different version of python interpreter for example). The > current > search path is > ['/home/ilsignorcarlo/pyslsk-1.2.7b', '/usr/lib/python25.zip', > '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', > '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', > '/usr/local/lib/python2.5/site-packages', > '/usr/lib/python2.5/site-packages', > '/usr/lib/python2.5/site-packages/Numeric', > '/usr/lib/python2.5/site-packages/gst-0.10', > '/var/lib/python-support/python2.5', > '/usr/lib/python2.5/site-packages/gtk-2.0', > '/var/lib/python-support/python2.5/gtk-2.0', > '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode'] > Prova a vedere in /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode Dovrebbe esserci un package (una directory insomma) wxPython. Se non c'è, mi sa che hai qualche problema con l'installazione di wxPython. > Ho cercato un po' in giro e mi sembra che il problema stia nel fatto > che dovrei aggiungere il path al PYTHONPATH, o qualcosa del genere, ma > non sono riuscito a capire esattamente come e cosa devo aggiungere. > Sapete aiutarmi? > Grazie Il path c'è, è l'ultima riga della lista di sopra, però c'è qualche problema visto che non ti trova il package wxPython. Puoi provare a vedere se ci sono versioni vecchie di wxPython nei repository ubuntu, penso di si. Probabilmente installando una versione precedente dovresti risolvere il problema... -- Antonio Valente ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python
[Python] Linux: errore wxPython durante installazione applicazione
Salve, su Ubuntu Gutsy Gibbon (7.10) sto cercando di installare il software pysoulseek. Quando provo a dare il comando python ./pyslsk ricevo il seguente errore: ./pyslsk:28: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible. import wxPython.wx Can not find wxPython modules. Either wxPython is not installed, or it's not in Python's module search path (it could be built for a different version of python interpreter for example). The current search path is ['/home/ilsignorcarlo/pyslsk-1.2.7b', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode'] Ho cercato un po' in giro e mi sembra che il problema stia nel fatto che dovrei aggiungere il path al PYTHONPATH, o qualcosa del genere, ma non sono riuscito a capire esattamente come e cosa devo aggiungere. Sapete aiutarmi? Grazie ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python