hai provato a compilare pyqt staticamente? -k, --static<http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/installation.html#cmdoption-configure.py-k>
The PyQt modules will be built as static libraries. This is useful when building a custom interpreter with the PyQt modules built in to the interpreter. 2012/10/24 Giuseppe Di Martino <gius.d...@gmail.com> > Finalmente ho trovato mezz'ora per analizzare meglio il problema ed ho > scoperto che il segfault non dipende da Python ma è causato nel momento in > cui viene instanziata la QApplication (per chi non pratico con le PyQt è > l'oggetto che rappresenta l'applicazione). > Ho ridotto al minimo il programma, nel file test.py: > > import sys > from PyQt4 import QtGui > > class MainWindow(QtGui.QMainWindow): > def __init__(self): > QtGui.QMainWindow.__init__(self) > > def main(): > app = QtGui.QApplication(sys.argv) > window=MainWindow() > window.show() > sys.exit(app.exec_()) > > if __name__ == "__main__": > main() > > > Infine ho creato l'eseguibile con pyinstaller che mi ha creato la cartella > dist/test contenente alcuni files, tra cui l'eseguibile test. > > Ho fatto varie prove con diverse versioni di Ubuntu ed ho scoperto che > dalla 10.04 (quella che uso per lo sviluppo) fino alla 11.10 funziona, ma > nella 12.04 e 12.10 viene generato un errore di segmentazione. > > Qualcuno in lista usa PyQt e PyInstaller sviluppando su una vecchia > versione di Ubuntu ed ha avuto esperienze simili? > > Giuseppe > > > _______________________________________________ > Python mailing list > Python@lists.python.it > http://lists.python.it/mailman/listinfo/python > >
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python